]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
9ea83cb31e42886ceddc259a108cbaf008b3007f
[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(fr):    Utilitaires grep de GNU
5 Summary(pl):    GNU grep
6 Summary(tr):    Dosyalarda katar arama aracý
7 Name:           grep
8 Version:        2.5.1
9 Release:        2
10 Epoch:          1
11 License:        GPL
12 Group:          Applications/Text
13 Source0:        ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
14 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-egrep.pach
17 %{?_with_pcre:BuildRequires:    pcre-devel}
18 %{?_with_pcre:Requires: pcre}
19 BuildRequires:  gettext-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _bindir         /bin
23 %define         _exec_prefix    /
24
25 %description
26 The GNU versions of commonly used grep utilities. Grep searches one or
27 more input files for lines which contain a match to a specified
28 pattern and then prints the matching lines. GNU's grep utilities
29 include grep, egrep and fgrep.
30
31 %description -l de
32 Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
33 eine oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes
34 Muster passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep
35 enthält grep, egrep und fgrep.
36
37 %description -l fr
38 Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
39 Unix. Il permet de localiser rapidement des chaînes de caractéres dans
40 les fichiers.
41
42 %description -l pl
43 GNU grep jest implementacj± popularnego programu uniksowego `grep'.
44 Grep jest jednym z podstawowych narzêdzi, korzysta z niego prawie
45 ka¿dy skrypt shella.
46
47 %description -l tr
48 Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn
49 GNU sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada
50 kullanýlýr.
51
52 %prep
53 %setup  -q
54 %patch0 -p1
55 %patch1 -p1
56
57 %build
58 %ifarch sparc sparc64
59 CPPFLAGS=""
60 export CPPFLAGS
61 %endif
62 %configure \
63         %{?!_with_pcre:--disable-perl-regexp} \
64         --without-included-regex \
65         --enable-nls
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install DESTDIR=$RPM_BUILD_ROOT
72
73 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
74 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
75
76 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
77
78 gzip -9nf NEWS README ChangeLog TODO
79
80 %find_lang %{name}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post
86 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
87
88 %postun
89 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
90
91 %files -f %{name}.lang
92 %defattr(644,root,root,755)
93 %doc *.gz
94 %attr(755,root,root) %{_bindir}/*
95 %{_mandir}/man1/*
96 %lang(de) %{_mandir}/de/man1/*
97 %lang(es) %{_mandir}/es/man1/*
98 %lang(fi) %{_mandir}/fi/man1/*
99 %lang(fr) %{_mandir}/fr/man1/*
100 %lang(hu) %{_mandir}/hu/man1/*
101 %lang(it) %{_mandir}/it/man1/*
102 %lang(nl) %{_mandir}/nl/man1/*
103 %lang(pl) %{_mandir}/pl/man1/*
104 %{_infodir}/*info*
This page took 0.089551 seconds and 3 git commands to generate.