]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
39046a2768d3840d3c18d99afcfc9803d06327a5
[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:        5
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}-non-english-man-pages.tar.bz2
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         --without-included-regex \
78         --enable-nls
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install DESTDIR=$RPM_BUILD_ROOT
85
86 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
87 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
88
89 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
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 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
100
101 %postun
102 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
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(da) %{_mandir}/da/man1/*
110 %lang(de) %{_mandir}/de/man1/*
111 %lang(es) %{_mandir}/es/man1/*
112 %lang(fi) %{_mandir}/fi/man1/*
113 %lang(fr) %{_mandir}/fr/man1/*
114 %lang(hu) %{_mandir}/hu/man1/*
115 %lang(it) %{_mandir}/it/man1/*
116 %lang(nl) %{_mandir}/nl/man1/*
117 %lang(pl) %{_mandir}/pl/man1/*
118 %{_infodir}/*info*
This page took 0.07492 seconds and 3 git commands to generate.