Solaris/SUNWgnome-user-docs.spec
author lp117937
Thu, 11 May 2006 05:51:39 +0000
changeset 7244 b65ebefa231b
parent 6977 ec89dca89182
child 7425 5f918d0fa619
permissions -rw-r--r--
2006-05-11 Laszlo (Laca) Peter <[email protected]> *.spec: update summaries.

#
# spec file for package SUNWgnome-user-docs
#
# includes module(s): gnome-user-docs
#
# Copyright (c) 2004 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 gud = gnome-user-docs.spec

Name:                    SUNWgnome-user-docs
Summary:                 GNOME user documentation
Version:                 %{default_pkg_version}
SUNW_BaseDir:            %{_basedir}
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
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
%gud.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"
%gud.build -d %name-%version

%install
%gud.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'
) | $PKG_INSTALL_ROOT/usr/lib/postrun -b -u

%postun
test -x $PKG_INSTALL_ROOT/usr/lib/postrun || exit 0
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
  echo '/usr/bin/scrollkeeper-update'
) | $PKG_INSTALL_ROOT/usr/lib/postrun -b -u

%files
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/gnome/help/*/C
%{_datadir}/omf/*/*-C.omf

%if %build_l10n
%files l10n
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/gnome/help/*/[a-z]*
%{_datadir}/omf/*/*-[a-z][a-z].omf
# %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
%endif


%changelog
* Wed Mar 22 2006 - [email protected]
- Uncomment removal of l10n files when not doing l10n build.

* Tue Mar 14 2006 - [email protected]
- Uncomment l10n files to pick up 'it' files.

* Tue Feb 21 2006 - [email protected]
- Delete scrollkeeper files before packaging.

* Tue Nov 29 2005 - laca.com
- remove javahelp stuff

* Fri Sep 30 2005  [email protected]
- Remove obsolete javahelp references.
* Thu Sep 30 2004  [email protected]
- Fixed dependencies lies for base package
* Wed Aug 25 2004  [email protected]
- Updated files to extracted only l10n content
* Tue Aug 24 2004  [email protected]
- separated l10n content into l10n subpkg
* Thu Aug 19 2004  [email protected]
- Remove xml perms change - done in base spec file.
* Wed Aug 18 2004  [email protected]
- Change xml perms for Solaris integration.
* Sat Jun 26 2004  [email protected]
- Changed install location to /usr/...