2006-12-19 00:15:57 +01:00
|
|
|
#
|
2008-03-26 16:09:55 +01:00
|
|
|
# spec file for package findutils (Version 4.4.0)
|
2006-12-19 00:15:57 +01:00
|
|
|
#
|
2009-03-11 17:33:39 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
2008-02-15 01:20:03 +01:00
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
Name: findutils
|
2008-09-05 20:08:03 +02:00
|
|
|
%if %suse_version > 1100
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
2008-01-25 23:42:38 +01:00
|
|
|
Url: http://www.gnu.org/software/findutils/
|
2009-07-16 16:41:32 +02:00
|
|
|
License: GFDL v1.2 ; GPL v3 or later
|
2006-12-19 00:15:57 +01:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
Provides: find
|
|
|
|
Obsoletes: find
|
2008-01-25 23:42:38 +01:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:15:57 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
2008-03-26 16:09:55 +01:00
|
|
|
Version: 4.4.0
|
2009-07-16 16:41:32 +02:00
|
|
|
Release: 45
|
2006-12-19 00:15:57 +01:00
|
|
|
Summary: GNU find--Finding Files
|
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
|
2006-12-19 00:15:57 +01:00
|
|
|
Patch: findutils-%{version}.diff
|
2008-09-05 20:08:03 +02:00
|
|
|
Patch1: findutils-selinux.diff
|
2009-03-11 17:33:39 +01:00
|
|
|
Patch2: findutils-null.diff
|
2006-12-19 00:15:57 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains GNU find and xargs. The programs comply with
|
|
|
|
POSIX 1003.2. They also support additional options, some borrowed from
|
|
|
|
Unix and some unique to GNU.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David J. MacKenzie <djm@gnu.org>
|
|
|
|
Jan Brittenson <bson@gnu.org>
|
|
|
|
Brian L. Matthews <blm@6sceng.UUCP>
|
|
|
|
Mike Rendell <michael@cs.mun.ca>
|
|
|
|
James A. Woods <jwoods@adobe.com>
|
|
|
|
Jay Plett <jay@silence.princeton.nj.us>
|
|
|
|
Tim Wood <tim@toad.com>
|
|
|
|
|
|
|
|
%package locate
|
2008-08-04 12:31:26 +02:00
|
|
|
License: GPL v3 or later
|
2006-12-19 00:15:57 +01:00
|
|
|
Summary: Tool for Locating Files (GNU Findutils Subpackage)
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
Provides: findutils:/usr/bin/locate
|
2008-01-25 23:42:38 +01:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:15:57 +01:00
|
|
|
PreReq: %fillup_prereq
|
2008-09-05 20:08:03 +02:00
|
|
|
Requires: cron
|
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
|
|
|
|
an additional daily cron job will be added to the cron system. This
|
|
|
|
job will update the files database every night or shortly after
|
|
|
|
switching on the computer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David J. MacKenzie <djm@gnu.org>
|
|
|
|
Jan Brittenson <bson@gnu.org>
|
|
|
|
Brian L. Matthews <blm@6sceng.UUCP>
|
|
|
|
Mike Rendell <michael@cs.mun.ca>
|
|
|
|
James A. Woods <jwoods@adobe.com>
|
|
|
|
Jay Plett <jay@silence.princeton.nj.us>
|
|
|
|
Tim Wood <tim@toad.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch
|
2008-08-26 01:54:22 +02:00
|
|
|
%patch1 -p1
|
2009-03-11 17:33:39 +01:00
|
|
|
%patch2 -p0
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%build
|
2009-07-16 16:41:32 +02:00
|
|
|
%ifarch %arm armv5tel armv7l armv7el armv5el
|
|
|
|
# this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
|
|
|
|
DEFAULT_ARG_SIZE="(31u * 1024u)" \
|
|
|
|
%endif
|
2006-12-19 00:15:57 +01:00
|
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
--prefix=%{_prefix} --libexecdir=%{_libdir}/find \
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
--infodir=%{_infodir} --mandir=%{_mandir} \
|
|
|
|
--without-included-regex \
|
2008-08-04 12:31:26 +02:00
|
|
|
--without-fts \
|
2006-12-19 00:15:57 +01:00
|
|
|
--enable-d_type-optimisation
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/cron.daily
|
|
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/var/adm/fillup-templates
|
2007-07-27 01:25:50 +02:00
|
|
|
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/suse.de-updatedb
|
2008-03-26 16:09:55 +01:00
|
|
|
%find_lang %name
|
|
|
|
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*
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post locate
|
|
|
|
%{fillup_only -n locate}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/find.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/find.info.gz
|
|
|
|
|
2008-03-26 16:09:55 +01:00
|
|
|
%files -f %name.lang
|
2006-12-19 00:15:57 +01:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc README NEWS AUTHORS TODO
|
|
|
|
%{_bindir}/find
|
|
|
|
%{_bindir}/xargs
|
|
|
|
%doc %{_infodir}/find.info*.gz
|
|
|
|
%doc %{_mandir}/man1/find.1.gz
|
|
|
|
%doc %{_mandir}/man1/xargs.1.gz
|
|
|
|
|
|
|
|
%files locate
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
/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
|