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