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