Adding Solaris specific stuff
authorlaca
Fri, 09 Jan 2004 05:45:13 +0000
changeset 1508 bc32d918c0d2
parent 1507 553abcbec206
child 1509 6406e3376a51
Adding Solaris specific stuff
Solaris/ChangeLog
Solaris/SUNWgnome-base-libs.spec
Solaris/SUNWgnome-common-devel.spec
Solaris/SUNWopenjade.spec
Solaris/SUNWopensp.spec
Solaris/Solaris.inc
Solaris/default-depend.inc
ext-sources/jade_style-sheet.dtd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/ChangeLog	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,4 @@
+2004-01-09  Laszlo Peter  <[email protected]>
+
+	* added the first couple of Solaris (pkgbuild) spec files.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/SUNWgnome-base-libs.spec	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,133 @@
+#
+# spec file for package SUNWgnome-base-libs
+#
+# includes module(s): glib pango atk gtk+ libglade
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+%include Solaris.inc
+%use glib = glib2.spec
+%use pango = pango.spec
+%use atk = atk.spec
+%use gtk = gtk2.spec
+%use libglade = libglade.spec
+Name:                    SUNWgnome-base-libs
+Summary:                 GNOME base GUI libraries - platform dependent files, /usr filesystem
+Version:                 2.4.0
+SUNW_BaseDir:            %{_prefix}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires: SUNWgnome-base-libs-root
+Requires: SUNWgnome-base-libs-share
+Requires: SUNWxwrtl
+Requires: SUNWxwplt
+Requires: SUNWlibms
+Requires: SUNWlxml
+Requires: SUNWfreetype2
+Requires: SUNWlibpopt
+Requires: SUNWpng
+Requires: SUNWTiff
+Requires: SUNWjpg
+
+%package root
+Summary:                 GNOME base GUI libraries - platform dependent files, / filesystem
+SUNW_BaseDir:            /
+%include default-depend.inc
+
+%package share
+Summary:                 GNOME base GUI libraries - platform independent files, /usr/share
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+
+%package devel-share
+Summary:            	 GNOME base GUI libraries - developer files - platform independent, /usr/share     
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+Requires: SUNWgnome-base-libs
+Requires: SUNWpl5u
+
+%package devel		
+Summary:                 GNOME base GUI libraries - developer files - platform independent, /usr/share 
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+Requires: SUNWgnome-base-libs-devel-share
+Requires: SUNWgnome-base-libs
+Requires: SUNWpl5u
+Requires: SUNWlibms
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%glib.prep -d %name-%version
+%pango.prep -d %name-%version
+%atk.prep -d %name-%version
+%gtk.prep -d %name-%version
+%libglade.prep -d %name-%version
+
+%build
+unset PKG_CONFIG_DISABLE_UNINSTALLED
+export PKG_CONFIG_PATH=../glib-%{glib.version}:../atk-%{atk.version}:../pango-%{pango.version}:../gtk+-%{gtk.version}:%{_libdir}/pkgconfig:/usr/lib/pkgconfig
+export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP"
+export RPM_OPT_FLAGS="$CFLAGS"
+export CPPFLAGS="-I/usr/sfw/include"
+export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
+export MSGFMT="/usr/bin/msgfmt"
+%glib.build -d %name-%version
+%pango.build -d %name-%version
+%atk.build -d %name-%version
+%gtk.build -d %name-%version
+%libglade.build -d %name-%version
+
+%install
+%glib.install -d %name-%version
+%pango.install -d %name-%version
+%atk.install -d %name-%version
+%gtk.install -d %name-%version
+%libglade.install -d %name-%version
+
+%clean
+#rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, other)
+%attr (0755, root, bin) %{_bindir}
+%{_bindir}/pango*
+%attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.so*
+%{_libdir}/charset.alias
+%{_libdir}/pango/*/*/*.so
+%{_libdir}/gtk*/*/*/*.so
+
+%files share
+%defattr (-, root, other)
+%attr (0755, root, sys) %{_datadir}
+%{_datadir}/locale
+%{_mandir}/*
+%{_datadir}/themes
+
+%files devel-share
+%defattr (-, root, other)
+%attr (0755, root, sys) %{_datadir}
+%{_datadir}/gtk-doc
+%{_datadir}/aclocal
+%{_datadir}/glib-2.0
+
+%files devel
+%defattr (-, root, other)
+%attr (0755, root, bin) %{_libdir}
+%{_libdir}/pkgconfig
+%{_libdir}/glib*/include
+%{_libdir}/gtk*/include
+%{_bindir}/glib*
+%{_bindir}/gobject*
+%{_bindir}/gtk*
+%attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+
+%files root
+%defattr (-, root, other)
+%attr (0755, root, sys) %{_sysconfdir}
+%{_sysconfdir}/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/SUNWgnome-common-devel.spec	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,66 @@
+#
+# spec file for package SUNWgnome-common-devel
+#
+# includes module(s): pkgconfig, intltool, gtk-doc, gnome-common
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+%include Solaris.inc
+%use gcommon = gnome-common.spec
+%use intltool = intltool.spec
+%use gtkdoc = gtk-doc.spec
+%define pkgconfig_version 0.15.0
+Name:                    SUNWgnome-common-devel
+Summary:                 GNOME common development tools and libraries - developer files
+Source:                  pkgconfig-%{pkgconfig_version}.tar.gz
+Version:                 2.4.0
+SUNW_BaseDir:            %{_prefix}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires: SUNWpl5u
+Requires: SUNWlibpopt
+
+%package share
+Summary:                 GNOME common development tools and libraries - developer files
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+
+%prep
+%setup -q -c -n SUNWgnome-common-devel-%{version}
+%gcommon.prep -d %name-%version
+%intltool.prep -d %name-%version
+%gtkdoc.prep -d %name-%version
+
+%build
+cd pkgconfig-%pkgconfig_version
+CFLAGS="$RPM_OPT_FLAGS" \
+./configure --prefix=%{_prefix}
+make
+# pkg-config is needed by gnome-common
+make install DESTDIR=$RPM_BUILD_ROOT
+PATH=$RPM_BUILD_ROOT/%{_bindir}:$PATH
+%gcommon.build -d %name-%version
+%intltool.build -d %name-%version
+%gtkdoc.build -d %name-%version
+
+%install
+%gcommon.install -d %name-%version
+%intltool.install -d %name-%version
+%gtkdoc.install -d %name-%version
+
+%clean
+#rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, other)
+%attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%attr (0755, root, bin) %{_libdir}
+
+%files share
+%defattr (-, root, other)
+%attr (0755, root, sys) %{_datadir}
+%{_datadir}/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/SUNWopenjade.spec	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,129 @@
+#
+# spec file for package SUNWopenjade
+#
+# includes module(s): openjade
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+%include Solaris.inc
+Name:                    SUNWopenjade
+Summary:                 DSSSL-Engine for SGML documents
+Version:                 1.3.2
+SUNW_BaseDir:            %{_prefix}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+Source:                  http://switch.dl.sourceforge.net/sourceforge/openjade/openjade-1.3.2.tar.bz2
+Source1:		 jade_style-sheet.dtd
+Patch1:			 openjade-01-macros.diff
+Patch2:			 openjade-02-forte.diff
+
+%include default-depend.inc
+
+%package share
+Summary:                 DSSSL-Engine for SGML documents - platform independent files, /usr/share
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+
+%package root
+Summary:                 DSSSL-Engine for SGML documents - platform independent files, / filesystem
+SUNW_BaseDir:            /
+%include default-depend.inc
+
+%prep
+%setup -q -n openjade-%{version}
+cp %SOURCE1 dsssl
+%patch1 -p1 -b .macros
+%patch2 -p1 -b .forte
+
+%define INSTALL install -m755 -s
+%define INSTALL_DIR install -d -m755
+%define INSTALL_DATA install -m644
+%define orig_name openjade
+%define sgml_dir %{_datadir}/sgml
+%define sgml_dir_pkg %{sgml_dir}/%{orig_name}
+%define sgml_var_dir %{_localstatedir}/lib/sgml
+
+%build
+export CXXFLAGS="$RPM_OPT_FLAGS"
+rm -f aclocal.m4 missing
+[ -r config/configure.in ] && mv config/configure.in .
+aclocal -I config
+autoconf --force
+./configure --prefix=%{_prefix} \
+  --libdir=%{_libdir} \
+  --mandir=%{_mandir} \
+  --datadir=%{sgml_dir}/openjade \
+  --enable-spincludedir=%_includedir/OpenSP \
+  --enable-splibdir=%_libdir \
+  --disable-http \
+  --enable-mif \
+  --enable-default-catalog="CATALOG:/etc/sgml/catalog:%{sgml_dir}/CATALOG"
+make
+
+%install
+[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{_libdir} \
+  $RPM_BUILD_ROOT%{sgml_dir}/%{orig_name} \
+  $RPM_BUILD_ROOT%{_includedir}/%{orig_name}
+make install DESTDIR=$RPM_BUILD_ROOT
+( cd $RPM_BUILD_ROOT/%_bindir; ln -sf openjade jade )
+[ -r jade/openjade-valid-fo ] && install -s jade/openjade-valid-fo $RPM_BUILD_ROOT%{_bindir}
+make install-man DESTDIR=$RPM_BUILD_ROOT mandir=%_mandir
+%{INSTALL_DATA} generic/*.h $RPM_BUILD_ROOT%{_includedir}/%{orig_name}
+%{INSTALL_DATA} grove/Node.h $RPM_BUILD_ROOT%{_includedir}/%{orig_name}
+%{INSTALL_DATA} spgrove/GroveApp.h \
+                spgrove/GroveBuilder.h $RPM_BUILD_ROOT%{_includedir}/%{orig_name}
+%{INSTALL_DATA} style/FOTBuilder.h style/GroveManager.h \
+                style/DssslApp.h style/dsssl_ns.h \
+                $RPM_BUILD_ROOT%{_includedir}/%{orig_name}
+pushd dsssl
+%{INSTALL_DATA} catalog dsssl.dtd extensions.dsl fot.dtd style-sheet.dtd \
+  builtins.dsl jade_style-sheet.dtd $RPM_BUILD_ROOT%{sgml_dir_pkg}
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_var_dir}
+sed 's:"\([^"]*\(dtd\|dsl\)\)"$:"%{sgml_dir_pkg}/\1":' catalog \
+  > $RPM_BUILD_ROOT%{sgml_var_dir}/CATALOG.%{orig_name}
+ln -sf CATALOG.%{orig_name} $RPM_BUILD_ROOT%{sgml_var_dir}/CATALOG.jade_dsl
+cd $RPM_BUILD_ROOT%{sgml_dir} \
+  && ln -sf ../../..%{sgml_var_dir}/CATALOG.%{orig_name} CATALOG.%{orig_name} \
+  && ln -sf ../../..%{sgml_var_dir}/CATALOG.%{orig_name} CATALOG.jade_dsl
+popd
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir}/James_Clark/dtd
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir}/OpenJade/dtd
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir}/ISO_IEC_10179:1996/dtd
+(cd $RPM_BUILD_ROOT%{sgml_dir}/James_Clark/dtd \
+   && ln -sf ../../$RPM_PACKAGE_NAME/jade_style-sheet.dtd DSSSL_Style_Sheet \
+   && ln -sf ../../$RPM_PACKAGE_NAME/fot.dtd DSSSL_Flow_Object_Tree)
+(cd $RPM_BUILD_ROOT%{sgml_dir}/OpenJade/dtd \
+   && ln -sf ../../$RPM_PACKAGE_NAME/style-sheet.dtd DSSSL_Style_Sheet)
+(cd $RPM_BUILD_ROOT%{sgml_dir}/ISO_IEC_10179:1996/dtd \
+   && ln -sf ../../$RPM_PACKAGE_NAME/dsssl.dtd DSSSL_Architecture)
+# for compatibility with SL <= 8.1
+pushd $RPM_BUILD_ROOT%{sgml_dir}
+  pushd %{orig_name}
+  ln -s ../opensp/japan.dcl .
+  ln -s ../opensp/opensp-implied.dcl sp_implied.dcl
+  ln -s ../opensp/xml.dcl .
+  ln -s ../opensp/xml.soc .
+  for d in *.dcl; do
+    ln -sf $d ${d/.dcl/.decl}
+  done
+  popd
+popd
+
+%files
+%defattr (-, root, other)
+%attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*
+%{_includedir}/*
+
+%files share
+%defattr (-, root, other)
+%attr (0755, root, sys) %{_datadir}
+%{_datadir}/*
+%{_mandir}/*
+
+%files root
+%{_localstatedir}/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/SUNWopensp.spec	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,127 @@
+#
+# spec file for package SUNWopensp
+#
+# includes module(s): OpenSP
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+%include Solaris.inc
+Name:                    SUNWopensp
+Summary:                 The OpenJade Group's SGML and XML parsing tools
+Version:                 1.5
+SUNW_BaseDir:            %{_prefix}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+Source:                  OpenSP-1.5.tar.gz
+Patch:			 opensp-01-forte.diff
+
+%include default-depend.inc
+
+%package share
+Summary:                 The OpenJade Group's SGML and XML parsing tools - platform independent files, /usr/share
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+
+%prep
+%setup -q -n OpenSP-%{version}
+%patch -p1 -b .forte
+
+%define INSTALL install -m 755 -s
+%define INSTALL_DIR install -d -m 755
+%define INSTALL_DATA install -m 644
+%define orig_name opensp
+%define sgml_dir %{_datadir}/sgml
+%define sgml_dir_pkg %{sgml_dir}/%{orig_name}
+%define sgml_var_dir /var/lib/sgml
+
+%build
+export CXXFLAGS="$RPM_OPT_FLAGS -norunpath"
+aclocal
+automake -f -c
+libtoolize --copy --force
+autoconf --force
+./configure --prefix=%{_prefix} \
+            --libdir=%{_libdir} \
+            --mandir=%{_mandir} \
+            --with-gnu-ld \
+            --disable-http \
+	    --disable-nls \
+            --enable-default-catalog="CATALOG:/etc/sgml/catalog:%{sgml_dir}/CATALOG"
+make
+perl -pi -e 's/sx/sgml2xml/g; s/SX/SGML2XML/g;' doc/sx.htm
+perl -pi -e 's/>sx/>sgml2xml/g; s/>SX/>SGML2XML/g;' doc/{new,index}.htm
+
+%install
+[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{_libdir}
+# %{INSTALL_DIR} $RPM_BUILD_ROOT%{_includedir}/opensp
+make install DESTDIR=$RPM_BUILD_ROOT
+make install-man DESTDIR=$RPM_BUILD_ROOT
+if [ -d $RPM_BUILD_ROOT%{_mandir}/man1 ]; then
+  pushd $RPM_BUILD_ROOT%{_mandir}/man1
+  cp osx.1 s2x.1
+  cp osx.1 osgml2xml.1
+  for b in o*; do
+    ln -sf ${b} ${b#o}
+  done
+  rm -f sx*
+  popd
+fi
+pushd $RPM_BUILD_ROOT%{_bindir}
+for b in os* onsgmls; do
+  ln -sf ${b} ${b#o}
+done
+# avoid conflict with rzsz package
+rm -f sx
+ln -sf osx s2x
+ln -sf osx sgml2xml
+ln -sf osx osgml2xml
+popd
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir_pkg}
+{
+  for c in opensp-implied.dcl japan.dcl xml.dcl; do
+    %{INSTALL_DATA} pubtext/$c $RPM_BUILD_ROOT%{sgml_dir_pkg}/$c
+    echo "-- SGMLDECL \"%{sgml_dir_pkg}/$c\" --"
+  done
+} > CATALOG.opensp
+sed 's|decl|dcl|' pubtext/xml.soc > $RPM_BUILD_ROOT%{sgml_dir_pkg}/xml.soc
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_var_dir}
+%{INSTALL_DATA} CATALOG.opensp $RPM_BUILD_ROOT%{sgml_var_dir}
+ln -sf ../../../%{sgml_var_dir}/CATALOG.opensp \
+  $RPM_BUILD_ROOT%{sgml_dir}/CATALOG.opensp
+rm -fr html
+mkdir html
+cp doc/catalog doc/*htm html
+%define DOCFILES COPYING README NEWS AUTHORS ABOUT-NLS
+{
+  echo "<html><head><title>OpenSP documentation directory</title></head>"
+  echo "<body>"
+  for f in %{DOCFILES}; do
+    [ -f $f ] || continue
+    echo "<a href=\"$f\">$f</a>"
+  done
+  echo "<a href=\"html/index.htm\">OpenSP</a>, official documentation (html)"
+} >index.html
+
+%files
+%defattr (-, root, other)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*nsgmls
+%{_bindir}/*sgmlnorm
+%{_bindir}/*spcat
+%{_bindir}/*spam
+%{_bindir}/*spent
+%{_bindir}/osx
+%{_bindir}/*s2x
+%{_bindir}/*sgml2xml
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.so.*
+%{_libdir}/lib*.so
+%{_includedir}/OpenSP
+
+%files share
+%attr (0755, root, sys) %{_datadir}
+%{sgml_dir_pkg}
+%{sgml_dir}/CATALOG.opensp
+#%config %{sgml_var_dir}/CATALOG.opensp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/Solaris.inc	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,25 @@
+#
+# Default settings for GNOME packages on Solaris
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+#
+SUNW_ProdName:             GNOME
+SUNW_ProdVers:             2.4.0
+SUNW_Category:             GNOME2,application
+SUNW_HotLine:              Please contact your local service provider
+SUNW_MaxInst:              1000
+Vendor:			   Sun Microsystems, Inc.
+SUNW_Copyright:            g24_copyright.txt
+%define _libexecdir        %{_prefix}/lib
+%define _mandir		   %{_datadir}/man
+%ifarch sparc
+%define optflags           -xO4 -xspace -xarch=v8a
+%else
+%define optflags           -xO4 -xspace
+%endif
+%define sparcv9_optflags   -xO4 -xspace -xarch=v9
+
+# temporary locations while we're sorting things out
+%define _prefix		   /opt/jds
+%define _sysconfdir	   %{_prefix}/etc
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Solaris/default-depend.inc	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,11 @@
+#
+# Default system dependencies for GNOME packages on Solaris
+#
+# Copyright (c) 2003 Sun Microsystems, Inc.
+#
+Requires: SUNWcar
+Requires: SUNWkvm
+Requires: SUNWcsr
+Requires: SUNWcsu
+Requires: SUNWcsd
+Requires: SUNWcsl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/jade_style-sheet.dtd	Fri Jan 09 05:45:13 2004 +0000
@@ -0,0 +1,41 @@
+<!-- A DTD for DSSSL Style Sheets.  The public identifier for this is
+
+     "-//James Clark//DTD DSSSL Style Sheet//EN"
+-->
+
+<!element style-sheet o o (style-specification,
+			   (external-specification|style-specification)*)>
+<!element style-specification o o (style-specification-body)>
+<!attlist style-specification
+  id id #implied
+  use idrefs #implied
+>
+<!element style-specification-body o o (#pcdata)>
+<!attlist style-specification-body
+  content entity #conref
+>
+<!element external-specification - o empty>
+<!attlist external-specification
+  id id #required
+  document entity #required
+  specid name #implied
+>
+<?IS10744 ArcBase DSSSL>
+<!NOTATION DSSSL   PUBLIC "ISO/IEC 10179:1996//NOTATION
+                   DSSSL Architecture Definition Document//EN"
+                -- A document architecture conforming to the
+                   Architectural Form Definition Requirements of
+                   ISO/IEC 10744.     --
+>
+
+<!ATTLIST #NOTATION DSSSL
+                            -- Support attributes for all architectures --
+  ArcQuant CDATA #FIXED "NAMELEN 64"
+  ArcDTD CDATA #FIXED "%DSSSLDTD"
+  ArcDocF NAME #FIXED dsssl-specification
+  ArcDataF NAME #FIXED dsssl-specification
+>
+
+<!ENTITY % DSSSLDTD PUBLIC
+ "ISO/IEC 10179:1996//DTD DSSSL Architecture//EN"
+>