]> git.pld-linux.org Git - packages/grep.git/blob - grep.spec
46de1fe06ce22731d3578ebc15911a907402485a
[packages/grep.git] / grep.spec
1 Summary:        GNU grep Utilities
2 Summary(de):    GNU-Version der Pattern-Matching-Utilities
3 Summary(fr):    Utilitaires grep de GNU
4 Summary(pl):    GNU grep 
5 Summary(tr):    Dosyalarda katar arama aracý
6 Name:           grep
7 Version:        2.5a
8 Release:        6
9 License:        GPL
10 Group:          Applications/Text
11 Group(de):      Applikationen/Text
12 Group(fr):      Utilitaires/Texte
13 Group(pl):      Aplikacje/Tekst
14 Source0:        ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
15 Source1:        %{name}.1.pl
16 Patch0:         %{name}-info.patch
17 Patch1:         %{name}-i18n.patch
18 BuildRequires:  pcre-devel
19 Requires:       pcre
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 - *nix. Il permet de localiser rapidement des chaînes de caractéres
40   dans les fichiers.
41
42 %description -l pl 
43 GNU grep jest implementacj± popularnego programu unixowego `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 gettextize --force --copy
59 autoconf
60
61 %ifarch sparc sparc64
62 CPPFLAGS=""
63 export CPPFLAGS
64 %endif
65 %configure
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
71
72 %{__make} install DESTDIR=$RPM_BUILD_ROOT
73
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/grep.1
75
76 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
77 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
78
79 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/egrep.1
80 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/fgrep.1
81
82 gzip -9nf NEWS README ChangeLog TODO
83
84 %find_lang %{name}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
91
92 %postun
93 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc *.gz
98 %attr(755,root,root) %{_bindir}/*
99 %{_mandir}/man1/*
100 %lang(pl) %{_mandir}/pl/man1/*
101 %{_infodir}/*info*
This page took 0.086601 seconds and 3 git commands to generate.