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