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
|
|
|
#
|
2016-01-11 23:30:23 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
2015-12-29 18:12:26 +01:00
|
|
|
Version: 4.6.0
|
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
|
2015-12-29 18:12:26 +01:00
|
|
|
|
|
|
|
# For upgrading you now just need to increase the version, remove the old
|
|
|
|
# tarballs, then run osc service localrun download_files, osc addremove,
|
|
|
|
# osc vc and osc ci and you are done.
|
|
|
|
Source0: http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
|
2016-01-11 23:30:23 +01:00
|
|
|
#Source1: https://ftp.gnu.org/gnu/%%{name}/%%{name}-%%{version}.tar.gz.sig
|
|
|
|
#Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%%{name}&download=1&file=./%%{name}.keyring
|
2015-12-29 18:12:26 +01:00
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
# adds a new option -xautofs to find to not descend into directories on autofs file systems
|
2013-09-25 16:15:56 +02:00
|
|
|
Patch0: findutils-4.4.2-xautofs.patch
|
2015-01-07 16:25:39 +01:00
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-01-07 16:25:39 +01:00
|
|
|
# BuildRequire dejagnu for 'runtest' to execute all tests.
|
|
|
|
BuildRequires: dejagnu
|
2010-03-12 16:45:17 +01:00
|
|
|
%if 0%{?suse_version} > 1100
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
2013-09-25 16:15:56 +02:00
|
|
|
BuildRequires: makeinfo
|
2010-03-12 16:45:17 +01:00
|
|
|
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
|
|
|
|
|
|
|
%prep
|
2010-09-27 15:39:18 +02:00
|
|
|
%setup -q
|
2010-04-01 17:18:34 +02:00
|
|
|
%patch0
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%build
|
2013-10-02 13:03:50 +02:00
|
|
|
%if 0%{?qemu_user_space_build}
|
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 \
|
2014-08-04 12:27:20 +02:00
|
|
|
--localstatedir=/var/lib
|
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2015-12-29 18:12:26 +01:00
|
|
|
make check \
|
|
|
|
|| { cat tests/test-suite.log; exit 1; }
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%install
|
2013-12-05 21:00:24 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
2012-12-05 11:46:57 +01:00
|
|
|
rm -f %{buildroot}%{_infodir}/find-maint*
|
2010-03-12 16:45:17 +01:00
|
|
|
%find_lang %{name}
|
2012-02-07 11:09:35 +01:00
|
|
|
#UsrMerge
|
2012-12-05 11:46:57 +01:00
|
|
|
mkdir -p %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/find %{buildroot}/bin
|
2012-02-07 11:09:35 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:15:57 +01:00
|
|
|
|
2013-12-05 21:00:24 +01:00
|
|
|
rm %{buildroot}%{_bindir}/locate
|
|
|
|
rm %{buildroot}%{_bindir}/updatedb
|
|
|
|
rm -r %{buildroot}%{_libdir}/find
|
|
|
|
rm %{buildroot}%{_mandir}/man1/locate.1*
|
|
|
|
rm %{buildroot}%{_mandir}/man1/updatedb.1*
|
|
|
|
rm %{buildroot}%{_mandir}/man5/locatedb.5*
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%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,-)
|
|
|
|
|
2007-03-01 22:17:26 +01:00
|
|
|
%changelog
|