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