1 # _with_pcre - PCRE support
2 Summary: GNU grep Utilities
3 Summary(de): GNU-Version der Pattern-Matching-Utilities
4 Summary(fr): Utilitaires grep de GNU
6 Summary(tr): Dosyalarda katar arama aracý
12 Group: Applications/Text
13 Group(de): Applikationen/Text
14 Group(fr): Utilitaires/Texte
15 Group(pl): Aplikacje/Tekst
16 Source0: ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
18 Patch0: %{name}-info.patch
19 Patch1: %{name}-m4.patch
20 Patch2: %{name}-ac25x.patch
21 %{?_with_pcre:BuildRequires: pcre-devel}
22 %{?_with_pcre:Requires: pcre}
23 BuildRequires: automake
24 BuildRequires: autoconf
25 BuildRequires: gettext-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _exec_prefix /
32 The GNU versions of commonly used grep utilities. Grep searches one or
33 more input files for lines which contain a match to a specified
34 pattern and then prints the matching lines. GNU's grep utilities
35 include grep, egrep and fgrep.
38 Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
39 eine oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes
40 Muster passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep
41 enthält grep, egrep und fgrep.
44 Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
45 Unix. Il permet de localiser rapidement des chaînes de caractéres dans
49 GNU grep jest implementacj± popularnego programu uniksowego `grep'.
50 Grep jest jednym z podstawowych narzêdzi, korzysta z niego prawie
54 Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn
55 GNU sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada
65 rm -f missing m4/{largefile,error,gettext,lcmessage,progtest}.m4
66 gettextize --force --copy
76 %{?!_with_pcre:--disable-perl-regexp} \
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
84 %{__make} install DESTDIR=$RPM_BUILD_ROOT
86 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/grep.1
88 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
89 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
91 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/egrep.1
92 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/fgrep.1
94 gzip -9nf NEWS README ChangeLog TODO
99 rm -rf $RPM_BUILD_ROOT
102 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
105 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
107 %files -f %{name}.lang
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/*
112 %lang(pl) %{_mandir}/pl/man1/*