SHA256
1
0
forked from pool/findutils
findutils/findutils.spec
Stephan Kulow d75cc88bd0 Accepting request 211828 from openSUSE:Factory:PowerLE
The "gnulib" package contains a number of floating-point test cases
that do not work correctly with the PowerPC long double ("double double")
format.  These tests "accidentally" succeeded anyway in the big-endian
variant, but are now actually failing in little-endian mode.

As is usual for gnulib, those tests end up copied into the source code
of various packages that use gnulib, including coreutils, findutils,
grep, and libunistring.

A patch to fix the tests for ppc64le has been submitted to upstream
to the bug-gnulib mailing list.  We'll work with upstream of the
other affected packages to make sure the copies are refreshed.

- findutils-gnulib-ppc64le.patch: Fix imported gnulib long double
  math tests for little-endian PowerPC.

OBS-URL: https://build.opensuse.org/request/show/211828
OBS-URL: https://build.opensuse.org/package/show/Base:System/findutils?expand=0&rev=54
2013-12-20 11:56:13 +00:00

115 lines
3.3 KiB
RPMSpec

#
# spec file for package findutils
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: findutils
Url: http://www.gnu.org/software/findutils/
Version: 4.5.12
Release: 0
Summary: The GNU versions of find utilities (find and xargs)
License: GPL-3.0+
Group: Productivity/File utilities
Source: http://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
# adds a new option -xautofs to find to not descend into directories on autofs file systems
Patch0: findutils-4.4.2-xautofs.patch
# Fix imported gnulib long double math tests for little-endian PowerPC
Patch1: findutils-gnulib-ppc64le.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1100
BuildRequires: libselinux-devel
%endif
BuildRequires: makeinfo
Provides: find = %{version}
Obsoletes: find < %{version}
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description
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).
You should install findutils because it includes tools that are very
useful for finding things on your system.
%lang_package
%prep
%setup -q
%patch0
%patch1 -p1
%build
%if 0%{?qemu_user_space_build}
# this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
export DEFAULT_ARG_SIZE="(31u * 1024u)"
%endif
%configure \
--libexecdir=%{_libdir}/find \
--localstatedir=/var/lib \
--without-included-regex
make %{?_smp_mflags}
%check
make check
%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_infodir}/find-maint*
%find_lang %{name}
#UsrMerge
mkdir -p %{buildroot}/bin
ln -sf %{_bindir}/find %{buildroot}/bin
#UsrMerge
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*
%post
%install_info --info-dir=%{_infodir} %{_infodir}/find.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/find.info.gz
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README THANKS TODO
#UsrMerge
/bin/find
#UsrMerge
%{_bindir}/find
%{_bindir}/oldfind
%{_bindir}/xargs
%doc %{_infodir}/find.info*.gz
%doc %{_mandir}/man1/find.1.gz
%doc %{_mandir}/man1/oldfind.1.gz
%doc %{_mandir}/man1/xargs.1.gz
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog