Solaris/SUNWgnome-user-docs.spec
author dc144907
Tue, 14 Mar 2006 17:01:34 +0000
changeset 6939 61687acf59de
parent 6919 fe2ec42374d0
child 6967 147ad9b3fb2e
permissions -rw-r--r--
2006-03-14 Damien Carbery <[email protected]> * SUNWgnome-utils.spec: Remove code that deleted gnome-dictionary .a and .la files. No longer present. * SUNWgnome-system-tools.spec: Set perms for %{_libdir} in %files. * SUNWgnome-user-docs.spec: Uncomment l10n files to pick up 'it' files.

#
# 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 - platform independent files, /usr/share
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
* 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/...