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