]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
b057ac9391b695c3a91a28c3648e58a8b93c838d
[packages/grep.git] / grep.spec
1 Summary:        GNU grep Utilities
2 Summary(de):    GNU-Version der Pattern-Matching-Utilities
3 Summary(fr):    Utilitaires grep de GNU
4 Summary(pl):    GNU grep 
5 Summary(tr):    Dosyalarda katar arama aracý
6 Name:           grep
7 Version:        2.5a
8 Release:        4
9 License:        GPL
10 Group:          Utilities/Text
11 Group(fr):      Utilitaires/Texte
12 Group(pl):      Narzêdzia/Tekst
13 Source0:        ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
14 Source1:        grep.1.pl
15 Patch0:         grep-info.patch
16 BuildRequires:  pcre-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _bindir         /bin
20 %define         _exec_prefix    /
21
22 %description
23 The GNU versions of commonly used grep utilities. Grep searches one or
24 more input files for lines which contain a match to a specified
25 pattern and then prints the matching lines. GNU's grep utilities
26 include grep, egrep and fgrep.
27
28 %description -l de
29 Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
30 eine oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes
31 Muster passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep
32 enthält grep, egrep und fgrep.
33
34 %description -l fr
35 Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
36 *nix. Il permet de localiser rapidement des chaînes de caractéres dans
37 les fichiers.
38
39 %description -l pl 
40 GNU grep jest implementacj± popularnego programu unixowego `grep'.
41 Grep jest jednym z podstawowych narzêdzi, korzysta z niego prawie
42 ka¿dy skrypt shella.
43
44 %description -l tr
45 Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn
46 GNU sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada
47 kullanýlýr.
48
49 %prep
50 %setup  -q
51 %patch0 -p1
52
53 %build
54 gettextize --force --copy
55 autoconf
56
57 %ifarch sparc sparc64
58 CPPFLAGS=""
59 export CPPFLAGS
60 %endif
61 LDFLAGS="-s"; export LDFLAGS
62 %configure
63
64 make
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
69
70 make install DESTDIR=$RPM_BUILD_ROOT
71
72 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/grep.1
73
74 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
75 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
76
77 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/egrep.1
78 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/fgrep.1
79
80 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/{man1/*,pl/man1/*}} \
81         NEWS README ChangeLog TODO
82
83 %find_lang %{name}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post
89 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
90
91 %postun
92 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
93
94 %files -f %{name}.lang
95 %defattr(644,root,root,755)
96 %doc {NEWS,README,ChangeLog,TODO}.gz
97
98 %attr(755,root,root) %{_bindir}/*
99 %{_mandir}/man1/*
100 %lang(pl) %{_mandir}/pl/man1/*
101 %{_infodir}/*info*
This page took 0.026884 seconds and 3 git commands to generate.