1Name: tre 2Version: @PACKAGE_VERSION@ 3Release: 1 4License: LGPL 5Group: System Environment/Libraries 6Source0: http://laurikari.net/tre/tre-@PACKAGE_VERSION@.tar.bz2 7Summary: POSIX compatible regexp library with approximate matching. 8Packager: Ville Laurikari <tre-general@lists.laurikari.net> 9URL: http://laurikari.net/tre/ 10Buildroot: %{_tmppath}/%{name}-%{version}-%{release} 11 12Requires(post): /sbin/ldconfig 13Requires(postun): /sbin/ldconfig 14 15%description 16TRE is a lightweight, robust, and efficient POSIX compatible regexp 17matching library with some exciting features such as approximate 18matching. 19 20%post 21/sbin/ldconfig 22 23%postun 24/sbin/ldconfig 25 26%package devel 27Requires: tre = @PACKAGE_VERSION@ 28Summary: Development files for use with the tre package. 29Group: Development/Libraries 30 31%description devel 32This package contains header files and static libraries for use when 33building applications which use the TRE library. 34 35 36%package agrep 37Requires: tre >= @PACKAGE_VERSION@ 38Summary: Approximate grep utility. 39Group: Applications/Text 40 41%description agrep 42The agrep tool is similar to the commonly used grep utility, but agrep 43can be used to search for approximate matches. 44 45The agrep tool searches text input for lines (or records separated by 46strings matching arbitrary regexps) that contain an approximate, or 47fuzzy, match to a specified regexp, and prints the matching lines. 48Limits can be set on how many errors of each kind are allowed, or 49only the best matching lines can be output. 50 51Unlike other agrep implementations, TRE agrep allows full POSIX 52regexps of any length, any number of errors, and non-uniform costs. 53 54%prep 55%setup -q 56 57%build 58./configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-static 59make 60 61%install 62 63make install DESTDIR=$RPM_BUILD_ROOT 64 65 66%clean 67rm -rf $RPM_BUILD_ROOT 68 69%files 70%defattr (-, root, root) 71%{_datadir}/* 72%{_libdir}/libtre.so.* 73%doc doc/*.css 74%doc doc/*.html 75 76%files devel 77%defattr (-, root, root) 78%{_includedir}/* 79%{_libdir}/libtre.a 80%{_libdir}/libtre.la 81%{_libdir}/libtre.so 82%{_libdir}/pkgconfig/* 83 84%files agrep 85%defattr (-, root, root) 86%{_bindir}/agrep 87%{_mandir}/man1/agrep.1.gz 88 89%changelog 90* Sat Jul 22 2006 Ville Laurikari <vl@iki.fi> 91- fixed %doc macro and moved to correct place 92 93* Fri May 12 2006 Ville Laurikari <vl@iki.fi> 94- fixed to work with recent rpmbuild versions (unpackaged files) 95- handling for multilib environments 96 97* Sun Nov 21 2004 Ville Laurikari <vl@iki.fi> 98- added agrep man page 99 100* Sun Mar 21 2004 Ville Laurikari <vl@iki.fi> 101- added %doc doc 102 103* Wed Feb 25 2004 Ville Laurikari <vl@iki.fi> 104- removed the .la file from devel package 105 106* Mon Dec 22 2003 Ville Laurikari <vl@iki.fi> 107- added %post/%postun ldconfig scriplets. 108 109* Fri Oct 03 2003 Ville Laurikari <vl@iki.fi> 110- included in the TRE source tree as `tre.spec.in'. 111 112* Tue Sep 30 2003 Matthew Berg <mberg@synacor.com> 113- tagged release 1 114- initial build 115