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
|
|
|
#
|
2024-06-02 01:07:45 +02:00
|
|
|
# Copyright (c) 2024 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
|
2024-06-02 01:07:45 +02:00
|
|
|
Version: 4.10.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
|
2021-01-10 00:14:48 +01:00
|
|
|
URL: https://www.gnu.org/software/findutils/
|
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
|
2021-01-09 20:55:50 +01:00
|
|
|
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
2019-08-30 01:19:22 +02:00
|
|
|
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
2021-04-19 21:06:10 +02:00
|
|
|
Source2: https://savannah.gnu.org/project/release-gpgkeys.php?group=%{name}&download=1&file=./%{name}.keyring
|
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
|
2021-10-05 19:17:05 +02:00
|
|
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
2015-01-07 16:25:39 +01:00
|
|
|
# BuildRequire dejagnu for 'runtest' to execute all tests.
|
|
|
|
BuildRequires: dejagnu
|
2013-09-25 16:15:56 +02:00
|
|
|
BuildRequires: makeinfo
|
2010-03-12 16:45:17 +01:00
|
|
|
Provides: find = %{version}
|
|
|
|
Obsoletes: find < %{version}
|
2021-01-10 00:14:48 +01:00
|
|
|
BuildRequires: libselinux-devel
|
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
|
2024-03-01 13:31:39 +01:00
|
|
|
%autosetup -p0
|
2020-08-30 12:11:40 +02:00
|
|
|
|
2006-12-19 00:15:57 +01:00
|
|
|
%build
|
2010-03-12 16:45:17 +01:00
|
|
|
%configure \
|
|
|
|
--libexecdir=%{_libdir}/find \
|
2021-01-10 00:14:48 +01:00
|
|
|
--localstatedir=%{_localstatedir}/lib
|
2014-08-04 12:27:20 +02:00
|
|
|
|
2021-01-10 00:14:48 +01:00
|
|
|
%make_build
|
2010-03-12 16:45:17 +01:00
|
|
|
|
|
|
|
%check
|
2021-01-10 00:14:48 +01:00
|
|
|
%make_build check \
|
2021-01-09 20:55:50 +01:00
|
|
|
|| { grep . */test-suite.log; exit 1; }
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
%install
|
2021-01-10 00:14:48 +01:00
|
|
|
%make_install
|
2013-12-05 21:00:24 +01:00
|
|
|
|
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}
|
2023-01-04 11:52:34 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2012-12-05 11:46:57 +01:00
|
|
|
mkdir -p %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/find %{buildroot}/bin
|
2020-11-21 08:36:56 +01:00
|
|
|
%endif
|
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
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
%files
|
2018-02-26 11:33:53 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README THANKS TODO
|
2023-01-04 11:52:34 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2010-03-12 16:45:17 +01:00
|
|
|
/bin/find
|
2020-11-21 08:36:56 +01:00
|
|
|
%endif
|
2006-12-19 00:15:57 +01:00
|
|
|
%{_bindir}/find
|
|
|
|
%{_bindir}/xargs
|
2021-01-10 00:14:48 +01:00
|
|
|
%{_infodir}/find.info*.gz
|
|
|
|
%{_mandir}/man1/find.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/xargs.1%{?ext_man}
|
2006-12-19 00:15:57 +01:00
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
%files lang -f %{name}.lang
|
2021-01-10 00:14:48 +01:00
|
|
|
%license COPYING
|
2010-03-12 16:45:17 +01:00
|
|
|
|
2007-03-01 22:17:26 +01:00
|
|
|
%changelog
|