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
|
|
|
#
|
2020-06-11 00:25:34 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-06-23 23:40:14 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:57 +01:00
|
|
|
#
|
|
|
|
|
2012-05-29 16:29:55 +02:00
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
Name: findutils
|
2019-11-21 01:00:29 +01:00
|
|
|
URL: http://www.gnu.org/software/findutils/
|
2019-08-30 01:19:22 +02:00
|
|
|
Version: 4.7.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)
|
2018-08-02 08:57:24 +02:00
|
|
|
License: GPL-3.0-or-later
|
2012-02-07 11:09:35 +01:00
|
|
|
Group: Productivity/File utilities
|
2015-12-29 18:12:26 +01:00
|
|
|
|
2019-08-30 01:19:22 +02:00
|
|
|
# Upstream development:
|
|
|
|
# cgit-URL: https://git.savannah.gnu.org/cgit/findutils.git/
|
|
|
|
# Git-Clone: git://git.sv.gnu.org/findutils
|
|
|
|
|
|
|
|
# For upgrading the upstream version, increase the version number (above),
|
|
|
|
# then remove the old tarball and signature files and let OSC download
|
|
|
|
# those files of the new version:
|
|
|
|
# osc rm findutils-*.tar.xz findutils-*.tar.xz.sig
|
|
|
|
# osc service localrun download_files
|
|
|
|
# osc addremove
|
|
|
|
# Then adjust the downstream patches (using quilt).
|
|
|
|
# Finally, add a changelog entry and commit:
|
|
|
|
# osc vc
|
|
|
|
# osc ci
|
|
|
|
Source0: https://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.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
|
2019-08-30 01:19:22 +02:00
|
|
|
Patch0: findutils-xautofs.patch
|
2019-11-21 01:00:29 +01:00
|
|
|
Patch1: disable-null-ptr-test.patch
|
2018-08-02 08:57:24 +02:00
|
|
|
|
2020-06-11 00:25:34 +02:00
|
|
|
%ifarch ppc ppc64le
|
|
|
|
# Disable gnulib test 'test-float' temporarily as it fails on ppc and ppc64le.
|
|
|
|
Patch2: findutils-gnulib-disable-test-float.patch
|
|
|
|
%endif
|
|
|
|
|
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
|
2019-11-21 01:00:29 +01:00
|
|
|
%patch1 -p1
|
2006-12-19 00:15:57 +01:00
|
|
|
|
2020-06-11 00:25:34 +02:00
|
|
|
%ifarch ppc ppc64le
|
|
|
|
%patch2
|
|
|
|
%endif
|
|
|
|
|
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,-)
|
2018-02-26 11:33:53 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS 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
|