]> git.pld-linux.org Git - packages/grep.git/blobdiff - grep.spec
- rel 3; incorporate patches from debian that give huge boost in multibyte locale
[packages/grep.git] / grep.spec
index 91154334e157705e5c23c0074aae4b1f6416b177..cc74f1840258eac682d67d1748d3a33eee9067d4 100644 (file)
--- a/grep.spec
+++ b/grep.spec
@@ -1,32 +1,37 @@
 #
 # Conditional build:
-%bcond_with    pcre    # with PCRE support
+%bcond_without pcre    # with PCRE support
 #
 Summary:       GNU grep Utilities
-Summary(de):   GNU-Version der Pattern-Matching-Utilities
-Summary(es):   Utilitarios grep GNU
-Summary(fr):   Utilitaires grep de GNU
-Summary(ja):   GNU grep ¤ÎÆüËܸìÂбþÈǤǤ¹.
-Summary(pl):   GNU grep
-Summary(pt_BR):        Utilitários grep GNU
-Summary(ru):   õÔÉÌÉÔÙ ÐÏÉÓËÁ ÐÏ ÛÁÂÌÏÎÁÍ GNU grep
-Summary(tr):   Dosyalarda katar arama aracý
-Summary(uk):   õÔÉ̦ÔÉ ÐÏÛÕËÕ ÐÏ ÛÁÂÌÏÎÁÍ GNU grep
+Summary(de.UTF-8):     GNU-Version der Pattern-Matching-Utilities
+Summary(es.UTF-8):     Utilitarios grep GNU
+Summary(fr.UTF-8):     Utilitaires grep de GNU
+Summary(ja.UTF-8):     GNU grep の日本語対応版です.
+Summary(pl.UTF-8):     GNU grep
+Summary(pt_BR.UTF-8):  Utilitários grep GNU
+Summary(ru.UTF-8):     Утилиты поиска по шаблонам GNU grep
+Summary(tr.UTF-8):     Dosyalarda katar arama aracı
+Summary(uk.UTF-8):     Утиліти пошуку по шаблонам GNU grep
 Name:          grep
-Version:       2.5.1a
-Release:       1.1
+Version:       2.5.3
+Release:       3
 Epoch:         2
-License:       GPL
+License:       GPL v3+
 Group:         Applications/Text
-Source0:       ftp://ftp.gnu.org/gnu/grep/%{name}-%{version}.tar.gz
-# Source0-md5: 71db1cb262c27f02461c4bca514591ce
+Source0:       http://ftp.gnu.org/gnu/grep/%{name}-%{version}.tar.gz
+# Source0-md5: 4f371f25f413f700fb1984b878421f9d
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5: 1b5e726d0bee53e898531de4a76ad290
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-egrep.patch
-Patch2:                %{name}-locale-names.patch
+Patch1:                %{name}-locale-names.patch
+Patch2:                %{name}-pl.po-update.patch
+Patch3:                %{name}-strerror.patch
+# from debian; very important for multibytes locale; see https://savannah.gnu.org/bugs/?14472
+Patch4:                %{name}-egf-speedup.patch
+Patch5:                %{name}-dfa-optional.patch
+Patch6:                %{name}-match_icase.patch
 URL:           http://www.gnu.org/software/grep/grep.html
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.53
 BuildRequires: automake
 BuildRequires: gettext-devel
 BuildRequires: libtool
@@ -44,74 +49,66 @@ 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
-Die GNU-Versionen der häufig benutzten grep-Utilities. Grep durchsucht
+%description -l de.UTF-8
+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.
+enthält grep, egrep und fgrep.
 
-%description -l es
-Esta es la implementación GNU del popular utilitario grep. Permite la
-localización rápida de strings en archivos texto.
+%description -l es.UTF-8
+Esta es la implementación GNU del popular utilitario grep. Permite la
+localización rápida de strings en archivos texto.
 
-%description -l fr
-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
+%description -l fr.UTF-8
+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 ja
-GNU ¥×¥í¥¸¥§¥¯¥È¤Ë¤è¤ë grep, egrep, fgrep (°Ê²¼Ã±¤Ë grep) ¤ò¥Þ¥ë¥Á¥Ð
-¥¤¥È¥Ñ¥Ã¥Á(mb1.04)¤Ë¤è¤Ã¤ÆÆüËܸìÂбþ¤Ë¤·¤¿¤â¤Î¤Ç¤¹.
+%description -l ja.UTF-8
+GNU プロジェクトによる grep, egrep, fgrep (以下単に grep) をマルチバ
+イトパッチ(mb1.04)によって日本語対応にしたものです.
 
-%description -l pl
-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 pl.UTF-8
+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 pt_BR
-Esta é a implementação GNU do popular utilitário grep. Permite a
-localização rápida de strings em arquivos texto.
+%description -l pt_BR.UTF-8
+Esta é a implementação GNU do popular utilitário grep. Permite a
+localização rápida de strings em arquivos texto.
 
-%description -l ru
-üÔÏ ÒÅÁÌÉÚÁÃÉÑ GNU ÕÔÉÌÉÔÙ grep, ÐÒÅÄÎÁÚÎÁÞÅÎÎÏÊ ÄÌÑ ÂÙÓÔÒÏÇÏ ÐÏÉÓËÁ
Ï ÏÂÒÁÚÃÕ × ÔÅËÓÔÏ×ÙÈ ÆÁÊÌÁÈ.
+%description -l ru.UTF-8
+Это реализация GNU утилиты grep, предназначенной для быстрого поиска
¿Ð¾ Ð¾Ð±Ñ\80азÑ\86Ñ\83 Ð² Ñ\82екÑ\81Ñ\82овÑ\8bÑ\85 Ñ\84айлаÑ\85.
 
-%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.
+%description -l tr.UTF-8
+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.
 
-%description -l uk
-ãÅ GNU ÒÅÁ̦ÚÁæѠÐÏÐÕÌÑÒÎϧ ÕÔÉ̦ÔÉ grep, ÐÒÉÚÎÁÞÅÎϧ ÄÌÑ Û×ÉÄËÏÇÏ
ÏÛÕËÕ ÐÏ ÛÁÂÌÏÎÕ × ÔÅËÓÔÏ×ÉÈ ÆÁÊÌÁÈ.
+%description -l uk.UTF-8
+Це GNU реалізація популярної утиліти grep, призначеної для швидкого
¿Ð¾Ñ\88Ñ\83кÑ\83 Ð¿Ð¾ Ñ\88аблонÑ\83 Ð² Ñ\82екÑ\81Ñ\82овиÑ\85 Ñ\84айлаÑ\85.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p0
+%patch5 -p0
+%patch6 -p0
 
-rm -f m4/{header,init}.m4
-
-# hack: AC_FUNC_STRERROR_R from strerror_r.m4 must override autoconf's version
-# (it contains HAVE_WORKING_STRERROR_R define, needed with glibc 2.x, as
-#  glibc version returns pointer to string and doesn't seem to store string in
-#  supplied buffer(???))
-cat m4/strerror_r.m4 >> acinclude.m4
-touch m4/{header,init}.m4
-
-# there is nb.po included, but more outdated than no.po (only no was in LINGUAS)
-mv -f po/{no,nb}.po
+# outdated, there is already nb.po
+rm -f po/no.po
 
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__automake}
+%{__autoheader}
 %{__autoconf}
-%ifarch sparc sparc64
-CPPFLAGS=""
-export CPPFLAGS
-%endif
 %configure \
        %{!?with_pcre:--disable-perl-regexp} \
        --without-included-regex \
@@ -145,14 +142,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %post -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
+-/sbin/env-update -u
 
 %postun -p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
+-/sbin/env-update -u
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc NEWS README ChangeLog TODO
-%attr(644,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
+%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
 %lang(cs) %{_mandir}/cs/man1/*
This page took 0.045788 seconds and 4 git commands to generate.