Hi All,

    This is the initial import of GNU getopt in spec-file-other.
    I've imported it because bcop requires it. (for info bcop an xslt 
parser is required to build
    compiz plugins).

       Thanks,

             Erwann


Index: patches/getopt-01-locale.h.diff
===================================================================
--- patches/getopt-01-locale.h.diff    (revision 0)
+++ patches/getopt-01-locale.h.diff    (revision 0)
@@ -0,0 +1,10 @@
+--- getopt-1.1.4/nls.h.orig    2007-02-13 13:18:04.289795000 -0500
++++ getopt-1.1.4/nls.h    2007-02-13 13:18:35.263303000 -0500
+@@ -24,6 +24,7 @@
+  * util-linux nls definitions
+  */
+
++#include <locale.h>
+ #ifdef NOT_UTIL_LINUX
+
+ #ifndef GETOPT_NLS
Index: ChangeLog
===================================================================
--- ChangeLog    (revision 11)
+++ ChangeLog    (working copy)
@@ -1,3 +1,11 @@
+2008-02-14 Erwann Chenede - <erwann.chenede at sun.com>
+
+    * core/SUNWgnugetopt.spec
+    * patches/getopt-01-locale.h.diff:
+      Initial import of GNU getopt
+    * core/SUNWcompiz-bcop.spec:
+      Changed dependency from SFEgetopt to SUNWgnugetopt
+
 2008-02-13 Erwann Chenede - <erwann.chenede at sun.com>
 
     * core/SUNWsexy-python.spec
Index: core/SUNWgnugetopt.spec
===================================================================
--- core/SUNWgnugetopt.spec    (revision 0)
+++ core/SUNWgnugetopt.spec    (revision 0)
@@ -0,0 +1,54 @@
+#
+# spec file for package SUNWgnugetopt
+#
+# includes module(s): getopt
+#
+# Owner: erwannc
+#
+
+%include Solaris.inc
+%include usr-gnu.inc
+
+Name:                    SUNWgnugetopt
+Summary:                 getopt - a GNU getopt(3) compatible getopt utility
+Version:                 1.1.4
+URL:                     http://software.frodo.looijaard.name/getopt/
+#Source:        
 http://software.frodo.looijaard.name/getopt/files/getopt-%{version}.tar.gz
+Source:            
 http://pkgbuild.sf.net/spec-files-extra/tarballs/getopt-%{version}.tar.gz
+Patch1:                  getopt-01-locale.h.diff
+SUNW_BaseDir:            %{_basedir}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+
+%prep
+rm -rf %name-%version
+%setup -q -n getopt-%version
+%patch1 -p1
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+    CPUS=1
+fi
+
+make -j$CPUS CC="${CC}" CFLAGS="%optflags"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%dir %attr(0755, root, sys) %{_datadir}
+%dir %attr(0755, root, bin) %{_mandir}
+%dir %attr(0755, root, bin) %{_mandir}/man1
+%{_mandir}/man1/*
+
+%changelog
+* Tue Feb 13 2007 - laca at sun.com
+- create
Index: core/SUNWcompiz-bcop.spec
===================================================================
--- core/SUNWcompiz-bcop.spec    (revision 11)
+++ core/SUNWcompiz-bcop.spec    (working copy)
@@ -22,8 +22,8 @@
 Patch1:             compiz-bcop-01-solaris-port.diff
 SUNW_BaseDir:            %{_basedir}
 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
-BuildRequires:         SFEgetopt
-Requires:         SFEgetopt
+BuildRequires:         SUNWgnugetopt
+Requires:         SUNWgnugetopt
 %include default-depend.inc

-- 
              Erwann Ch?ned?,
 Desktop Group, Sun Microsystems, Grenoble



Reply via email to