specs/SUNWgnome-user-docs.spec
author Jon Tibble <meths@btinternet.com>
Sat Oct 06 16:11:50 2012 +0100 (2012-10-06)
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 18099 6142061e510a
child 20169 269b1e9ef64e
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
     1 #
     2 # spec file for package SUNWgnome-user-docs
     3 #
     4 # includes module(s): gnome-user-docs
     5 #
     6 # Copyright 2009 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 %define owner davelam
    11 #
    12 %include Solaris.inc
    13 
    14 %use gud = gnome-user-docs.spec
    15 
    16 Name:                    SUNWgnome-user-docs
    17 IPS_package_name:        documentation/gnome/gnome-user-docs
    18 Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Documentation
    19 Summary:                 GNOME user documentation
    20 Version:                 %{default_pkg_version}
    21 SUNW_BaseDir:            %{_basedir}
    22 SUNW_Copyright:          %{name}.copyright
    23 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
    24 %include default-depend.inc
    25 BuildRequires: SUNWlxml-python26
    26 BuildRequires: SUNWgnome-doc-utils
    27 Requires: SUNWgnome-help-viewer
    28 
    29 %if %build_l10n
    30 %package l10n
    31 Summary:                 %{summary} - l10n files
    32 SUNW_BaseDir:            %{_basedir}
    33 %include default-depend.inc
    34 Requires:                %{name}
    35 %endif
    36 
    37 %prep
    38 rm -rf %name-%version
    39 mkdir %name-%version
    40 %gud.prep -d %name-%version
    41 
    42 %build
    43 export PKG_CONFIG_PATH=%{_pkg_config_path}
    44 export MSGFMT="/usr/bin/msgfmt"
    45 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
    46 export LDFLAGS="%_ldflags"
    47 export CFLAGS="%optflags"
    48 %gud.build -d %name-%version
    49 
    50 %install
    51 %gud.install -d %name-%version
    52 
    53 %if %build_l10n
    54 %else
    55 # REMOVE l10n FILES
    56 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
    57 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
    58 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
    59 %endif
    60 
    61 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    62 
    63 # Remove scrollkeeper files before packaging.
    64 rm -rf $RPM_BUILD_ROOT/var
    65 
    66 %clean
    67 rm -rf $RPM_BUILD_ROOT
    68 
    69 %files
    70 %defattr (-, root, bin)
    71 %doc -d gnome-user-docs-%{gud.version} README AUTHORS
    72 %doc(bzip2) -d gnome-user-docs-%{gud.version} COPYING COPYING-DOCS
    73 %doc(bzip2) -d gnome-user-docs-%{gud.version} NEWS ChangeLog
    74 %dir %attr (0755, root, other) %{_datadir}/doc
    75 %dir %attr (0755, root, sys) %{_datadir}
    76 %dir %attr (0755, root, other) %{_datadir}/gnome
    77 %{_datadir}/gnome/help/*/C
    78 %{_datadir}/omf/*/*-C.omf
    79 
    80 %if %build_l10n
    81 %files l10n
    82 %defattr (-, root, bin)
    83 %dir %attr (0755, root, sys) %{_datadir}
    84 %dir %attr (0755, root, other) %{_datadir}/gnome
    85 %{_datadir}/gnome/help/*/[a-z]*
    86 %{_datadir}/omf/*/*-[a-z][a-z].omf
    87 %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
    88 %endif
    89 
    90 
    91 %changelog
    92 * Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
    93 - Updated BuildRequires to fit SourceJuicer.
    94 * Fri Apr  3 2009 - laca@sun.com
    95 - stop using postrun
    96 * Wed Mar 11 2009 - dave.lin@sun.com
    97 - Took the ownership of this spec file.
    98 * Fri Sep 19 2008 - halton.huo@sun.com
    99 - Add %doc part to %files
   100 * Thu Apr 03 2008 - damien.carbery@sun.com
   101 - Add SUNW_Copyright.
   102 * Tue Jul 10 2007 - damien.carbery@sun.com
   103 - Add BuildRequires SUNWlxml-python.
   104 * Wed Aug 16 2006 - damien.carbery@sun.com
   105 - Add %files entry to pick up pt_BR and zh_CN omf files.
   106 * Fri Jul 14 2006 - laca@sun.com
   107 - update %post/%postun/etc scripts to support diskless client setup,
   108   part of 6448317
   109 * Thu Jun 29 2006 - laca@sun.com
   110 - update postrun scripts
   111 * Sun Jun 11 2006 - laca@sun.com
   112 - change group from other to bin/sys
   113 * Wed Mar 22 2006 - damien.carbery@sun.com
   114 - Uncomment removal of l10n files when not doing l10n build.
   115 * Tue Mar 14 2006 - damien.carbery@sun.com
   116 - Uncomment l10n files to pick up 'it' files.
   117 * Tue Feb 21 2006 - damien.carbery@sun.com
   118 - Delete scrollkeeper files before packaging.
   119 * Tue Nov 29 2005 - laca@sun.com
   120 - remove javahelp stuff
   121 * Fri Sep 30 2005  damien.carbery@sun.com
   122 - Remove obsolete javahelp references.
   123 * Thu Sep 30 2004  shirley.woo@sun.com
   124 - Fixed dependencies lies for base package
   125 * Wed Aug 25 2004  Kazuhiko.Maekawa@sun.com
   126 - Updated files to extracted only l10n content
   127 * Tue Aug 24 2004  laca@sun.com
   128 - separated l10n content into l10n subpkg
   129 * Thu Aug 19 2004  damien.carbery@sun.com
   130 - Remove xml perms change - done in base spec file.
   131 * Wed Aug 18 2004  damien.carbery@sun.com
   132 - Change xml perms for Solaris integration.
   133 * Sat Jun 26 2004  shirley.woo@sun.com
   134 - Changed install location to /usr/...