Summary: GNU Find Utilities (find, xargs)
Summary(de): GNU-Suchprogramme (find, xargs)
+Summary(es): Utilitarios de búsqueda de la GNU
Summary(fr): Utilitaires de recherche de GNU (find, xargs)
Summary(pl): GNU narzêdzia do odnajdywania plików (find, xargs)
+Summary(pt_BR): Utilitários de procura da GNU
Summary(tr): GNU dosya arama araçlarý
Name: findutils
-Version: 4.1
-Release: 33
-Copyright: GPL
-Group: Utilities/File
-Group(pl): Narzêdzia/Pliki
-Source0: ftp://prep.ai.mit.edu/pub/gnu/findutils/%{name}-%{version}.tar.gz
-Patch0: findutils-info.patch
-Patch1: findutils-basename.patch
-Patch2: findutils-glibc.patch
-patch3: findutils-glibc21.patch
-Patch4: findutils-xargsoverflow.patch
-Patch5: findutils-pl_manpages.patch
-Patch6: findutils-mktemp.patch
-Patch7: findutils-numblks.patch
-Patch8: findutils-getshort.patch
+Version: 4.1.7
+Release: 5
+Epoch: 1
+License: GPL
+Group: Applications/File
+Group(de): Applikationen/Datei
+Group(es): Aplicaciones/Archivos
+Group(fr): Applications/Fichiers
+Group(pl): Aplikacje/Pliki
+Group(pt): Aplicações/Ficheiros
+Group(pt_BR): Aplicações/Arquivos
+Source0: ftp://alpha.gnu.org/gnu/%{name}-%{version}.tar.gz
+Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Patch0: %{name}-info.patch
+Patch2: %{name}-mktemp.patch
+Patch3: %{name}-getshort.patch
+Patch4: %{name}-DESTDIR.patch
+Patch5: %{name}-am-workaround.patch
+Patch6: %{name}-xargs_help_cr.patch
BuildRequires: texinfo
-Prereq: /usr/sbin/fix-info-dir
-Buildroot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The findutils package contains programs which will help you locate files on
-your system. The find utility searches through a hierarchy of directories
-looking for files which match a certain set of criteria (such as a filename
-pattern). The locate utility searches a database (create by updatedb) to
-quickly find a file matching a given pattern. The xargs utility builds and
-executes command lines from standard input arguments (usually lists of file
-names generated by the find command).
+The findutils package contains programs which will help you locate
+files on your system. The find utility searches through a hierarchy of
+directories looking for files which match a certain set of criteria
+(such as a filename pattern). The locate utility searches a database
+(create by updatedb) to quickly find a file matching a given pattern.
+The xargs utility builds and executes command lines from standard
+input arguments (usually lists of file names generated by the find
+command).
%description -l de
-Das findutils-Paket enthält Programme, die dabei helfen, Dateien auf Ihrem
-System zu finden. Das Find-Utility durchsucht die Verzeichnishierarchie nach
-Dateien, die zu bestimmten Kriterien (z.B. Dateiname) passen. Das
-locate-Utility durchsucht eine Datenbank (erzeugt durch updatedb), um die
-Dateien schneller finden zu können. xargs konstruiert Kommandozeilen von
-der Standardeingabe (z.B. Dateilisten, die von find erzeugt werden), und
-führt sie aus.
+Das findutils-Paket enthält Programme, die dabei helfen, Dateien auf
+Ihrem System zu finden. Das Find-Utility durchsucht die
+Verzeichnishierarchie nach Dateien, die zu bestimmten Kriterien (z.B.
+Dateiname) passen. Das locate-Utility durchsucht eine Datenbank
+(erzeugt durch updatedb), um die Dateien schneller finden zu können.
+xargs konstruiert Kommandozeilen von der Standardeingabe (z.B.
+Dateilisten, die von find erzeugt werden), und führt sie aus.
+
+%description -l es
+Este paquete contiene programas para ayúdalo a localizar archivos en
+tu sistema. El programa find puede pesquisar, a través de una
+jerarquía de directorios, buscando por archivos que obedezcan a un
+cierto conjunto de criterios (como nombre de archivo modelo).
%description -l fr
-Ce package contient des programmes pour vous aider à localiser des fichiers
-sur votre système. Le programme find peut rechercher à travers une
-hiérarchie de répertoires des fichiers conformes à certains critères (comme
-un type de nom).
+Ce package contient des programmes pour vous aider à localiser des
+fichiers sur votre système. Le programme find peut rechercher à
+travers une hiérarchie de répertoires des fichiers conformes à
+certains critères (comme un type de nom).
%description -l pl
-W pakiecie znajduj± siê narzêdzia pozwalaj±ce na poszukiwanie okre¶lonych
-plików. Program find s³u¿y do poszukiwania w drzewie katalogów plików o
-okre¶lonych parametrach, jak nazwa, uprawnienia, typ czy data ostatniej
-modyfikacji.
+W pakiecie znajduj± siê narzêdzia pozwalaj±ce na poszukiwanie
+okre¶lonych plików. Program find s³u¿y do poszukiwania w drzewie
+katalogów plików o okre¶lonych parametrach, jak nazwa, uprawnienia,
+typ czy data ostatniej modyfikacji.
+
+%description -l pt_BR
+Esse pacote contém programas para ajudá-lo a localizar arquivos em seu
+sistema. O programa find pode procurar através de uma hierarquia de
+diretórios procurando por arquivos que obedeçam um certo conjunto de
+critérios (como nome de arquivo modelo).
%description -l tr
-Bu pakette yer alan yazýlýmlar sisteminizde yer alan dosyalarý bulabilmeniz
-için hazýrlanmýþlardýr. find programý ile belirli özellikleri olan bir
-yazýlýmý bir dizin hiyerarþisi altýnda arayabilirsiniz.
+Bu pakette yer alan yazýlýmlar sisteminizde yer alan dosyalarý
+bulabilmeniz için hazýrlanmýþlardýr. find programý ile belirli
+özellikleri olan bir yazýlýmý bir dizin hiyerarþisi altýnda
+arayabilirsiniz.
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
-%patch7 -p1
-%patch8 -p1
%build
-autoconf
-LDFLAGS="-s"; export LDFLAGS
+touch lib/{stat,lstat}.c
%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
-make install \
- prefix=$RPM_BUILD_ROOT%{_prefix} \
- exec_prefix=$RPM_BUILD_ROOT%{_prefix} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- infodir=$RPM_BUILD_ROOT%{_infodir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-install pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
-gzip -9fn $RPM_BUILD_ROOT%{_infodir}/find.info* \
- $RPM_BUILD_ROOT%{_mandir}/{man?/*,pl/man1/*} \
- NEWS README TODO ChangeLog
+gzip -9nf NEWS README TODO ChangeLog
+
+%find_lang %{name}
%post
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc {NEWS,README,TODO,ChangeLog}.gz
%attr(755,root,root) %{_bindir}/find
%attr(755,root,root) %{_bindir}/xargs
-%{_mandir}/man1/find.1*
-%{_mandir}/man1/xargs.1*
-%lang(pl) %{_mandir}/pl/man1/*
+%{_mandir}/man1/[fx]*
+%lang(de) %{_mandir}/de/man1/[fx]*
+%lang(es) %{_mandir}/es/man1/[fx]*
+%lang(fi) %{_mandir}/fi/man1/[fx]*
+%lang(fr) %{_mandir}/fr/man1/[fx]*
+%lang(hu) %{_mandir}/hu/man1/[fx]*
+%lang(it) %{_mandir}/it/man1/[fx]*
+%lang(ja) %{_mandir}/ja/man1/[fx]*
+%lang(nl) %{_mandir}/nl/man1/[fx]*
+%lang(pl) %{_mandir}/pl/man1/[fx]*
%{_infodir}/find.info*