1 |
Summary: The GNU versions of find utilities (find and xargs) |
2 |
Name: findutils |
3 |
Version: 4.5.9 |
4 |
Release: %mkrel 2 |
5 |
License: GPLv3 |
6 |
Group: File tools |
7 |
URL: http://www.gnu.org/software/findutils/findutils.html |
8 |
Source0: ftp://alpha.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz |
9 |
Source1: %{SOURCE0}.sig |
10 |
Patch0: findutils-4.4.5-no-locate.patch |
11 |
Requires(post): info-install |
12 |
Requires(preun): info-install |
13 |
BuildRequires: gettext-devel |
14 |
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot |
15 |
|
16 |
%description |
17 |
The findutils package contains programs which will help you locate |
18 |
files on your system. The find utility searches through a hierarchy |
19 |
of directories looking for files which match a certain set of criteria |
20 |
(such as a filename pattern). The xargs utility builds and executes |
21 |
command lines from standard input arguments (usually lists of file |
22 |
names generated by the find command). |
23 |
|
24 |
You should install findutils because it includes tools that are very |
25 |
useful for finding things on your system. |
26 |
|
27 |
%prep |
28 |
%setup -q |
29 |
%patch0 -p0 -b .locate |
30 |
|
31 |
%build |
32 |
%configure2_5x \ |
33 |
--disable-rpath \ |
34 |
--enable-leaf-optimisation \ |
35 |
--enable-d_type-optimization \ |
36 |
--with-fts |
37 |
|
38 |
%make |
39 |
|
40 |
%check |
41 |
make check |
42 |
|
43 |
%install |
44 |
rm -rf %{buildroot} |
45 |
|
46 |
%makeinstall_std |
47 |
|
48 |
install -d %{buildroot}/bin |
49 |
mv %{buildroot}%{_bindir}/find %{buildroot}/bin |
50 |
ln -sf ../../bin/find %{buildroot}%{_bindir}/find |
51 |
|
52 |
%{find_lang} %{name} |
53 |
|
54 |
%post |
55 |
%_install_info find.info |
56 |
|
57 |
%preun |
58 |
%_remove_install_info find.info |
59 |
|
60 |
%clean |
61 |
rm -rf %{buildroot} |
62 |
|
63 |
%files -f %{name}.lang |
64 |
%defattr(-,root,root) |
65 |
%doc NEWS README |
66 |
/bin/find |
67 |
%{_bindir}/find |
68 |
%{_bindir}/oldfind |
69 |
%{_bindir}/xargs |
70 |
%{_mandir}/man1/find.1* |
71 |
%{_mandir}/man1/xargs.1* |
72 |
%{_infodir}/find* |
73 |
|
74 |
|