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