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