]> git.pld-linux.org Git - packages/findutils.git/blobdiff - findutils.spec
- updated for 4.2.25
[packages/findutils.git] / findutils.spec
index c8b6a55f15c14822c242c0e0708b1855233d5b1f..a087f532a530bc84a471ba0b2229958db8c42030 100644 (file)
-Summary:     GNU Find Utilities (find, xargs, and locate)
-Summary(de): GNU-Suchprogramme (find, xargs und locate)
-Summary(fr): Utilitaires de recherche de GNU (find, xargs, et locate)
-Summary(pl): GNU narzêdzia do odnajdywania plików (find, xargs i locate)
-Summary(tr): GNU dosya arama araçlarý
-Name:        findutils
-Version:     4.1
-Release:     26
-Copyright:   GPL
-Group:       Utilities/File
-Source0:     ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Source1:     updatedb.cron
-Patch:       %{name}.patch
-Prereq:      /sbin/install-info
-Requires:    mktemp
-Buildroot:   /tmp/%{name}-%{version}-%{release}-root
+#
+# Conditional build:
+%bcond_without selinux         # build without SELinux support
+#
+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):   Narzêdzia GNU 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.2.23
+Release:       1
+Epoch:         1
+License:       GPL
+Group:         Applications/File
+# development versions at ftp://alpha.gnu.org/gnu/findutils/
+Source0:       ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
+# Source0-md5: ecaff8b060e8d69c10eb2391a8032e26
+#Source1:      http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Source1:       %{name}-non-english-man-pages.tar.bz2
+# Source1-md5: e76388b0c3218eec3557d05ccd6d6515
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-selinux.patch
+Patch2:                %{name}-man-selinux.patch
+Patch3:                %{name}-pl.po-update.patch
+URL:           http://www.gnu.org/software/findutils/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+%{?with_selinux:BuildRequires: libselinux-devel}
+BuildRequires: texinfo
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This package contains programs to help you locate files on your system. The
-find program can search through a hierarchy of directories looking for files
-matching a certain set of criteria (such as a filename pattern). The locate
-program searches a database (create by updatedb) to quickly find a file
-matching a given pattern.
+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
-Dieses Paket enthält Programme zum Suchen von Dateien auf
-dem System. Das Programm 'find' kann eine Verzeichnisstruktur
-durchsuchen und Dateien finden, die den Suchkritierien entsprechen
-(z.B. einem Dateinamenmuster). Das Programm 'locate' durchsucht
-eine Datenbank (durch updatedb erstellt), um eine Datei, die dem
-Suchmuster entspricht, zu finden.
+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). Le programme locatecherche une base de données (crée par updatedb) pour trouver rapidement
-un fichier correspondant au type demandé.
+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 przeszukania drzewa katalogów za plikami o
-okre¶lonych parametrach, jak nazwa, uprawnienia, typ, data ostatniej
-modyfikacji. Program locate lokalizuje pliki korzystaj±c z utworzonej
-poleceniem updatedb bazy danych, dziêki czemu jest znacznie szybszy od find.
+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. locate yazýlýmý ise,
-updatedb tarafýndan hazýrlanan bir veri tabaný üzerinde, belirtilen
-dosyalarý arar.
+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
-%patch -p1 
-
-%build
-rm -rf $RPM_BUILD_ROOT
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
-       --prefix=/usr --exec-prefix=/usr
-make
+%patch3 -p1
+%patch0 -p1
+%{?with_selinux:%patch1 -p1}
+# patch2 is applied in install stage
 
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/lib/findutils
+rm -f po/stamp-po
 
-rm -f $RPM_BUILD_ROOT/usr/info/find.info*
-make prefix=$RPM_BUILD_ROOT/usr exec_prefix=$RPM_BUILD_ROOT/usr install
-gzip -9fn $RPM_BUILD_ROOT/usr/info/find.info*
-install -d $RPM_BUILD_ROOT/etc/cron.daily
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily
-
-%post
-/sbin/install-info /usr/info/find.info.gz /usr/info/dir
+%build
+%{__aclocal} -I gnulib/m4 -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
 
-%preun
-if [ $1 = 0 ]; then
-    /sbin/install-info --delete /usr/info/find.info.gz /usr/info/dir
-fi
+%{__make}
 
-%clean
+%install
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644, root, root, 755)
-%doc NEWS README
-%attr(750, root, root) %config /etc/cron.daily/updatedb.cron
-%attr(755, root, root) /usr/bin/*
-%attr(644, root,  man) /usr/man/man[51]
-%attr(755, root, root, 755) /usr/lib/findutils
-/usr/info/find.info*
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-%changelog
-* Sun Oct  4 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [4.1.26]
-- changed way passing $RPM_OPT_FLAGS.
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+%{?with_selinux:patch -p0 -d $RPM_BUILD_ROOT%{_mandir} < %{PATCH2}}
 
-* Fri Jun 12 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [4.1.26d]
-- added pl translation (made by Piotr Dembiñski <hektor@kki.net.pl>),
-- macro %%{name}-%%{version} in Source,
-- minor modifications of spec file.
+# xargs is wanted in /bin
+install -d $RPM_BUILD_ROOT/bin
+mv $RPM_BUILD_ROOT%{_bindir}/xargs $RPM_BUILD_ROOT/bin
 
-* Wed Jun 10 1998 Erik Troan <ewt@redhat.com>
-- updated updatedb cron script to not look for $TMPNAME.n (which was
-  a relic anyway)
-- added -b parameters to all of the patches
+# unpackaged locate
+rm -f $RPM_BUILD_ROOT%{_bindir}/{locate,updatedb} \
+       $RPM_BUILD_ROOT%{_libdir}/{bigram,code,frcode} \
+       $RPM_BUILD_ROOT%{_mandir}/{,*/}man?/{locate.1,updatedb.1,locatedb.5}*
 
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
+%find_lang %{name}
 
-* Mon Mar 09 1998 Michael K. Johnson <johnsonm@redhat.com>
-- make updatedb.cron use mktemp correctly
-- make updatedb use mktemp
-
-* Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
-- nobody should own tmpfile
-- ignore /net
-
-* Wed Nov 05 1997 Michael K. Johnson <johnsonm@redhat.com>
-- made updatedb.cron do a better job of cleaning up after itself.
-
-* Tue Oct 28 1997 Donald Barnes <djb@redhat.com>
-- fixed 64 bit-ism in getline.c, patch tacked on to end of glibc one
-
-* Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
-- added patch for glibc 2.1
-
-* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
-- added BuildRoot support
-
-* Tue Oct 14 1997 Michael K. Johnson <johnsonm@redhat.com>
-- made updatedb.cron work even if "nobody" can't read /root
-- use mktemp in updatedb.cron
-
-* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
-- added missing info pages
-- uses install-info
-
-* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
-- built with glibc
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-* Mon Apr 21 1997 Michael K. Johnson <johnsonm@redhat.com>
-- fixed updatedb.cron
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc NEWS README TODO ChangeLog
+%attr(755,root,root) %{_bindir}/find
+%attr(755,root,root) /bin/xargs
+
+%{_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]*
+%lang(zh_CN) %{_mandir}/zh_CN/man1/[fx]*
+%{_infodir}/find.info*
This page took 0.046457 seconds and 4 git commands to generate.