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