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