Hello community, here is the log from the commit of package tre for openSUSE:Factory checked in at 2014-05-09 06:59:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tre (Old) and /work/SRC/openSUSE:Factory/.tre.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "tre" Changes: -------- --- /work/SRC/openSUSE:Factory/tre/tre.changes 2012-05-08 18:02:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.tre.new/tre.changes 2014-05-09 06:59:13.000000000 +0200 @@ -1,0 +2,14 @@ +Thu Apr 24 09:06:44 UTC 2014 - pgajdos@suse.com + +- remove redundant setting of C(XX)FLAGS +- package translations in tre-lang + +------------------------------------------------------------------- +Tue Apr 8 10:01:26 CDT 2014 - bjones@ece.msstate.edu + +- Added make check tests +- Added python-tre wrapper +- Used updated source from https://github.com/laurikari/tre/ +- Added chicken.patch to correct Python build failures + +------------------------------------------------------------------- Old: ---- tre-0.8.0.tar.bz2 New: ---- tre-0.8.0_git201402282055.tar.bz2 tre-chicken.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tre.spec ++++++ --- /var/tmp/diff_new_pack.J7OZqr/_old 2014-05-09 06:59:14.000000000 +0200 +++ /var/tmp/diff_new_pack.J7OZqr/_new 2014-05-09 06:59:14.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package tre # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,26 @@ Name: tre -Version: 0.8.0 +Version: 0.8.0_git201402282055 Release: 0 -Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2 -Patch0: %{name}.diff Summary: POSIX compatible regexp library with approximate matching License: BSD-3-Clause Group: System/Libraries Url: http://laurikari.net/tre/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# This source comes from https://github.com/laurikari/tre/, revision +# c2f5d130c91b1696385a6ae0b5bcfd5214bcc9ca. The previously released +# version 0.8.0 is old (2009) and no new released have been made by +# the author, so I'm terming this 0.8.0_git201402282055. +Source0: tre-%{version}.tar.bz2 +Patch0: %{name}.diff +# Update the python build to fix wrong include and lib paths. +# See https://github.com/laurikari/tre/pull/19. +Patch1: %{name}-chicken.patch +BuildRequires: gettext-devel +BuildRequires: libtool BuildRequires: pkgconfig +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description TRE is a lightweight, robust, and efficient POSIX compatible regexp @@ -39,21 +49,21 @@ Requires: %{name} = %{version} Obsoletes: libtre Provides: libtre +Recommends: %{name}-lang = %{version} %description -n libtre5 TRE is a lightweight, robust, and efficient POSIX compatible regexp matching library with some exciting features such as approximate matching. - %post -n libtre5 -p /sbin/ldconfig %postun -n libtre5 -p /sbin/ldconfig %package devel -Requires: libtre5 = %{version} Summary: POSIX compatible regexp library with approximate matching Group: Development/Libraries/C and C++ +Requires: libtre5 = %{version} Obsoletes: libtre-devel Provides: libtre-devel @@ -70,27 +80,36 @@ agrep is another powerful grep which has the ability to search for approximate patterns as well as block oriented search. +%package -n python-%{name} +Summary: Python bindings for the tre library +Group: System/Libraries + +%description -n python-%{name} +This package contains the python bindings for the TRE library. + +%lang_package -Authors: --------- - Sun Wu - Udi Manber - Burra Gopal %prep %setup -q %patch0 -p1 +%patch1 -p1 -b .chicken +./utils/autogen.sh %build -export CXXFLAGS="$RPM_OPT_FLAGS" -export CFLAGS="$RPM_OPT_FLAGS" %configure --disable-static --enable-shared make %{?_smp_mflags} +pushd python +python setup.py build +popd %install -make install DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la -rm -rf $RPM_BUILD_ROOT/usr/share/locale/ +make DESTDIR=%{buildroot} install %{?_smp_mflags} +pushd python +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +popd +find %{buildroot} -type f -name "*.la" -delete -print +%find_lang %{name} || echo -n >> %{name}.lang %files %defattr (-, root, root) @@ -112,4 +131,15 @@ %{_bindir}/agrep %{_mandir}/man1/agrep.1.gz +%files -n python-%{name} +%defattr (-, root, root) +%{python_sitearch}/tre.so +%{python_sitearch}/*.egg-info + +%files lang -f %{name}.lang +%defattr(-,root,root,-) + +%check +make check %{?_smp_mflags} + %changelog ++++++ tre-chicken.patch ++++++ diff -up tre-0.8.0/python/setup.py.in.chicken tre-0.8.0/python/setup.py.in --- tre-0.8.0/python/setup.py.in.chicken 2009-09-20 09:51:01.000000000 +0200 +++ tre-0.8.0/python/setup.py.in 2009-09-20 15:43:45.000000000 +0200 @@ -10,7 +10,8 @@ import shutil version = "@TRE_VERSION@" data_files = [] -include_dirs = ["../lib"] +include_dirs = ["../include"] +library_dirs = ["../lib/.libs"] libraries = ["tre"] if sys.platform == "win32": @@ -31,6 +32,7 @@ setup(name = "tre", sources = ["tre-python.c"], define_macros = [("HAVE_CONFIG_H", None)], include_dirs = include_dirs, + library_dirs = library_dirs, libraries = libraries ), ], -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de