]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
dc0740342d45722805ffdf9bb7d024770cab30bc
[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(es):    Utilitarios grep GNU
5 Summary(fr):    Utilitaires grep de GNU
6 Summary(pl):    GNU grep
7 Summary(pt_BR): Utilitários grep GNU
8 Summary(ru):    õÔÉÌÉÔÙ ÐÏÉÓËÁ ÐÏ ÛÁÂÌÏÎÁÍ GNU grep
9 Summary(tr):    Dosyalarda katar arama aracý
10 Summary(uk):    õÔÉ̦ÔÉ ÐÏÛÕËÕ ÐÏ ÛÁÂÌÏÎÁÍ GNU grep
11 Name:           grep
12 Version:        2.5.1
13 Release:        4
14 Epoch:          2
15 License:        GPL
16 Group:          Applications/Text
17 Source0:        ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
18 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
19 Patch0:         %{name}-info.patch
20 Patch1:         %{name}-e%{name}.patch
21 %{?_with_pcre:BuildRequires:    pcre-devel}
22 %{?_with_pcre:Requires: pcre}
23 BuildRequires:  gettext-devel
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 es
42 Esta es la implementación GNU del popular utilitario grep. Permite la
43 localización rápida de strings en archivos texto.
44
45 %description -l fr
46 Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
47 Unix. Il permet de localiser rapidement des chaînes de caractéres dans
48 les fichiers.
49
50 %description -l pl
51 GNU grep jest implementacj± popularnego programu uniksowego `grep'.
52 Grep jest jednym z podstawowych narzêdzi, korzysta z niego prawie
53 ka¿dy skrypt shella.
54
55 %description -l pt_BR
56 Esta é a implementação GNU do popular utilitário grep. Permite a
57 localização rápida de strings em arquivos texto.
58
59 %description -l ru
60 üÔÏ ÒÅÁÌÉÚÁÃÉÑ GNU ÕÔÉÌÉÔÙ grep, ÐÒÅÄÎÁÚÎÁÞÅÎÎÏÊ ÄÌÑ ÂÙÓÔÒÏÇÏ ÐÏÉÓËÁ
61 ÐÏ ÏÂÒÁÚÃÕ × ÔÅËÓÔÏ×ÙÈ ÆÁÊÌÁÈ.
62
63 %description -l tr
64 Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn
65 GNU sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada
66 kullanýlýr.
67
68 %description -l uk
69 ãÅ GNU ÒÅÁ̦ÚÁæѠÐÏÐÕÌÑÒÎϧ ÕÔÉ̦ÔÉ grep, ÐÒÉÚÎÁÞÅÎϧ ÄÌÑ Û×ÉÄËÏÇÏ
70 ÐÏÛÕËÕ ÐÏ ÛÁÂÌÏÎÕ × ÔÅËÓÔÏ×ÉÈ ÆÁÊÌÁÈ.
71
72 %prep
73 %setup  -q
74 %patch0 -p1
75 %patch1 -p1
76
77 %build
78 %ifarch sparc sparc64
79 CPPFLAGS=""
80 export CPPFLAGS
81 %endif
82 %configure \
83         %{?!_with_pcre:--disable-perl-regexp} \
84         --without-included-regex \
85         --enable-nls
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install DESTDIR=$RPM_BUILD_ROOT
92
93 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
94 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
95
96 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
97
98 %find_lang %{name}
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post
104 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
105
106 %postun
107 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
108
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
111 %doc NEWS README ChangeLog TODO
112 %attr(755,root,root) %{_bindir}/*
113 %{_mandir}/man1/*
114 %lang(de) %{_mandir}/de/man1/*
115 %lang(es) %{_mandir}/es/man1/*
116 %lang(fi) %{_mandir}/fi/man1/*
117 %lang(fr) %{_mandir}/fr/man1/*
118 %lang(hu) %{_mandir}/hu/man1/*
119 %lang(it) %{_mandir}/it/man1/*
120 %lang(nl) %{_mandir}/nl/man1/*
121 %lang(pl) %{_mandir}/pl/man1/*
122 %{_infodir}/*info*
This page took 0.111977 seconds and 3 git commands to generate.