18861N/A#
18861N/A# spec file for package SUNWgnugetopt
18861N/A#
18861N/A# includes module(s): getopt
18861N/A#
18861N/A%define owner erwannc
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 1628 1439 1008 9099:1.0.8
18861N/A
18861N/A%include usr-gnu.inc
18861N/A
18861N/AName: SUNWgnugetopt
18861N/ASummary: getopt - a GNU getopt(3) compatible getopt utility
18861N/ALicense: GPL v2
18861N/AVersion: 1.1.4
18861N/AURL: http://software.frodo.looijaard.name/getopt/
18861N/A#Source: http://software.frodo.looijaard.name/getopt/files/getopt-%{version}.tar.gz
18861N/ASource: http://pkgbuild.sf.net/spec-files-extra/tarballs/getopt-%{version}.tar.gz
18861N/APatch1: getopt-01-locale.h.diff
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A%include default-depend.inc
20857N/A%include gnome-incorporation.inc
18861N/A
18861N/A%prep
18861N/Arm -rf %name-%version
18861N/A%setup -q -n getopt-%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/Amake -j$CPUS CC="${CC}" CFLAGS="%optflags"
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir}
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
18861N/A%{_bindir}/*
18861N/A%dir %attr(0755, root, sys) %{_datadir}
18861N/A%dir %attr(0755, root, bin) %{_mandir}
18861N/A%dir %attr(0755, root, bin) %{_mandir}/man1
18861N/A%{_mandir}/man1/*
18861N/A%doc Changelog README
18861N/A%doc(bzip2) COPYING
18926N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A
18861N/A%changelog
18861N/A* Wed Sep 17 2008 - matt.keenn@sun.com
18861N/A- Update copyright
18861N/A* Tue Feb 13 2007 - laca@sun.com
18861N/A- create
19295N/A
19612N/A