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