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