]> git.pld-linux.org Git - packages/grep.git/blame - grep.spec
- move from GREP_OPTIONS environmental variable to alias due to its
[packages/grep.git] / grep.spec
CommitLineData
249b8692
JB
1#
2# Conditional build:
95644058
JB
3%bcond_without pcre # PCRE support
4%bcond_without tests # don't perform "make check"
249b8692 5#
3cc2d18b 6Summary: GNU grep Utilities
17002afb
ER
7Summary(de.UTF-8): GNU-Version der Pattern-Matching-Utilities
8Summary(es.UTF-8): Utilitarios grep GNU
9Summary(fr.UTF-8): Utilitaires grep de GNU
10Summary(ja.UTF-8): GNU grep の日本語対応版です.
11Summary(pl.UTF-8): GNU grep
12Summary(pt_BR.UTF-8): Utilitários grep GNU
13Summary(ru.UTF-8): Утилиты поиска по шаблонам GNU grep
14Summary(tr.UTF-8): Dosyalarda katar arama aracı
15Summary(uk.UTF-8): Утиліти пошуку по шаблонам GNU grep
3cc2d18b 16Name: grep
23ca4364 17Version: 2.21
27476148 18Release: 2
d2992593 19Epoch: 2
53291c2c 20License: GPL v3+
695cedbb 21Group: Applications/Text
8222f6c8 22Source0: http://ftp.gnu.org/gnu/grep/%{name}-%{version}.tar.xz
23ca4364 23# Source0-md5: 43c48064d6409862b8a850db83c8038a
f57a8061 24Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
0908e113 25# Source1-md5: 1b5e726d0bee53e898531de4a76ad290
695cedbb 26Patch0: %{name}-info.patch
5770d6ba 27Patch1: %{name}-pl.po-update.patch
ae0a595b 28URL: http://www.gnu.org/software/grep/grep.html
eae5674d
JB
29BuildRequires: autoconf >= 2.59
30BuildRequires: automake >= 1:1.11
701ff406 31BuildRequires: gettext-devel >= 0.18.2
5190c6bb 32%{?with_pcre:BuildRequires: pcre-devel}
8222f6c8 33BuildRequires: tar >= 1:1.22
9167edd4 34BuildRequires: texinfo
8222f6c8 35BuildRequires: xz
e4ade27e 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d1914bad 37
fa853d6f 38%define _bindir /bin
39%define _exec_prefix /
f2c0b3ef 40
3b97ddea 41%description
4a381cec 42The GNU versions of commonly used grep utilities. Grep searches one or
43more input files for lines which contain a match to a specified
44pattern and then prints the matching lines. GNU's grep utilities
45include grep, egrep and fgrep.
d1914bad 46
41a4c9e1
JR
47%description -l de.UTF-8
48Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
4a381cec 49eine oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes
50Muster passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep
41a4c9e1 51enthält grep, egrep und fgrep.
d1914bad 52
41a4c9e1
JR
53%description -l es.UTF-8
54Esta es la implementación GNU del popular utilitario grep. Permite la
55localización rápida de strings en archivos texto.
27dbf85e 56
41a4c9e1
JR
57%description -l fr.UTF-8
58Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
59Unix. Il permet de localiser rapidement des chaînes de caractéres dans
affcb00b 60les fichiers.
d1914bad 61
41a4c9e1
JR
62%description -l ja.UTF-8
63GNU プロジェクトによる grep, egrep, fgrep (以下単に grep) をマルチバ
64イトパッチ(mb1.04)によって日本語対応にしたものです.
bd7fa5d2 65
41a4c9e1
JR
66%description -l pl.UTF-8
67GNU grep jest implementacją popularnego programu uniksowego `grep'.
68Grep jest jednym z podstawowych narzędzi, korzysta z niego prawie
69każdy skrypt shella.
d1914bad 70
41a4c9e1
JR
71%description -l pt_BR.UTF-8
72Esta é a implementação GNU do popular utilitário grep. Permite a
73localização rápida de strings em arquivos texto.
27dbf85e 74
41a4c9e1
JR
75%description -l ru.UTF-8
76Это реализация GNU утилиты grep, предназначенной для быстрого поиска
77по образцу в текстовых файлах.
27dbf85e 78
41a4c9e1
JR
79%description -l tr.UTF-8
80Bu, bütün Unix'lerde bulunan ve yaygın olarak kullanılan grep aracının
81GNU sürümüdür. Metin dosyaları içinde bulunan katarları aramada
82kullanılır.
d1914bad 83
41a4c9e1
JR
84%description -l uk.UTF-8
85Це GNU реалізація популярної утиліти grep, призначеної для швидкого
86пошуку по шаблону в текстових файлах.
27dbf85e 87
d1914bad 88%prep
77966906 89%setup -q
f2c0b3ef 90%patch0 -p1
5770d6ba 91%patch1 -p1
6485439f
JB
92
93%{__rm} po/stamp-po
77966906 94
d1914bad 95%build
95644058 96%{__gettextize}
cbb063e7 97%{__aclocal} -I m4
cbb063e7 98%{__autoconf}
95644058
JB
99%{__autoheader}
100%{__automake}
b53e70a2 101%configure \
249b8692 102 %{!?with_pcre:--disable-perl-regexp} \
8222f6c8
JB
103 --disable-silent-rules \
104 --without-included-regex
135aa3f3 105%{__make}
d1914bad 106
3a62f58c
AM
107%{?with_tests:%{__make} check}
108
d1914bad 109%install
110rm -rf $RPM_BUILD_ROOT
27476148 111install -d $RPM_BUILD_ROOT/etc/shrc.d
3cc2d18b 112
249b8692
JB
113%{__make} install \
114 DESTDIR=$RPM_BUILD_ROOT
3cc2d18b 115
ec6bdc90 116echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
117echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
d1914bad 118
8f6b6139 119bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
f2c0b3ef 120
27476148
AO
121cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.sh
122alias grep='/bin/grep --binary-files=without-match --devices=skip --directories=skip --color=auto'
123EOF
124cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.csh
125alias grep '/bin/grep --binary-files=without-match --devices=skip --directories=skip --color=auto'
7e0ba455
PG
126EOF
127
654e55d0 128%find_lang %{name}
da812a95 129
5593ef19 130rm -f $RPM_BUILD_ROOT%{_infodir}/dir
6485439f
JB
131%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.grep-non-english-man-pages
132%{__rm} $RPM_BUILD_ROOT%{_mandir}/ja-grep-nozgrep.diff
5593ef19 133
d1914bad 134%clean
135rm -rf $RPM_BUILD_ROOT
136
5593ef19
ER
137%post -p /sbin/postshell
138-/usr/sbin/fix-info-dir -c %{_infodir}
f2c0b3ef 139
5593ef19
ER
140%postun -p /sbin/postshell
141-/usr/sbin/fix-info-dir -c %{_infodir}
f2c0b3ef 142
654e55d0 143%files -f %{name}.lang
3cc2d18b 144%defattr(644,root,root,755)
d2992593 145%doc NEWS README ChangeLog TODO
27476148
AO
146%config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/grep.sh
147%config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/grep.csh
95644058
JB
148%attr(755,root,root) %{_bindir}/egrep
149%attr(755,root,root) %{_bindir}/fgrep
150%attr(755,root,root) %{_bindir}/grep
151%{_mandir}/man1/egrep.1*
152%{_mandir}/man1/fgrep.1*
153%{_mandir}/man1/grep.1*
02bc8e14 154%lang(cs) %{_mandir}/cs/man1/*
8f6b6139 155%lang(de) %{_mandir}/de/man1/*
156%lang(es) %{_mandir}/es/man1/*
157%lang(fi) %{_mandir}/fi/man1/*
158%lang(fr) %{_mandir}/fr/man1/*
159%lang(hu) %{_mandir}/hu/man1/*
160%lang(it) %{_mandir}/it/man1/*
bd7fa5d2 161%lang(ja) %{_mandir}/ja/man1/*
8f6b6139 162%lang(nl) %{_mandir}/nl/man1/*
ec6bdc90 163%lang(pl) %{_mandir}/pl/man1/*
95644058 164%{_infodir}/grep.info*
This page took 0.173625 seconds and 4 git commands to generate.