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