]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
1f1dcd406f49e56ad03382e7128b0ba1ac2b476f
[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(ja):    GNU grep ¤ÎÆüËܸìÂбþÈǤǤ¹.
7 Summary(pl):    GNU grep
8 Summary(pt_BR): Utilitários grep GNU
9 Summary(ru):    õÔÉÌÉÔÙ ÐÏÉÓËÁ ÐÏ ÛÁÂÌÏÎÁÍ GNU grep
10 Summary(tr):    Dosyalarda katar arama aracý
11 Summary(uk):    õÔÉ̦ÔÉ ÐÏÛÕËÕ ÐÏ ÛÁÂÌÏÎÁÍ GNU grep
12 Name:           grep
13 Version:        2.5.1
14 Release:        8
15 Epoch:          2
16 License:        GPL
17 Group:          Applications/Text
18 Source0:        ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
19 # Source0-md5:  ae69f8112cdc63615cefe944f38bbee7
20 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
21 # Source1-md5:  1b5e726d0bee53e898531de4a76ad290
22 Patch0:         %{name}-info.patch
23 Patch1:         %{name}-e%{name}.patch
24 %{?_with_pcre:BuildRequires:    pcre-devel}
25 %{?_with_pcre:Requires: pcre}
26 BuildRequires:  gettext-devel
27 BuildRequires:  gettext-devel
28 BuildRequires:  automake
29 BuildRequires:  autoconf
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         _bindir         /bin
33 %define         _exec_prefix    /
34
35 %description
36 The GNU versions of commonly used grep utilities. Grep searches one or
37 more input files for lines which contain a match to a specified
38 pattern and then prints the matching lines. GNU's grep utilities
39 include grep, egrep and fgrep.
40
41 %description -l de
42 Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
43 eine oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes
44 Muster passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep
45 enthält grep, egrep und fgrep.
46
47 %description -l es
48 Esta es la implementación GNU del popular utilitario grep. Permite la
49 localización rápida de strings en archivos texto.
50
51 %description -l fr
52 Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
53 Unix. Il permet de localiser rapidement des chaînes de caractéres dans
54 les fichiers.
55
56 %description -l ja
57 GNU ¥×¥í¥¸¥§¥¯¥È¤Ë¤è¤ë grep, egrep, fgrep (°Ê²¼Ã±¤Ë grep) ¤ò¥Þ¥ë¥Á¥Ð
58 ¥¤¥È¥Ñ¥Ã¥Á(mb1.04)¤Ë¤è¤Ã¤ÆÆüËܸìÂбþ¤Ë¤·¤¿¤â¤Î¤Ç¤¹.
59
60 %description -l pl
61 GNU grep jest implementacj± popularnego programu uniksowego `grep'.
62 Grep jest jednym z podstawowych narzêdzi, korzysta z niego prawie
63 ka¿dy skrypt shella.
64
65 %description -l pt_BR
66 Esta é a implementação GNU do popular utilitário grep. Permite a
67 localização rápida de strings em arquivos texto.
68
69 %description -l ru
70 üÔÏ ÒÅÁÌÉÚÁÃÉÑ GNU ÕÔÉÌÉÔÙ grep, ÐÒÅÄÎÁÚÎÁÞÅÎÎÏÊ ÄÌÑ ÂÙÓÔÒÏÇÏ ÐÏÉÓËÁ
71 ÐÏ ÏÂÒÁÚÃÕ × ÔÅËÓÔÏ×ÙÈ ÆÁÊÌÁÈ.
72
73 %description -l tr
74 Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn
75 GNU sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada
76 kullanýlýr.
77
78 %description -l uk
79 ãÅ GNU ÒÅÁ̦ÚÁæѠÐÏÐÕÌÑÒÎϧ ÕÔÉ̦ÔÉ grep, ÐÒÉÚÎÁÞÅÎϧ ÄÌÑ Û×ÉÄËÏÇÏ
80 ÐÏÛÕËÕ ÐÏ ÛÁÂÌÏÎÕ × ÔÅËÓÔÏ×ÉÈ ÆÁÊÌÁÈ.
81
82 %prep
83 %setup  -q
84 %patch0 -p1
85 %patch1 -p1
86
87 %build
88 rm m4/{header,init}.m4
89 %{__libtoolize}
90 %{__aclocal} -I m4
91 %{__automake}
92 %{__autoconf}
93 %ifarch sparc sparc64
94 CPPFLAGS=""
95 export CPPFLAGS
96 %endif
97 %configure \
98         %{?!_with_pcre:--disable-perl-regexp} \
99         --without-included-regex \
100         --enable-nls
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install DESTDIR=$RPM_BUILD_ROOT
107
108 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
109 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
110
111 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
112
113 %find_lang %{name}
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post
119 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
120
121 %postun
122 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
123
124 %files -f %{name}.lang
125 %defattr(644,root,root,755)
126 %doc NEWS README ChangeLog TODO
127 %attr(755,root,root) %{_bindir}/*
128 %{_mandir}/man1/*
129 %lang(cs) %{_mandir}/cs/man1/*
130 %lang(de) %{_mandir}/de/man1/*
131 %lang(es) %{_mandir}/es/man1/*
132 %lang(fi) %{_mandir}/fi/man1/*
133 %lang(fr) %{_mandir}/fr/man1/*
134 %lang(hu) %{_mandir}/hu/man1/*
135 %lang(it) %{_mandir}/it/man1/*
136 %lang(ja) %{_mandir}/ja/man1/*
137 %lang(nl) %{_mandir}/nl/man1/*
138 %lang(pl) %{_mandir}/pl/man1/*
139 %{_infodir}/*info*
This page took 0.100947 seconds and 3 git commands to generate.