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
|
|
|
#
|
2013-02-06 20:06:35 +01:00
|
|
|
# Copyright (c) 2013 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/
|
2013-09-25 16:15:56 +02:00
|
|
|
Version: 4.5.12
|
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
|
2013-03-26 16:42:27 +01:00
|
|
|
Source: http://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
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
|
2013-12-20 12:56:13 +01:00
|
|
|
# Fix imported gnulib long double math tests for little-endian PowerPC
|
|
|
|
Patch1: findutils-gnulib-ppc64le.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
|
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
|
2013-12-20 12:56:13 +01:00
|
|
|
%patch1 -p1
|
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 \
|
|
|
|
--localstatedir=/var/lib \
|
2013-09-25 16:15:56 +02:00
|
|
|
--without-included-regex
|
2010-03-12 16:45:17 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
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
|
2013-09-25 16:15:56 +02:00
|
|
|
%{_bindir}/oldfind
|
2006-12-19 00:15:57 +01:00
|
|
|
%{_bindir}/xargs
|
|
|
|
%doc %{_infodir}/find.info*.gz
|
|
|
|
%doc %{_mandir}/man1/find.1.gz
|
2013-09-25 16:15:56 +02:00
|
|
|
%doc %{_mandir}/man1/oldfind.1.gz
|
2006-12-19 00:15:57 +01:00
|
|
|
%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
|