18861N/A#
18861N/A# spec file for package SUNWgnu-findutils
18861N/A#
18861N/A# Copyright (c) 2008 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
20179N/A%define owner gheet
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 9641:4.2.32
18861N/A
18861N/A%define _gnudir %{_basedir}/gnu
18861N/A%define _gnubin %{_gnudir}/bin
18861N/A%define _gnudata %{_gnudir}/share
18861N/A%define _gnuman %{_gnudata}/man
18861N/A
18861N/A# Do NOT bump past 4.2.31. Later versions are GPLv3 and this needs to be
18861N/A# reviewed and approved before we can release with the newer license.
18861N/A
18861N/AName: SUNWgnu-findutils
18861N/AIPS_package_name: file/gnu-findutils
18861N/AMeta(info.classification): %{classification_prefix}:Applications/System Utilities
18861N/ALicense: GPLv2
18861N/ASummary: GNU utilities find and xargs
18861N/AVersion: 4.2.31
18861N/ASource: http://ftp.gnu.org/pub/gnu/findutils/findutils-%{version}.tar.gz
18861N/ASource1: l10n-configure.sh
18861N/A# owner:mattman date:2009-02-27 type:branding
18861N/APatch1: gnu-findutils-01-manpages.diff
18861N/AURL: http://www.gnu.org/software/findutils/
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/A
18861N/A%package l10n
18861N/ASummary: %{summary} - l10n files
18861N/ARequires: %{name}
18861N/A
18861N/A%description
18861N/AThe GNU Find Utilities are the basic directory searching utilities of
18861N/Athe GNU operating system. These programs are typically used in
18861N/Aconjunction with other programs to provide modular and powerful
18861N/Adirectory search and file locating capabilities to other commands. The
18861N/Atools supplied with this package are: find - search for files in a
18861N/Adirectory hierarchy and xargs - build and execute command lines from standard input.
18861N/A
18861N/A%prep
18861N/A%setup -q -n findutils-%version
18861N/A%patch1 -p1
18861N/A
18861N/A%build
18861N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/Aexport CFLAGS="%optflags"
18861N/A
18861N/Ash %SOURCE1 --enable-copyright
19790N/A./configure --disable-leaf-optimisation \
20179N/A --prefix=%{_gnudir} \
20179N/A --mandir=%{_gnuman} \
20179N/A --infodir=%{_gnudata}/info \
20179N/A --libexecdir=%{_gnudir}/lib
18861N/A
18861N/Amake -j$CPUS
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
20179N/Armdir $RPM_BUILD_ROOT%{_gnudir}%{_localstatedir}
20179N/Arm -rf $RPM_BUILD_ROOT%{_gnudir}/lib/charset.alias
18861N/A
18861N/A#remove unused files
20179N/Arm -rf $RPM_BUILD_ROOT%{_gnudir}/lib
20179N/Arm -rf $RPM_BUILD_ROOT%{_gnudata}/info/dir
20179N/Arm -rf $RPM_BUILD_ROOT%{_gnubin}/locate
18861N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man1/glocate.1
20179N/Arm -rf $RPM_BUILD_ROOT%{_gnubin}/updatedb
18861N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man1/gupdatedb.1
18861N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5
18861N/A
18861N/A#create links in gnu dir
20179N/Acd $RPM_BUILD_ROOT
20179N/Ainstall -m 755 -d usr/bin
20179N/A
20179N/Aln -s ../gnu/bin/find usr/bin/gfind
20179N/Aln -s ../gnu/bin/xargs usr/bin/gxargs
20179N/Ainstall -m 755 -d usr/share/man/man1
20179N/Aln -s ../../../gnu/share/man/man1/find.1 usr/share/man/man1/gfind.1
20179N/Aln -s ../../../gnu/share/man/man1/xargs.1 usr/share/man/man1/gxargs.1
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%doc COPYING AUTHORS NEWS ChangeLog README THANKS
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
20822N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/*
18861N/A%dir %attr (0755, root, sys) %{_datadir}
20179N/A%{_gnudata}/info
18861N/A%{_mandir}
18861N/A%dir %attr (0755, root, bin) %{_gnubin}
20822N/A%{_gnubin}/*
18861N/A%dir %attr (0755, root, sys) %{_gnudata}
18861N/A%{_gnuman}
18861N/A
18861N/A%files l10n
18861N/A%defattr (-, root, bin)
20179N/A%dir %attr (0755, root, sys) %{_gnudata}
20190N/A%dir %attr (-, root, bin) %{_gnudata}/locale
20179N/A%{_gnudata}/locale/*
18861N/A
18861N/A%changelog
20822N/A* Fri Aug 12 2011 - ghee.teo@oracle.com
20822N/A- Fixes stopper bugster#7077970.
20179N/A* Thu Apr 07 2011 - ghee.teo@oracle.com
20179N/A- Fixes bugster#7031707.
18861N/A* Tue Aug 25 2009 - brian.cameron@sun.com
18861N/A- Rever to 4.2.31. Newer versions are GPLv3.
18861N/A* Tue Aug 25 2009 - brian.cameron@sun.com
18861N/A- Bump to 4.2.33.
18861N/A* Fri Feb 27 2009 - matt.keenan@sun.com
18861N/A- Add manpage patch for Attributes and ARC Comment
18861N/A* Thu Sep 11 2008 - kevin.mcareavey@sun.com
18861N/A- Add %doc to %files for copyright
18861N/A* Fri Aug 15 2008 - kevin.mcareavey@sun.com
18861N/A- Cleanup for spec-files-other integration
18861N/A- Rollback to 4.2.31 for GPLv2
18861N/A- Create links in gnu directory
18861N/A- Remove unused files
18861N/A* Thu Feb 21 2008 - nonsea@users.sourceforge.net
18861N/A- Bump to 4.2.33
18861N/A* Thu Nov 15 2007 - daymobrew@users.sourceforge.net
18861N/A- Correct path to charset.alias file.
18861N/A* Sun Oct 14 2007 - laca@sun.com
18861N/A- fix l10n installation
18861N/A* Tue Sep 18 2007 - nonsea@users.sourceforge.net
18861N/A- Bump to 4.2.31
18861N/A* Sun Sep 24 2006 - Eric Boutilier
18861N/A- Initial spec
19294N/A
19611N/A