Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-doc-utils
      3 #
      4 # includes module(s): gucharmap
      5 #
      6 # Copyright (c) 2004 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner: laca
     11 #
     12 %include Solaris.inc
     13 
     14 %use gnomedocutils = gnome-doc-utils.spec
     15 
     16 Name:                    SUNWgnome-doc-utils
     17 Summary:                 GNOME documentation utilities
     18 Version:                 %{default_pkg_version}
     19 SUNW_BaseDir:            %{_basedir}
     20 SUNW_Copyright:          %{name}.copyright
     21 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     22 %include default-depend.inc
     23 Requires: SUNWgnome-common-devel
     24 Requires: SUNWlxml
     25 Requires: SUNWlxsl
     26 Requires: SUNWPython
     27 Requires: SUNWpostrun
     28 BuildRequires: SUNWlxml-devel
     29 BuildRequires: SUNWlxsl-devel
     30 
     31 %if %build_l10n
     32 %package l10n
     33 Summary:                 %{summary} - l10n content
     34 SUNW_BaseDir:            %{_basedir}
     35 %include default-depend.inc
     36 Requires: %{name}
     37 %endif
     38 
     39 %prep
     40 rm -rf %name-%version
     41 mkdir %name-%version
     42 %gnomedocutils.prep -d %name-%version
     43 
     44 %build
     45 export PKG_CONFIG_PATH=%{_pkg_config_path}
     46 export CFLAGS="%optflags -I%{_includedir}"
     47 export RPM_OPT_FLAGS="$CFLAGS"
     48 export LDFLAGS="%_ldflags"
     49 %gnomedocutils.build -d %name-%version
     50 
     51 %install
     52 rm -rf $RPM_BUILD_ROOT
     53 %gnomedocutils.install -d %name-%version
     54 
     55 # HACK.
     56 if [ -d $RPM_BUILD_ROOT%{_libdir}/locale ]; then
     57   mv $RPM_BUILD_ROOT%{_libdir}/locale $RPM_BUILD_ROOT%{_datadir}
     58 fi
     59 
     60 %if %build_l10n
     61 %else
     62 # REMOVE l10n FILES
     63 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     64 %endif
     65 
     66 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     67 
     68 %clean
     69 rm -rf $RPM_BUILD_ROOT
     70 
     71 %post
     72 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
     73   echo '/usr/bin/scrollkeeper-update'
     74 ) | $BASEDIR/lib/postrun -b -u -c JDS
     75 
     76 %postun
     77 test -x $BASEDIR/lib/postrun || exit 0
     78 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
     79   echo '/usr/bin/scrollkeeper-update'
     80 ) | $BASEDIR/lib/postrun -b -u -c JDS
     81 
     82 %files
     83 %defattr (-, root, bin)
     84 %dir %attr (0755, root, bin) %{_bindir}
     85 %{_bindir}/gnome-doc-prepare
     86 %{_bindir}/gnome-doc-tool
     87 %{_bindir}/xml2po
     88 %dir %attr (0755, root, sys) %{_datadir}
     89 %{_datadir}/gnome-doc-utils
     90 %dir %attr (0755, root, other) %{_datadir}/gnome
     91 %{_datadir}/gnome/help
     92 %{_datadir}/omf
     93 %{_datadir}/xml
     94 %{_datadir}/xml2po
     95 %dir %attr(0755, root, bin) %{_mandir}
     96 %dir %attr(0755, root, bin) %{_mandir}/*
     97 %{_mandir}/*/*
     98 %dir %attr (0755, root, bin) %{_libdir}
     99 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    100 %{_libdir}/pkgconfig/*
    101 %dir %attr (0755, root, other) %{_datadir}/aclocal
    102 %{_datadir}/aclocal/*
    103 
    104 %if %build_l10n
    105 %files l10n
    106 %defattr (-, root, bin)
    107 %dir %attr (0755, root, sys) %dir %{_datadir}
    108 %attr (-, root, other) %{_datadir}/locale
    109 %endif
    110 
    111 %changelog
    112 * Wed Jul 23 2008 - damien.carbery@sun.com
    113 - Modify hack because %{_libdir}/locale is installed on svn_91 but not snv_93.
    114 * Sun Mar 16 2008 - damien.carbery@sun.com
    115 - Add hack back in to get build going again. Will split 'glib' out of
    116   SUNWgnome-base-specs.spec at a later date.
    117 * Fri Mar 14 2008 - damien.carbery@sun.com
    118 - Remove hack - call aclocal/automake/autoconf in the base spec file.
    119 * Tue Mar 11 2008 - damien.carbery@sun.com
    120 - Add hack to move locale files from %{_libdir} to %{_datadir}.
    121 * Thu Nov 15 2007 - damien.carbery@sun.com
    122 - Add BuildRequires SUNWlxml-devel and SUNWlxsl-devel.
    123 * Thu Oct 11 2007 - damien.carbery@sun.com
    124 - Remove duplicate %{_datadir} line and second %defattr.
    125 * Wed Oct 10 2007 - damien.carbery@sun.com
    126 - Move -devel package into base package as the module is only used during
    127   building.
    128 * Thu Aug 23 2007 - laca@sun.com
    129 - don't delete lib/locale in %install -- this is now fixed in the base spec
    130 - delete $RPM_BUILD_ROOT in %install
    131 * Mon May 14 2007 - damien.carbery (at] sun.com
    132 - Add SUNWgnome-common-devel dependency for pkg-config.
    133 * Fri May 11 2007 - damien.carbery (at] sun.com
    134 - Remove unnecessary SUNWgnome-libs dependency. Builds okay without it.
    135 * Wed Apr 11 2007 - damien.carbery (at] sun.com
    136 - Add l10n package after bumping tarball.
    137 * Tue Feb 27 2007 - damien.carbery (at] sun.com
    138 - Add %{_bindir}/gnome-doc-tools from new tarball.
    139 * Fri Sep 08 2006 - Matt.Keenan (at] sun.com
    140 - Remove "rm" of _mandir during %install, deliver xml2po.1 community man page
    141 * Sat Aug 12 2006 - laca (at] sun.com
    142 - delete some unnecessary env variables
    143 * Fri Aug 11 2006 - damien.carbery (at] sun.com
    144 - Remove %{_libdir}/locale files because I don't want to create a l10n pkg.
    145 * Fri Jul 14 2006 - laca@sun.com
    146 - update %post/%postun/etc scripts to support diskless client setup,
    147   part of 6448317
    148 * Thu Jun 29 2006 - laca@sun.com
    149 - update postrun scripts
    150 * Sun Jun 11 2006 - laca@sun.com
    151 - change group from other to bin/sys
    152 * Thu May 04 2006 - laca@sun.com
    153 - merge -share pkg(s) into the base pkg(s)
    154 * Tue Nov 29 2005 - laca@sun.com
    155 - remove javahelp stuff
    156 * Wed Oct 19 2005 - damien.carbery@sun.com
    157 - Add SUNWPython dependency as xml2po uses python.
    158 * Wed Jul 06 2005 - laca@sun.com
    159 - remove mandir from %files, it's not there
    160 - remove l10n subpkg, there's no l10n content
    161 * Mon Jul 04 2005 - matt.keenan@sun.com
    162 - Initial spec file needed by SUNWgnome-help-viewer (yelp)
    163