1 # 2 # spec file for package SUNWgnugetopt 3 # 4 # includes module(s): getopt 5 # 6 %define owner erwannc 7 # 8 9 %include Solaris.inc 10 11 %define OSR 1628 1439 1008 9099:1.0.8 12 13 %include usr-gnu.inc 14 15 Name: SUNWgnugetopt 16 Summary: getopt - a GNU getopt(3) compatible getopt utility 17 Version: 1.1.4 18 URL: http://software.frodo.looijaard.name/getopt/ 19 #Source: http://software.frodo.looijaard.name/getopt/files/getopt-%{version}.tar.gz 20 Source: http://pkgbuild.sf.net/spec-files-extra/tarballs/getopt-%{version}.tar.gz 21 Patch1: getopt-01-locale.h.diff 22 SUNW_BaseDir: %{_basedir} 23 SUNW_Copyright: %{name}.copyright 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 %include default-depend.inc 26 27 %prep 28 rm -rf %name-%version 29 %setup -q -n getopt-%version 30 %patch1 -p1 31 32 %build 33 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 34 if test "x$CPUS" = "x" -o $CPUS = 0; then 35 CPUS=1 36 fi 37 38 make -j$CPUS CC="${CC}" CFLAGS="%optflags" 39 40 %install 41 rm -rf $RPM_BUILD_ROOT 42 make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} 43 44 %clean 45 rm -rf $RPM_BUILD_ROOT 46 47 %files 48 %defattr (-, root, bin) 49 %dir %attr (0755, root, bin) %{_bindir} 50 %{_bindir}/* 51 %dir %attr(0755, root, sys) %{_datadir} 52 %dir %attr(0755, root, bin) %{_mandir} 53 %dir %attr(0755, root, bin) %{_mandir}/man1 54 %{_mandir}/man1/* 55 %doc Changelog README 56 %doc(bzip2) COPYING 57 %dir %attr (0755, root, bin) %{_datadir}/doc 58 59 %changelog 60 * Wed Sep 17 2008 - matt.keenn@sun.com 61 - Update copyright 62 * Tue Feb 13 2007 - laca@sun.com 63 - create 64