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

Last change on this file since 1711 was 1633, checked in by Silvan Scherrer, 7 years ago

spec: grep: Release version 3.3-1.

File size: 2.4 KB
Line 
1Summary: Pattern matching utilities
2Name: grep
3Version: 3.3
4Release: 1%{?dist}
5License: GPLv3+
6URL: http://www.gnu.org/software/grep/
7Group: Applications/Text
8
9Vendor: bww bitwise works GmbH
10%scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
11
12BuildRequires: gcc
13BuildRequires: pcre-devel >= 3.9-10, texinfo, gettext
14BuildRequires: autoconf automake
15BuildRequires: libc-devel, libcx-devel
16Provides: /@unixroot/usr/bin/grep
17Provides: /@unixroot/usr/bin/fgrep
18Provides: /@unixtoor/usr/bin/egrep
19
20%description
21The GNU versions of commonly used grep utilities. Grep searches through
22textual input for lines which contain a match to a specified pattern and then
23prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
24
25GNU grep is needed by many scripts, so it shall be installed on every system.
26
27%debug_package
28
29%prep
30%scm_setup
31
32%build
33# we do autoreconf even fedora doesn't do it
34autoreconf -vfi
35export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
36export LIBS="-lcx"
37
38%global BUILD_FLAGS $RPM_OPT_FLAGS
39
40# Currently gcc on ppc uses double-double arithmetic for long double and it
41# does not conform to the IEEE floating-point standard. Thus force
42# long double to be double and conformant.
43%ifarch ppc ppc64
44%global BUILD_FLAGS %{BUILD_FLAGS} -mlong-double-64
45%endif
46
47%configure --without-included-regex --disable-silent-rules \
48 CPPFLAGS="-I%{_includedir}/pcre" CFLAGS="%{BUILD_FLAGS}"
49make %{?_smp_mflags}
50
51%install
52make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
53gzip $RPM_BUILD_ROOT%{_infodir}/grep*
54rm -f $RPM_BUILD_ROOT%{_infodir}/dir
55
56%find_lang %name
57
58%check
59#make check
60
61
62%files -f %{name}.lang
63%doc AUTHORS THANKS TODO NEWS README
64%{!?_licensedir:%global license %%doc}
65%license COPYING
66
67%{_bindir}/*
68%exclude %{_bindir}/*.dbg
69%{_infodir}/*.info*.gz
70%{_mandir}/*/*
71
72%changelog
73* Mon May 13 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> - 3.3-1
74- case insensitive search in --include/--exclude options (ticket #208)
75- update to version 3.3
76- move source to github
77- merge fedora spec with our spec
78
79* Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.28-1
80- update to version 2.28
81- use new scm_source and scm_setup macros
82
83* Tue Sep 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.25-2
84- fix a sigabrt due to blindely source copy :(
85
86* Mon Sep 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.25-1
87- update to version 2.25
88
89* Sun Jan 08 2012 yd
90- initial unixroot build.
91- fixed bindir value.
Note: See TracBrowser for help on using the repository browser.