2006-12-19 00:15:57 +01:00
|
|
|
#
|
2011-05-02 11:54:43 +02:00
|
|
|
# spec file for package findutils
|
2006-12-19 00:15:57 +01:00
|
|
|
#
|
2012-01-18 06:03:10 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:57 +01:00
|
|
|
#
|
2008-08-11 22:34:30 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-29 16:29:55 +02:00
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
Name: findutils
|
2008-01-25 23:42:38 +01:00
|
|
|
Url: http://www.gnu.org/software/findutils/
|
2012-01-18 06:03:10 +01:00
|
|
|
Version: 4.5.10
|
2011-12-01 16:53:29 +01:00
|
|
|
Release: 0
|
2010-03-12 16:45:17 +01:00
|
|
|
Summary: The GNU versions of find utilities (find and xargs)
|
2012-02-07 11:09:35 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/File utilities
|
2012-01-18 06:03:10 +01:00
|
|
|
# retrieved from http://alpha.gnu.org/pub/gnu/findutils/findutils-4.5.10.tar.gz
|
2008-03-26 16:09:55 +01:00
|
|
|
Source: findutils-%{version}.tar.bz2
|
2006-12-19 00:15:57 +01:00
|
|
|
Source1: sysconfig.locate
|
2007-07-27 01:25:50 +02:00
|
|
|
Source2: cron.daily.updatedb
|
2010-04-01 17:18:34 +02:00
|
|
|
# Use /proc/mounts instead of /etc/mtab as autofs entries are only
|
|
|
|
# listed in the kernels >= 2.6.32
|
2012-01-18 06:03:10 +01:00
|
|
|
Patch0: findutils-4.5.10-use_proc_mounts.patch
|
2010-03-12 16:45:17 +01:00
|
|
|
# adds a new option -xautofs to find to not descend into directories on autofs file systems
|
|
|
|
Patch1: findutils-4.4.2-xautofs.patch
|
2012-01-18 06:03:10 +01:00
|
|
|
Patch2: findutils-4.4.2-updatedb.patch
|
|
|
|
Patch3: findutils-4.5.10-prune_unknown.patch
|
|
|
|
Patch4: findutils-4.5.10-updatedb_ignore_nfsv4.patch
|
2006-12-19 00:15:57 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-12 16:45:17 +01:00
|
|
|
%if 0%{?suse_version} > 1100
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
|
|
|
Provides: find = %{version}
|
|
|
|
Obsoletes: find < %{version}
|
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%description
|
2010-03-12 16:45:17 +01:00
|
|
|
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 file name pattern). The xargs utility builds and executes
|
|
|
|
command lines from standard input arguments (usually lists of file
|
|
|
|
names generated by the find command).
|
2006-12-19 00:15:57 +01:00
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
You should install findutils because it includes tools that are very
|
|
|
|
useful for finding things on your system.
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
%lang_package
|
2006-12-19 00:15:57 +01:00
|
|
|
%package locate
|
2010-03-12 16:45:17 +01:00
|
|
|
Summary: Tool for Locating Files (findutils subpackage)
|
2012-02-07 11:09:35 +01:00
|
|
|
Group: Productivity/File utilities
|
2006-12-19 00:15:57 +01:00
|
|
|
Provides: findutils:/usr/bin/locate
|
2010-03-12 16:45:17 +01:00
|
|
|
PreReq: %{fillup_prereq}
|
2012-05-29 16:29:55 +02:00
|
|
|
Requires: cron
|
|
|
|
Requires: findutils = %{version}
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%description locate
|
|
|
|
This package contains the locate program which is part of the GNU
|
|
|
|
findutils software suite.
|
|
|
|
|
|
|
|
You can find files fast using locate. On installing findutils-locate
|
2010-03-12 16:45:17 +01:00
|
|
|
an additional daily cron job will be added to the cron system. This
|
2006-12-19 00:15:57 +01:00
|
|
|
job will update the files database every night or shortly after
|
|
|
|
switching on the computer.
|
|
|
|
|
|
|
|
%prep
|
2010-09-27 15:39:18 +02:00
|
|
|
%setup -q
|
2010-04-01 17:18:34 +02:00
|
|
|
%patch0
|
2008-08-26 01:54:22 +02:00
|
|
|
%patch1 -p1
|
2012-02-13 14:37:28 +01:00
|
|
|
%patch2
|
2012-01-18 06:03:10 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-12 16:45:17 +01:00
|
|
|
%ifarch %arm armv5tel armv7l armv7el armv5el
|
2009-07-16 16:41:32 +02:00
|
|
|
# this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
|
2010-03-12 16:45:17 +01:00
|
|
|
export DEFAULT_ARG_SIZE="(31u * 1024u)"
|
2009-07-16 16:41:32 +02:00
|
|
|
%endif
|
2010-03-12 16:45:17 +01:00
|
|
|
%configure \
|
|
|
|
--libexecdir=%{_libdir}/find \
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
--without-included-regex \
|
|
|
|
--without-fts \
|
|
|
|
--enable-d_type-optimisation
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2010-03-12 16:45:17 +01:00
|
|
|
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.locate
|
|
|
|
install -D -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/suse-updatedb
|
2008-03-26 16:09:55 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/oldfind
|
2008-08-04 12:31:26 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/ftsfind
|
2008-03-26 16:09:55 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/find-maint*
|
2010-03-12 16:45:17 +01:00
|
|
|
%find_lang %{name}
|
2012-02-07 11:09:35 +01:00
|
|
|
#UsrMerge
|
2010-03-12 16:45:17 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/bin
|
2012-02-07 11:09:35 +01:00
|
|
|
ln -sf %{_bindir}/find $RPM_BUILD_ROOT/bin
|
|
|
|
#UsrMerge
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%post locate
|
|
|
|
%{fillup_only -n locate}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/find.info.gz
|
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
%preun
|
2006-12-19 00:15:57 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/find.info.gz
|
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING NEWS README THANKS TODO
|
2012-02-07 11:09:35 +01:00
|
|
|
#UsrMerge
|
2010-03-12 16:45:17 +01:00
|
|
|
/bin/find
|
2012-02-07 11:09:35 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:15:57 +01:00
|
|
|
%{_bindir}/find
|
|
|
|
%{_bindir}/xargs
|
|
|
|
%doc %{_infodir}/find.info*.gz
|
|
|
|
%doc %{_mandir}/man1/find.1.gz
|
|
|
|
%doc %{_mandir}/man1/xargs.1.gz
|
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
%files locate
|
2010-03-12 16:45:17 +01:00
|
|
|
%defattr(-,root,root,-)
|
2006-12-19 00:15:57 +01:00
|
|
|
/etc/cron.daily/*
|
|
|
|
%{_bindir}/locate
|
|
|
|
%{_bindir}/updatedb
|
|
|
|
%{_libdir}/find
|
|
|
|
%doc %{_mandir}/man1/locate.1.gz
|
|
|
|
%doc %{_mandir}/man1/updatedb.1.gz
|
|
|
|
%doc %{_mandir}/man5/locatedb.5.gz
|
|
|
|
/var/adm/fillup-templates/*
|
|
|
|
|
2007-03-01 22:17:26 +01:00
|
|
|
%changelog
|