Name: tre Version: 0.8.0 Release: 10%{?dist}.art License: BSD Source0: http://laurikari.net/tre/%{name}-%{version}.tar.bz2 Patch0: %{name}-chicken.patch # make internal tests of agrep work with just-built shared library Patch1: %{name}-tests.patch # add additional functions needed for R to use tre sys lib # https://github.com/laurikari/tre/pull/14 Patch2: tre-0.8.0-Rfixes-8e84229.patch Patch3: tre-0.8.0-Rfixes-d0a2382.patch Summary: POSIX compatible regexp library with approximate matching URL: http://laurikari.net/tre/ # rebuild autotools for bug #926655 BuildRequires: gettext-devel BuildRequires: libtool BuildRequires: python2-devel %description TRE is a lightweight, robust, and efficient POSIX compatible regexp matching library with some exciting features such as approximate matching. %package devel Requires: tre = %{version}-%{release} Summary: Development files for use with the tre package %description devel This package contains header files and static libraries for use when building applications which use the TRE library. %package -n python-%{name} Summary: Python bindings for the tre library %description -n python-%{name} This package contains the python bindings for the TRE library. %package -n agrep Summary: Approximate grep utility %description -n agrep The agrep tool is similar to the commonly used grep utility, but agrep can be used to search for approximate matches. The agrep tool searches text input for lines (or records separated by strings matching arbitrary regexps) that contain an approximate, or fuzzy, match to a specified regexp, and prints the matching lines. Limits can be set on how many errors of each kind are allowed, or only the best matching lines can be output. Unlike other agrep implementations, TRE agrep allows full POSIX regexps of any length, any number of errors, and non-uniform costs. %prep %setup -q # hack to fix python bindings build ln -s lib tre %patch0 -p1 -b .chicken %patch1 -p1 -b .tests %patch2 -p1 -b .Rfixes %patch3 -p1 -b .Rfixes2 # rebuild autotools for bug #926655 autoreconf -vif %build %configure --disable-static --disable-rpath %{__make} %{?_smp_mflags} pushd python %{__python2} setup.py build popd %install %{__make} install DESTDIR=$RPM_BUILD_ROOT pushd python %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT popd rm $RPM_BUILD_ROOT%{_libdir}/*.la %find_lang %{name} %check %{__make} check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %doc AUTHORS ChangeLog LICENSE NEWS README THANKS TODO %doc doc/*.html doc/*.css %{_libdir}/libtre.so.* %files devel %{_libdir}/libtre.so %{_libdir}/pkgconfig/* %{_includedir}/* %files -n python-%{name} %attr(0755,root,root) %{python2_sitearch}/tre.so %{python2_sitearch}/*.egg-info %files -n agrep %{_bindir}/agrep %{_mandir}/man1/agrep.1* %changelog * Thu Mar 06 2014 Dominik Mierzejewski 0.8.0-10 - fix build on aarch64 (bug #926655) - drop obsolete specfile parts - fix deprecated python macro usage * Tue Feb 4 2014 Tom Callaway - 0.8.0-9 - add missing changes from R to be able to use tre in R as system lib (and resolve arm fails) Credit to Orion Poplawski. * Sun Aug 04 2013 Fedora Release Engineering - 0.8.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 0.8.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 27 2012 Fedora Release Engineering - 0.8.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Oct 26 2011 Fedora Release Engineering - 0.8.0-4 - Rebuilt for glibc bug#747377 * Wed Feb 09 2011 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jul 22 2010 David Malcolm - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sun Sep 20 2009 Dominik Mierzejewski 0.8.0-1 - updated to 0.8.0 (ABI change) * Sat Aug 22 2009 Dominik Mierzejewski 0.7.6-2 - added missing defattr for python subpackage - dropped conditionals for Fedora <10 - used alternative method for rpath removal - fixed internal testsuite to run with just-built shared library - dropped unnecessary build dependencies * Tue Jul 28 2009 Itamar Reis Peixoto - 0.7.6-1 - new version 0.7.6 * Sun Jul 26 2009 Fedora Release Engineering - 0.7.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.7.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.7.5-6 - Rebuild for Python 2.6 * Tue Feb 19 2008 Fedora Release Engineering - 0.7.5-5 - Autorebuild for GCC 4.3 * Tue Jan 01 2008 Dominik Mierzejewski 0.7.5-4 - fix build in rawhide (include python egg-info file) * Wed Oct 31 2007 Dominik Mierzejewski 0.7.5-3 - include python bindings (bug #355241) - fix chicken-and-egg problem when building python bindings * Wed Aug 29 2007 Dominik Mierzejewski 0.7.5-2 - rebuild for BuildID - update license tag * Mon Jan 29 2007 Dominik Mierzejewski 0.7.5-1 - update to 0.7.5 - remove redundant BRs - add %%check * Thu Sep 14 2006 Dominik Mierzejewski 0.7.4-6 - remove ExcludeArch, the bug is in crm114 * Tue Aug 29 2006 Dominik Mierzejewski 0.7.4-5 - mass rebuild * Fri Aug 04 2006 Dominik Mierzejewski 0.7.4-4 - bump release to fix CVS tag * Thu Aug 03 2006 Dominik Mierzejewski 0.7.4-3 - per FE guidelines, ExcludeArch only those problematic arches * Wed Aug 02 2006 Dominik Mierzejewski 0.7.4-2 - fixed rpmlint warnings - ExclusiveArch: %%{ix86} until amd64 crash is fixed and somebody tests ppc(32) * Wed Jul 26 2006 Dominik Mierzejewski 0.7.4-1 - 0.7.4 - disable evil rpath - added necessary BRs - license changed to LGPL * Sun Feb 19 2006 Dominik Mierzejewski 0.7.2-1 - \E bug patch - FE compliance * Sun Nov 21 2004 Ville Laurikari - added agrep man page * Sun Mar 21 2004 Ville Laurikari - added %%doc doc * Wed Feb 25 2004 Ville Laurikari - removed the .la file from devel package * Mon Dec 22 2003 Ville Laurikari - added %%post/%%postun ldconfig scriplets. * Fri Oct 03 2003 Ville Laurikari - included in the TRE source tree as `tre.spec.in'. * Tue Sep 30 2003 Matthew Berg - tagged release 1 - initial build