]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
- updated to 2.4.1,
[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.4.1
8 Release:        1
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 Prereq:         /usr/sbin/fix-info-dir
17 Buildroot:      /tmp/%{name}-%{version}-root
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 pattern and
25 then prints the matching lines. GNU's grep utilities include grep, egrep
26 and fgrep.
27
28 %description -l de
29 Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht eine
30 oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes Muster
31 passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep enthält
32 grep, egrep und fgrep.
33
34 %description -l fr
35 Ceci est l'implémentation par GNU du  populaire l'utilitaire grep su *nix.
36 Il permet de localiser rapidement des chaînes de caractéres dans les
37 fichiers.
38
39 %description -l pl 
40 GNU grep jest implementacj± popularnego programu unixowego `grep'. Grep
41 jest jednym z podstawowych narzêdzi, korzysta z niego prawie ka¿dy skrypt
42 shella.
43
44 %description -l tr
45 Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn GNU
46 sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada kullanýlýr.
47
48 %prep
49 %setup  -q
50 %patch0 -p1
51
52 %build
53 gettextize --force --copy
54 autoconf
55
56 %ifarch sparc sparc64
57 CPPFLAGS=""
58 export CPPFLAGS
59 %endif
60 LDFLAGS="-s"; export LDFLAGS
61 %configure
62
63 make
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
68
69 make install DESTDIR=$RPM_BUILD_ROOT
70
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/grep.1
72
73 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
74 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
75
76 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/egrep.1
77 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/fgrep.1
78
79 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/{man1/*,pl/man1/*}} \
80         NEWS README ChangeLog TODO
81
82 %find_lang %{name}
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 %{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
89
90 %postun
91 %{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
92
93 %files -f %{name}.lang
94 %defattr(644,root,root,755)
95 %doc {NEWS,README,ChangeLog,TODO}.gz
96
97 %attr(755,root,root) %{_bindir}/*
98 %{_mandir}/man1/*
99 %lang(pl) %{_mandir}/pl/man1/*
100 %{_infodir}/*info*
This page took 0.141369 seconds and 4 git commands to generate.