]> git.pld-linux.org Git - packages/grep.git/blobdiff - grep.spec
- added da,de,es,fi,fr,hu,it,nl man pages
[packages/grep.git] / grep.spec
index 16ecfd09ea243d1de2f3fd9285e51b5fa87618c2..39046a2768d3840d3c18d99afcfc9803d06327a5 100644 (file)
--- a/grep.spec
+++ b/grep.spec
+# _with_pcre - PCRE support
 Summary:       GNU grep Utilities
+Summary(de):   GNU-Version der Pattern-Matching-Utilities
 Summary(fr):   Utilitaires grep de GNU
 Summary(pl):   GNU grep 
 Summary(tr):   Dosyalarda katar arama aracý
 Name:          grep
-Version:       2.3
+Version:       2.5e
 Release:       5
-Copyright:     GPL
-Group:         Utilities/Text
-Group(pl):     Narzêdzia/Tekst
-Source0:       ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Source1:       grep.1.pl
-Patch0:                grep-info.patch
-Prereq:                /sbin/install-info
-Buildroot:     /tmp/%{name}-%{version}-root
-
-%define _bindir /bin
+Epoch:         1
+License:       GPL
+Group:         Applications/Text
+Group(de):     Applikationen/Text
+Group(fr):     Utilitaires/Texte
+Group(pl):     Aplikacje/Tekst
+Source0:       ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
+Source1:       %{name}-non-english-man-pages.tar.bz2
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-m4.patch
+Patch2:                %{name}-ac25x.patch
+%{?_with_pcre:BuildRequires:   pcre-devel}
+%{?_with_pcre:Requires:        pcre}
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRequires: gettext-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _bindir         /bin
+%define                _exec_prefix    /
 
 %description
-This is the GNU implementation of the popular `grep' *nix utility. It
-allows for the fast locating of strings in text files.
+The GNU versions of commonly used grep utilities. Grep searches one or
+more input files for lines which contain a match to a specified
+pattern and then prints the matching lines. GNU's grep utilities
+include grep, egrep and fgrep.
 
 %description -l de
-Dies ist die GNU-Implementierung des beliebten *nix-Dienstprogramms 'grep'.
-Damit können schnell Zeichenketten in Textdateien finden.
+Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
+eine oder mehrere Eingabedateien nach Zeilen, die auf ein angegebenes
+Muster passen, und zeigt dann die entsprechenden Zeilen an. GNUs grep
+enthält grep, egrep und fgrep.
 
 %description -l fr
-Ceci est l'implémentation par GNU du  populaire l'utilitaire grep su *nix.
-Il permet de localiser rapidement des chaînes de caractéres dans les
-fichiers.
+Ceci est l'implémentation par GNU du populaire l'utilitaire grep su
+Unix. Il permet de localiser rapidement des chaînes de caractéres dans
+les fichiers.
 
 %description -l pl 
-GNU grep jest implementacj± popularnego programu unixowego `grep'. Grep jest
-jednym z podstawowych narzêdzi, korzysta z niego prawie ka¿dy skrypt shella.
+GNU grep jest implementacj± popularnego programu uniksowego `grep'.
+Grep jest jednym z podstawowych narzêdzi, korzysta z niego prawie
+ka¿dy skrypt shella.
 
 %description -l tr
-Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn GNU
-sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada kullanýlýr.
+Bu, bütün Unix'lerde bulunan ve yaygýn olarak kullanýlan grep aracýnýn
+GNU sürümüdür. Metin dosyalarý içinde bulunan katarlarý aramada
+kullanýlýr.
 
 %prep
 %setup  -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
+rm -f missing m4/{largefile,error,gettext,lcmessage,progtest}.m4
 gettextize --force --copy
+aclocal
 autoconf
+automake -a -c
+
+%ifarch sparc sparc64
+CPPFLAGS=""
+export CPPFLAGS
+%endif
 %configure \
-       --prefix=%{_prefix} \
-       --exec-prefix=/
-make
+       %{?!_with_pcre:--disable-perl-regexp} \
+       --without-included-regex \
+       --enable-nls
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
-
-make install-strip DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/grep.1
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/egrep.1
 echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
 
-echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/egrep.1
-echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/fgrep.1
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
-gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/{man1/*,pl/man1/*}} \
-       NEWS README ChangeLog TODO
+gzip -9nf NEWS README ChangeLog TODO
 
-%find_lang grep
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/install-info %{_infodir}/grep.info.gz /etc/info-dir
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%preun
-if [ "$1" = "0" ]; then
-       /sbin/install-info --delete %{_infodir}/grep.info.gz /etc/info-dir
-fi
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%files -f grep.lang
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc {NEWS,README,ChangeLog,TODO}.gz
-
-%attr(755,root,root) /bin/*
+%doc *.gz
+%attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
+%lang(da) %{_mandir}/da/man1/*
+%lang(de) %{_mandir}/de/man1/*
+%lang(es) %{_mandir}/es/man1/*
+%lang(fi) %{_mandir}/fi/man1/*
+%lang(fr) %{_mandir}/fr/man1/*
+%lang(hu) %{_mandir}/hu/man1/*
+%lang(it) %{_mandir}/it/man1/*
+%lang(nl) %{_mandir}/nl/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
 %{_infodir}/*info*
-
-%changelog
-* Fri May 21 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.3-4]
-- added more macros.
-
-* Wed Apr 28 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.3-3]
-- added el .mo file,
-- added pl man page for grep,
-- added info pages for grep.
-
-* Tue Apr 27 1999 Piotr Czerwiñski <pius@pld.org.pl>
-  [2.2-6]
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- gzipping documentation,
-- removed man group from man pages,
-- replacements in %files,
-- minor changes,
-- recompiled on rpm 3.
-
-* Fri Dec 11 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.2-4]
-- added gzipping man pages,
-- added using LDFLAGS="-s" to ./configure enviroment.
-
-* Tue Oct 06 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [2.2-3]
-- added pl translation,
-- minor modification of the spec file.
-- build against GNU libc-2.1,
-- start at RH spec file.
This page took 0.038495 seconds and 4 git commands to generate.