Home | History | Annotate | Line # | Download | only in dist
      1 Name:		tre
      2 Version:	@PACKAGE_VERSION@
      3 Release:	1
      4 License:	LGPL
      5 Group:		System Environment/Libraries
      6 Source0:        http://laurikari.net/tre/tre-@PACKAGE_VERSION@.tar.bz2
      7 Summary:	POSIX compatible regexp library with approximate matching.
      8 Packager:	Ville Laurikari <tre-general (a] lists.laurikari.net>
      9 URL:            http://laurikari.net/tre/
     10 Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}
     11 
     12 Requires(post):   /sbin/ldconfig
     13 Requires(postun): /sbin/ldconfig
     14 
     15 %description
     16 TRE is a lightweight, robust, and efficient POSIX compatible regexp
     17 matching library with some exciting features such as approximate
     18 matching.
     19 
     20 %post
     21 /sbin/ldconfig
     22 
     23 %postun
     24 /sbin/ldconfig
     25 
     26 %package devel
     27 Requires: tre = @PACKAGE_VERSION@
     28 Summary: Development files for use with the tre package.
     29 Group: Development/Libraries
     30 
     31 %description devel
     32 This package contains header files and static libraries for use when
     33 building applications which use the TRE library.
     34 
     35 
     36 %package agrep
     37 Requires: tre >= @PACKAGE_VERSION@
     38 Summary: Approximate grep utility.
     39 Group: Applications/Text
     40 
     41 %description agrep
     42 The agrep tool is similar to the commonly used grep utility, but agrep
     43 can be used to search for approximate matches.
     44 
     45 The agrep tool searches text input for lines (or records separated by
     46 strings matching arbitrary regexps) that contain an approximate, or
     47 fuzzy, match to a specified regexp, and prints the matching lines.
     48 Limits can be set on how many errors of each kind are allowed, or
     49 only the best matching lines can be output.
     50 
     51 Unlike other agrep implementations, TRE agrep allows full POSIX
     52 regexps 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
     59 make
     60 
     61 %install
     62 
     63 make install DESTDIR=$RPM_BUILD_ROOT
     64 
     65 
     66 %clean
     67 rm -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 (a] iki.fi>
     91 - fixed %doc macro and moved to correct place
     92 
     93 * Fri May 12 2006 Ville Laurikari <vl (a] 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 (a] iki.fi>
     98 - added agrep man page
     99 
    100 * Sun Mar 21 2004 Ville Laurikari <vl (a] iki.fi>
    101 - added %doc doc
    102 
    103 * Wed Feb 25 2004 Ville Laurikari <vl (a] iki.fi>
    104 - removed the .la file from devel package
    105 
    106 * Mon Dec 22 2003 Ville Laurikari <vl (a] iki.fi>
    107 - added %post/%postun ldconfig scriplets.
    108 
    109 * Fri Oct 03 2003 Ville Laurikari <vl (a] iki.fi>
    110 - included in the TRE source tree as `tre.spec.in'.
    111 
    112 * Tue Sep 30 2003 Matthew Berg <mberg (a] synacor.com>
    113 - tagged release 1
    114 - initial build
    115