Accepting request 49221 from Base:System

Copy from Base:System/findutils based on submit request 49221 from user prusnak

OBS-URL: https://build.opensuse.org/request/show/49221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/findutils?expand=0&rev=23
This commit is contained in:
OBS User autobuild
2010-09-27 13:39:18 +00:00
committed by Git OBS Bridge
parent 845113106a
commit 6dc001ac6c
4 changed files with 29 additions and 19 deletions

View File

@@ -22,13 +22,12 @@ Url: http://www.gnu.org/software/findutils/
License: GPLv3+
Group: Productivity/File utilities
Version: 4.4.2
Release: 7
Release: 8
Summary: The GNU versions of find utilities (find and xargs)
# retreived from http://ftp.gnu.org/pub/gnu/findutils/findutils-4.4.2.tar.gz
Source: findutils-%{version}.tar.bz2
Source1: sysconfig.locate
Source2: cron.daily.updatedb
Source3: nobody-wrapper.tar.bz2
# Use /proc/mounts instead of /etc/mtab as autofs entries are only
# listed in the kernels >= 2.6.32
Patch0: findutils-use_proc_mounts.patch
@@ -44,6 +43,7 @@ Patch3: findutils-4.4.2-selinux.patch
Patch4: findutils-4.4.2-selinux-gnulib.patch
Patch5: findutils-4.4.2-updatedb.patch
Patch6: findutils-prune_unknown.patch
Patch7: findutils-updatedb_ignore_nfsv4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1100
BuildRequires: libselinux-devel
@@ -84,7 +84,7 @@ job will update the files database every night or shortly after
switching on the computer.
%prep
%setup -q -b 3
%setup -q
%patch0
%patch1 -p1
%patch2 -p1
@@ -92,6 +92,7 @@ switching on the computer.
%patch4 -p1
%patch5
%patch6
%patch7
%build
autoreconf
@@ -107,10 +108,6 @@ export DEFAULT_ARG_SIZE="(31u * 1024u)"
--enable-d_type-optimisation
make %{?_smp_mflags}
pushd ../nobody-wrapper
gcc $RPM_OPT_FLAGS -o nobody nobody.c
popd
%check
make check
@@ -128,13 +125,6 @@ mv $RPM_BUILD_ROOT{%{_bindir},/bin}/find
# create /usr/bin/find -> /bin/find symlink
ln -sf ../../bin/find $RPM_BUILD_ROOT%{_bindir}
pushd ../nobody-wrapper
mkdir $RPM_BUILD_ROOT%{_sbindir}/
mkdir $RPM_BUILD_ROOT%{_mandir}/man8
install -m 0755 nobody $RPM_BUILD_ROOT%{_sbindir}/
install -m 0644 nobody.8 $RPM_BUILD_ROOT%{_mandir}/man8/
popd
%clean
rm -rf $RPM_BUILD_ROOT
@@ -153,11 +143,9 @@ rm -rf $RPM_BUILD_ROOT
/bin/find
%{_bindir}/find
%{_bindir}/xargs
%{_sbindir}/nobody
%doc %{_infodir}/find.info*.gz
%doc %{_mandir}/man1/find.1.gz
%doc %{_mandir}/man1/xargs.1.gz
%doc %{_mandir}/man8/nobody.8.gz
%files lang -f %{name}.lang
%defattr(-,root,root,-)