source: spec/trunk/SPECS/grep.spec@ 1010

Last change on this file since 1010 was 973, checked in by Silvan Scherrer, 9 years ago

spec: grep: Release version 2.28-1.

File size: 2.1 KB
Line 
1Summary: Pattern matching utilities
2Name: grep
3Version: 2.28
4Release: 1%{?dist}
5License: GPLv3+
6URL: http://www.gnu.org/software/grep/
7Group: Applications/Text
8
9Vendor: bww bitwise works GmbH
10%scm_source svn http://svn.netlabs.org/repos/ports/grep/trunk 1992
11
12BuildRequires: pcre-devel >= 3.9-10, gettext
13BuildRequires: texinfo
14BuildRequires: autoconf automake
15
16%description
17The GNU versions of commonly used grep utilities. Grep searches through
18textual input for lines which contain a match to a specified pattern and then
19prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
20
21GNU grep is needed by many scripts, so it shall be installed on every system.
22
23%debug_package
24
25%prep
26%scm_setup
27
28%build
29# we do autoreconf even fedora doesn't do it
30autoreconf -fi
31export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
32export LIBS="-lcx"
33%configure --without-included-regex --disable-silent-rules \
34 CPPFLAGS="-I%{_includedir}/pcre"
35make %{?_smp_mflags}
36
37%install
38rm -rf ${RPM_BUILD_ROOT}
39make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
40gzip $RPM_BUILD_ROOT%{_infodir}/grep*
41rm -f $RPM_BUILD_ROOT%{_infodir}/dir
42
43%find_lang %name
44
45%check
46#make check
47
48%clean
49rm -rf ${RPM_BUILD_ROOT}
50
51%post
52if [ -f %{_infodir}/grep.info.gz ]; then
53 %{_sbindir}/install-info.exe --quiet --info-dir=%{_infodir} %{_infodir}/grep.info.gz || :
54fi
55
56%preun
57if [ $1 = 0 ]; then
58 if [ -f %{_infodir}/grep.info.gz ]; then
59 %{_sbindir}/install-info.exe --quiet --info-dir=%{_infodir} --delete %{_infodir}/grep.info.gz || :
60 fi
61fi
62
63%files -f %{name}.lang
64%defattr(-,root,root)
65%doc AUTHORS THANKS TODO NEWS
66%{!?_licensedir:%global license %%doc}
67%license COPYING
68
69%{_bindir}/*
70%exclude %{_bindir}/*.dbg
71%{_infodir}/*.info*.gz
72%{_mandir}/*/*
73
74%changelog
75* Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.28-1
76- update to version 2.28
77- use new scm_source and scm_setup macros
78
79* Tue Sep 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.25-2
80- fix a sigabrt due to blindely source copy :(
81
82* Mon Sep 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.25-1
83- update to version 2.25
84
85* Sun Jan 08 2012 yd
86- initial unixroot build.
87- fixed bindir value.
Note: See TracBrowser for help on using the repository browser.