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