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