add spec files for new component gnome-devel-docs
authordavelam
Mon, 10 Sep 2007 08:35:02 +0000
changeset 10480 241566351bf4
parent 10479 da2ce69a63d9
child 10481 6dc6408c2ebc
add spec files for new component gnome-devel-docs
SUNWgnome-devel-docs.spec
base-specs/gnome-devel-docs.spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWgnome-devel-docs.spec	Mon Sep 10 08:35:02 2007 +0000
@@ -0,0 +1,98 @@
+#
+# spec file for package SUNWgnome-devel-docs
+#
+# includes module(s): GNOME Devel Docs
+#
+# Copyright (c) 2005 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: davelam
+#
+#
+%include Solaris.inc
+
+%use gdd = gnome-devel-docs.spec
+
+Name: SUNWgnome-devel-docs
+Summary: GNOME developer documentation
+Version: %{default_pkg_version}
+SUNW_BaseDir: %{_basedir}
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+BuildRequires: SUNWlxml-python
+Requires: SUNWgnome-help-viewer
+Requires: SUNWpostrun
+
+%if %build_l10n
+%package l10n
+Summary:                 %{summary} - l10n files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+%endif
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%gdd.prep -d %name-%version
+
+%build
+export PKG_CONFIG_PATH=%{_pkg_config_path}
+export MSGFMT="/usr/bin/msgfmt"
+export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
+export LDFLAGS="%_ldflags"
+export CFLAGS="%optflags"
+%gdd.build -d %name-%version
+
+%install
+%gdd.install -d %name-%version
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
+rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
+rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
+%endif
+
+%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
+
+# Remove scrollkeeper files before packaging.
+rm -rf $RPM_BUILD_ROOT/var
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
+  echo '/usr/bin/scrollkeeper-update'
+) | $BASEDIR/lib/postrun -b -u -c JDS
+
+%postun
+test -x $BASEDIR/lib/postrun || exit 0
+( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
+  echo '/usr/bin/scrollkeeper-update'
+) | $BASEDIR/lib/postrun -b -u -c JDS
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/gnome
+%{_datadir}/gnome/help/*/C
+%{_datadir}/omf/*/*-C.omf
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/gnome
+%{_datadir}/gnome/help/*/[a-z]*
+%{_datadir}/omf/*/*-[a-z][a-z].omf
+%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
+%endif
+
+%changelog
+* Sat Sep 01 2007 - Dave Lin <[email protected]>
+- initial version
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/gnome-devel-docs.spec	Mon Sep 10 08:35:02 2007 +0000
@@ -0,0 +1,82 @@
+#
+# spec file for package gnome-devel-docs
+#
+# Copyright (c) 2007 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: davelam
+#
+
+Name:		        gnome-devel-docs
+License:		GPL
+Group:			Documentation
+BuildArchitectures:	noarch
+Version:		2.19.1
+Release:		1
+Distribution:		Java Desktop System
+Vendor:			Sun Microsystems, Inc.
+Summary:		documents targeted for GNOME developers
+Source:		        http://ftp.gnome.org/pub/gnome/sources/gnome-devel-docs/2.19/gnome-devel-docs-%{version}.tar.bz2
+URL:			http://live.gnome.org/DeveloperGuides
+BuildRoot:		%{_tmppath}/%{name}-%{version}-build
+Docdir:			%{_defaultdocdir}/doc
+
+%define			scrollkeeper_version 0.3.12
+
+Prereq:			scrollkeeper >= %{scrollkeeper_version}
+Requires:		scrollkeeper >= %{scrollkeeper_version}
+
+%description
+This package contains documents which will be packaged together and
+shipped as gnome-devel-docs in the GNOME Fifth Toe distribution.  They 
+should be documents targeted for GNOME developers.
+
+%prep
+%setup -q
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+  CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+  CPUS=1
+fi
+
+libtoolize --force
+aclocal $ACLOCAL_FLAGS
+automake -a -c -f
+autoconf
+
+./configure --prefix=%{_prefix}   \
+            --datadir=%{_datadir} \
+	    --disable-scrollkeeper
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+chmod -R a+rX $RPM_BUILD_ROOT%{_datadir}/gnome/help
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = "2" ] ; then # upgrade
+  if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
+fi
+
+%files
+%defattr(-,root,bin)
+%doc COPYING AUTHORS README ChangeLog NEWS INSTALL
+%{_datadir}/gnome/help/*
+%{_datadir}/omf/*
+
+%changelog
+* Sat Sep 01 2007 - Dave Lin <[email protected]>
+- initial version
+