| 1 | Summary: Pattern matching utilities
|
|---|
| 2 | Name: grep
|
|---|
| 3 | Version: 3.3
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: GPLv3+
|
|---|
| 6 | URL: http://www.gnu.org/software/grep/
|
|---|
| 7 | Group: Applications/Text
|
|---|
| 8 |
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: gcc
|
|---|
| 13 | BuildRequires: pcre-devel >= 3.9-10, texinfo, gettext
|
|---|
| 14 | BuildRequires: autoconf automake
|
|---|
| 15 | BuildRequires: libc-devel, libcx-devel
|
|---|
| 16 | Provides: /@unixroot/usr/bin/grep
|
|---|
| 17 | Provides: /@unixroot/usr/bin/fgrep
|
|---|
| 18 | Provides: /@unixtoor/usr/bin/egrep
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | The GNU versions of commonly used grep utilities. Grep searches through
|
|---|
| 22 | textual input for lines which contain a match to a specified pattern and then
|
|---|
| 23 | prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
|
|---|
| 24 |
|
|---|
| 25 | GNU 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
|
|---|
| 34 | autoreconf -vfi
|
|---|
| 35 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 36 | export 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}"
|
|---|
| 49 | make %{?_smp_mflags}
|
|---|
| 50 |
|
|---|
| 51 | %install
|
|---|
| 52 | make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 53 | gzip $RPM_BUILD_ROOT%{_infodir}/grep*
|
|---|
| 54 | rm -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.
|
|---|