]> git.pld-linux.org Git - packages/findutils.git/blame_incremental - findutils.spec
- updated to 4.4.0
[packages/findutils.git] / findutils.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without selinux # build without SELinux support
4#
5Summary: GNU Find Utilities (find, xargs)
6Summary(de.UTF-8): GNU-Suchprogramme (find, xargs)
7Summary(es.UTF-8): Utilitarios de búsqueda de la GNU
8Summary(fr.UTF-8): Utilitaires de recherche de GNU (find, xargs)
9Summary(pl.UTF-8): Narzędzia GNU do odnajdywania plików (find, xargs)
10Summary(pt_BR.UTF-8): Utilitários de procura da GNU
11Summary(tr.UTF-8): GNU dosya arama araçları
12Name: findutils
13Version: 4.4.0
14Release: 1
15Epoch: 1
16License: GPL v3+
17Group: Applications/File
18# development versions at ftp://alpha.gnu.org/gnu/findutils/
19Source0: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
20# Source0-md5: 49e769ac4382fae6f104f99d54d0a112
21#Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
22Source1: %{name}-non-english-man-pages.tar.bz2
23# Source1-md5: e76388b0c3218eec3557d05ccd6d6515
24Patch0: %{name}-info.patch
25Patch1: %{name}-selinux.patch
26Patch2: %{name}-man-selinux.patch
27Patch3: %{name}-pl.po-update.patch
28URL: http://www.gnu.org/software/findutils/
29BuildRequires: autoconf >= 2.59
30BuildRequires: automake
31BuildRequires: gettext-devel >= 0.14.5
32%{?with_selinux:BuildRequires: libselinux-devel}
33BuildRequires: texinfo
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37The findutils package contains programs which will help you locate
38files on your system. The find utility searches through a hierarchy of
39directories looking for files which match a certain set of criteria
40(such as a filename pattern). The locate utility searches a database
41(create by updatedb) to quickly find a file matching a given pattern.
42The xargs utility builds and executes command lines from standard
43input arguments (usually lists of file names generated by the find
44command).
45
46%description -l de.UTF-8
47Das findutils-Paket enthält Programme, die dabei helfen, Dateien auf
48Ihrem System zu finden. Das Find-Utility durchsucht die
49Verzeichnishierarchie nach Dateien, die zu bestimmten Kriterien (z.B.
50Dateiname) passen. Das locate-Utility durchsucht eine Datenbank
51(erzeugt durch updatedb), um die Dateien schneller finden zu können.
52xargs konstruiert Kommandozeilen von der Standardeingabe (z.B.
53Dateilisten, die von find erzeugt werden), und führt sie aus.
54
55%description -l es.UTF-8
56Este paquete contiene programas para ayúdalo a localizar archivos en
57tu sistema. El programa find puede pesquisar, a través de una
58jerarquía de directorios, buscando por archivos que obedezcan a un
59cierto conjunto de criterios (como nombre de archivo modelo).
60
61%description -l fr.UTF-8
62Ce package contient des programmes pour vous aider à localiser des
63fichiers sur votre système. Le programme find peut rechercher à
64travers une hiérarchie de répertoires des fichiers conformes à
65certains critères (comme un type de nom).
66
67%description -l pl.UTF-8
68W pakiecie znajdują się narzędzia pozwalające na poszukiwanie
69określonych plików. Program find służy do poszukiwania w drzewie
70katalogów plików o określonych parametrach, jak nazwa, uprawnienia,
71typ czy data ostatniej modyfikacji.
72
73%description -l pt_BR.UTF-8
74Esse pacote contém programas para ajudá-lo a localizar arquivos em seu
75sistema. O programa find pode procurar através de uma hierarquia de
76diretórios procurando por arquivos que obedeçam um certo conjunto de
77critérios (como nome de arquivo modelo).
78
79%description -l tr.UTF-8
80Bu pakette yer alan yazılımlar sisteminizde yer alan dosyaları
81bulabilmeniz için hazırlanmışlardır. find programı ile belirli
82özellikleri olan bir yazılımı bir dizin hiyerarşisi altında
83arayabilirsiniz.
84
85%prep
86%setup -q
87%patch0 -p1
88%patch3 -p1
89%{?with_selinux:%patch1 -p1}
90# patch2 is applied in install stage
91
92rm -f po/stamp-po
93
94%build
95%{__aclocal} -I gnulib/m4 -I m4
96%{__autoconf}
97%{__autoheader}
98%{__automake}
99%configure
100
101%{__make}
102
103%install
104rm -rf $RPM_BUILD_ROOT
105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
108
109bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
110%{?with_selinux:patch -p0 -d $RPM_BUILD_ROOT%{_mandir} < %{PATCH2}}
111
112# xargs is wanted in /bin
113install -d $RPM_BUILD_ROOT/bin
114mv $RPM_BUILD_ROOT%{_bindir}/xargs $RPM_BUILD_ROOT/bin
115
116# useless in binary package
117rm $RPM_BUILD_ROOT%{_infodir}/find-maint.info*
118
119# unpackaged locate
120rm $RPM_BUILD_ROOT%{_bindir}/{locate,updatedb} \
121 $RPM_BUILD_ROOT%{_libdir}/{bigram,code,frcode} \
122 $RPM_BUILD_ROOT%{_mandir}/{,*/}man?/{locate.1,updatedb.1,locatedb.5}*
123
124rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_mandir}/README.findutils-non-english-man-pages}
125
126%find_lang %{name}
127
128%clean
129rm -rf $RPM_BUILD_ROOT
130
131%post -p /sbin/postshell
132-/usr/sbin/fix-info-dir -c %{_infodir}
133
134%postun -p /sbin/postshell
135-/usr/sbin/fix-info-dir -c %{_infodir}
136
137%files -f %{name}.lang
138%defattr(644,root,root,755)
139%doc NEWS README TODO ChangeLog
140%attr(755,root,root) %{_bindir}/find
141%attr(755,root,root) %{_bindir}/oldfind
142%attr(755,root,root) /bin/xargs
143
144%{_mandir}/man1/[fx]*
145%lang(de) %{_mandir}/de/man1/[fx]*
146%lang(es) %{_mandir}/es/man1/[fx]*
147%lang(fi) %{_mandir}/fi/man1/[fx]*
148%lang(fr) %{_mandir}/fr/man1/[fx]*
149%lang(hu) %{_mandir}/hu/man1/[fx]*
150%lang(it) %{_mandir}/it/man1/[fx]*
151%lang(ja) %{_mandir}/ja/man1/[fx]*
152%lang(nl) %{_mandir}/nl/man1/[fx]*
153%lang(pl) %{_mandir}/pl/man1/[fx]*
154%lang(zh_CN) %{_mandir}/zh_CN/man1/[fx]*
155%{_infodir}/find.info*
This page took 0.512124 seconds and 4 git commands to generate.