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