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