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