SUNWgnome-doc-utils.spec revision 18688
20786N/A#
20786N/A# spec file for package SUNWgnome-doc-utils
20786N/A#
20786N/A# includes module(s): gucharmap
20786N/A#
20786N/A# Copyright 2009 Sun Microsystems, Inc.
20786N/A# This file and all modifications and additions to the pristine
20786N/A# package are under the same license as the package itself.
20786N/A#
20786N/A%define owner laca
20786N/A#
20786N/A%include Solaris.inc
20786N/A
20786N/A%use gnomedocutils = gnome-doc-utils.spec
20786N/A
20786N/AName: SUNWgnome-doc-utils
20786N/AIPS_package_name: developer/gnome/gnome-doc-utils
20824N/AMeta(info.classification): %{classification_prefix}:Development/GNOME and GTK+
20786N/ASummary: GNOME documentation utilities
20786N/AVersion: %{default_pkg_version}
20798N/ASUNW_BaseDir: %{_basedir}
20786N/ASUNW_Copyright: %{name}.copyright
20786N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20786N/A%include default-depend.inc
20786N/ARequires: SUNWlxml-python
20786N/ARequires: SUNWgnome-common-devel
20786N/ARequires: SUNWlxml
20786N/ARequires: SUNWlxsl
20786N/ARequires: SUNWPython
20786N/ABuildRequires: SUNWlxml-devel
20786N/ABuildRequires: SUNWlxsl-devel
20786N/ABuildRequires: SUNWlxml-python26
20786N/A
20786N/A%if %build_l10n
20786N/A%package l10n
20786N/ASummary: %{summary} - l10n content
20786N/ASUNW_BaseDir: %{_basedir}
20786N/A%include default-depend.inc
20786N/ARequires: %{name}
20786N/A%endif
20786N/A
20786N/A%prep
20786N/Arm -rf %name-%version
20786N/Amkdir %name-%version
20786N/A%gnomedocutils.prep -d %name-%version
20786N/A
20786N/A%build
20786N/Aexport PKG_CONFIG_PATH=%{_pkg_config_path}
20786N/Aexport CFLAGS="%optflags -I%{_includedir}"
20786N/Aexport RPM_OPT_FLAGS="$CFLAGS"
20786N/Aexport LDFLAGS="%_ldflags"
20786N/Aexport PYTHON=/usr/bin/python2.6
20786N/A%gnomedocutils.build -d %name-%version
20786N/A
20786N/A%install
20786N/Arm -rf $RPM_BUILD_ROOT
20786N/A%gnomedocutils.install -d %name-%version
20786N/A
20786N/A# HACK.
20786N/Aif [ -d $RPM_BUILD_ROOT%{_libdir}/locale ]; then
20786N/A mv $RPM_BUILD_ROOT%{_libdir}/locale $RPM_BUILD_ROOT%{_datadir}
20786N/Afi
20786N/A
20786N/A%if %build_l10n
20786N/A%else
20786N/A# REMOVE l10n FILES
20786N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
20786N/A%endif
20786N/A
20786N/Afind $RPM_BUILD_ROOT -type f -name "*.pyc" -exec rm -f {} ';'
20786N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
20786N/A
20786N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
20786N/A
20786N/A%clean
20786N/Arm -rf $RPM_BUILD_ROOT
20786N/A
20786N/A%files
20786N/A%defattr (-, root, bin)
20786N/A%dir %attr (0755, root, bin) %{_bindir}
20786N/A%{_bindir}/gnome-doc-prepare
20786N/A%{_bindir}/gnome-doc-tool
20786N/A%{_bindir}/xml2po
20786N/A%dir %attr (0755, root, sys) %{_datadir}
20786N/A%{_datadir}/gnome-doc-utils
20786N/A%dir %attr (0755, root, other) %{_datadir}/gnome
20786N/A%{_datadir}/gnome/help
20786N/A%{_datadir}/omf
20786N/A%{_datadir}/xml
20786N/A%dir %attr(0755, root, bin) %{_mandir}
20786N/A%dir %attr(0755, root, bin) %{_mandir}/*
20786N/A%{_mandir}/*/*
20786N/A%dir %attr (0755, root, bin) %{_libdir}
20786N/A#%dir %attr (0755, root, other) %{_libdir}/pkgconfig
20786N/A#%{_libdir}/pkgconfig/*
20786N/A%dir %attr (0755, root, other) %{_datadir}/aclocal
20786N/A%{_datadir}/aclocal/*
20786N/A%{_datadir}/pkgconfig/gnome-doc-utils.pc
20786N/A%{_libdir}/python2.6/site-packages/xml2po/__init__.py
20786N/A%{_libdir}/python2.6/site-packages/xml2po/modes/*.py
20786N/A%{_datadir}/pkgconfig/xml2po.pc
20786N/A
20786N/A%if %build_l10n
20786N/A%files l10n
20786N/A%defattr (-, root, bin)
20786N/A%dir %attr (0755, root, sys) %dir %{_datadir}
20786N/A%attr (-, root, other) %{_datadir}/locale
20786N/A%endif
20786N/A
20786N/A%changelog
20786N/A* Mon Jan 18 2010 - christian.kelly@sun.com
20786N/A- Fix %files.
20786N/A* Tue Dec 8 2009 - christian.kelly@sun.com
20786N/A- Add dependency on SUNWlibxml2-python26.
20786N/A* Wed Jul 15 2009 - christian.kelly@sun.com
20786N/A- Minor pkg'ing fix.
20786N/A* Thu Jun 18 2009 - christian.kelly@sun.com
20824N/A- Minor pkg'ing fix.
20824N/A* Fri Apr 3 2009 - laca@sun.com
20824N/A- stop using postrun
20824N/A* Wed Jul 23 2008 - damien.carbery@sun.com
20786N/A- Modify hack because %{_libdir}/locale is installed on svn_91 but not snv_93.
20786N/A* Sun Mar 16 2008 - damien.carbery@sun.com
- Add hack back in to get build going again. Will split 'glib' out of
SUNWgnome-base-specs.spec at a later date.
* Fri Mar 14 2008 - damien.carbery@sun.com
- Remove hack - call aclocal/automake/autoconf in the base spec file.
* Tue Mar 11 2008 - damien.carbery@sun.com
- Add hack to move locale files from %{_libdir} to %{_datadir}.
* Thu Nov 15 2007 - damien.carbery@sun.com
- Add BuildRequires SUNWlxml-devel and SUNWlxsl-devel.
* Thu Oct 11 2007 - damien.carbery@sun.com
- Remove duplicate %{_datadir} line and second %defattr.
* Wed Oct 10 2007 - damien.carbery@sun.com
- Move -devel package into base package as the module is only used during
building.
* Thu Aug 23 2007 - laca@sun.com
- don't delete lib/locale in %install -- this is now fixed in the base spec
- delete $RPM_BUILD_ROOT in %install
* Mon May 14 2007 - damien.carbery@sun.com
- Add SUNWgnome-common-devel dependency for pkg-config.
* Fri May 11 2007 - damien.carbery@sun.com
- Remove unnecessary SUNWgnome-libs dependency. Builds okay without it.
* Wed Apr 11 2007 - damien.carbery@sun.com
- Add l10n package after bumping tarball.
* Tue Feb 27 2007 - damien.carbery@sun.com
- Add %{_bindir}/gnome-doc-tools from new tarball.
* Fri Sep 08 2006 - Matt.Keenan@sun.com
- Remove "rm" of _mandir during %install, deliver xml2po.1 community man page
* Sat Aug 12 2006 - laca@sun.com
- delete some unnecessary env variables
* Fri Aug 11 2006 - damien.carbery@sun.com
- Remove %{_libdir}/locale files because I don't want to create a l10n pkg.
* Fri Jul 14 2006 - laca@sun.com
- update %post/%postun/etc scripts to support diskless client setup,
part of 6448317
* Thu Jun 29 2006 - laca@sun.com
- update postrun scripts
* Sun Jun 11 2006 - laca@sun.com
- change group from other to bin/sys
* Thu May 04 2006 - laca@sun.com
- merge -share pkg(s) into the base pkg(s)
* Tue Nov 29 2005 - laca@sun.com
- remove javahelp stuff
* Wed Oct 19 2005 - damien.carbery@sun.com
- Add SUNWPython dependency as xml2po uses python.
* Wed Jul 06 2005 - laca@sun.com
- remove mandir from %files, it's not there
- remove l10n subpkg, there's no l10n content
* Mon Jul 04 2005 - matt.keenan@sun.com
- Initial spec file needed by SUNWgnome-help-viewer (yelp)