| 1 | Summary: Pattern matching utilities
|
|---|
| 2 | Name: grep
|
|---|
| 3 | Version: 2.28
|
|---|
| 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 svn http://svn.netlabs.org/repos/ports/grep/trunk 1992
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: pcre-devel >= 3.9-10, gettext
|
|---|
| 13 | BuildRequires: texinfo
|
|---|
| 14 | BuildRequires: autoconf automake
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | The GNU versions of commonly used grep utilities. Grep searches through
|
|---|
| 18 | textual input for lines which contain a match to a specified pattern and then
|
|---|
| 19 | prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
|
|---|
| 20 |
|
|---|
| 21 | GNU 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
|
|---|
| 30 | autoreconf -fi
|
|---|
| 31 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 32 | export LIBS="-lcx"
|
|---|
| 33 | %configure --without-included-regex --disable-silent-rules \
|
|---|
| 34 | CPPFLAGS="-I%{_includedir}/pcre"
|
|---|
| 35 | make %{?_smp_mflags}
|
|---|
| 36 |
|
|---|
| 37 | %install
|
|---|
| 38 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 39 | make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 40 | gzip $RPM_BUILD_ROOT%{_infodir}/grep*
|
|---|
| 41 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 42 |
|
|---|
| 43 | %find_lang %name
|
|---|
| 44 |
|
|---|
| 45 | %check
|
|---|
| 46 | #make check
|
|---|
| 47 |
|
|---|
| 48 | %clean
|
|---|
| 49 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 50 |
|
|---|
| 51 | %post
|
|---|
| 52 | if [ -f %{_infodir}/grep.info.gz ]; then
|
|---|
| 53 | %{_sbindir}/install-info.exe --quiet --info-dir=%{_infodir} %{_infodir}/grep.info.gz || :
|
|---|
| 54 | fi
|
|---|
| 55 |
|
|---|
| 56 | %preun
|
|---|
| 57 | if [ $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
|
|---|
| 61 | fi
|
|---|
| 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.
|
|---|