File OpenOffice_org-l10n-extras.spec of Package OpenOffice_org-l10n-extras

#
# spec file for package OpenOffice_org-l10n-extras (Version 3.0.0.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           OpenOffice_org-l10n-extras
Version:        3.0.0.9
Release:        1
%define         ooo_build_version 3.0.0.9
%define         piece      l10n
#!BuildIgnore:  OpenOffice_org
BuildRequires:  java-devel unzip zip
BuildRequires:  OpenOffice_org-artwork-devel = %version
BuildRequires:  OpenOffice_org-libs-core-devel = %version
%define	      ooo_prefix	%_libdir
%define	      ooo_home		ooo3
%define	      ooo_build_tag     ooo300-m9
License:        Artistic License; BSD 3-Clause; GPL v2 or later; LaTeX Public License (LPPL); LGPL v2.1 or later; LGPL v3 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Group:          Productivity/Office/Suite
AutoReqProv:    on
PreReq:         OpenOffice_org-ure = %version
Requires:       OpenOffice_org = %version
Summary:        OpenOffice.org Extras
Url:            http://www.openoffice.org/
Source0:        %ooo_build_tag-%piece.tar.bz2
Source1:        ooo-sdf-%piece.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package provides the ususal OpenOffice.org extra stuff, for
example autocorrection definitions, a letter wizard, a basic gallery.



%package devel
PreReq:         OpenOffice_org-ure = %version
Requires:       %name = %version
Requires:       OpenOffice_org-libs-core-devel = %version
License:        Artistic License; BSD 3-Clause; GPL v2 or later; LaTeX Public License (LPPL); LGPL v2.1 or later; LGPL v3 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary:        OpenOffice.org Extras
Group:          Productivity/Office/Suite
AutoReqProv:    off

%description devel
This package provides localizations of the basic stuff used by the
OpenOffice.org development.



%package prebuilt
PreReq:         OpenOffice_org-ure = %version
License:        Artistic License; BSD 3-Clause; GPL v2 or later; LaTeX Public License (LPPL); LGPL v2.1 or later; LGPL v3 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary:        Prebuilt OpenOffice.org Extras Localizations
Group:          Productivity/Office/Suite
AutoReqProv:    off

%description prebuilt
This package includes the prebuilt localization of OpenOffice.org
Extras. It is not intended for a real use. It needs to be repacked to
the real architecture independent package.

This is only a temporary solution until we have an easier way to build
the OpenOffice.org localizations separately.



%prep
%setup -q -a1 -n %ooo_build_tag-%piece
# FIXME: move helpcontent2 to separate source tarball
rm -rf helpcontent2

%build
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/ooo-build/bin
export VERBOSE=1
# don't build help 8x since - well - it needs a shed load of memory.
export EXTRA_BUILD_FLAGS=%{?jobs:-P2}
export EXTRA_DMAKE_FLAGS="%{?jobs:-- -P2}"
$OO_TOOLSDIR/piece/build-generic %piece %ooo_build_tag

%install
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/ooo-build/bin
export DESTDIR=$RPM_BUILD_ROOT
$OO_TOOLSDIR/piece/install-generic %piece %ooo_build_tag
# prune redundant files the scp2 likes to make for us
rm -Rf \
    "$DESTDIR/$OO_INSTDIR/basis-link" \
    "$DESTDIR/$OO_INSTDIR/ure"

%clean
rm -rf $RPM_BUILD_ROOT
# main
%posttrans
%_datadir/%ooo_home/link-to-ooo-home %_datadir/%ooo_home/files-%piece.txt || true

%preun
test "$1" = "0" && %_datadir/%ooo_home/link-to-ooo-home --unlink %_datadir/%ooo_home/files-%piece.txt || true
# prebuilt
%posttrans prebuilt
%_datadir/%ooo_home/link-to-ooo-home %_datadir/%ooo_home/files-%piece-prebuilt.txt || true

%preun prebuilt
test "$1" = "0" && %_datadir/%ooo_home/link-to-ooo-home --unlink %_datadir/%ooo_home/files-%piece-prebuilt.txt || true
# devel
%posttrans devel
%_datadir/%ooo_home/link-to-ooo-home %_datadir/%ooo_home/files-%piece-devel.txt || true

%preun devel
test "$1" = "0" && %_datadir/%ooo_home/link-to-ooo-home --unlink %_datadir/%ooo_home/files-%piece-devel.txt || true

%files -f files-%piece.txt
%defattr(-,root,root)
#%dir %ooo_prefix/%ooo_home/basis3.0
#%dir %ooo_prefix/%ooo_home/LICENSE
#%dir %ooo_prefix/%ooo_home/LICENSE.html
#%dir %ooo_prefix/%ooo_home/README
#%dir %ooo_prefix/%ooo_home/README.html
#%dir %ooo_prefix/%ooo_home/readmes
#%dir %ooo_prefix/%ooo_home/licenses
#%dir %ooo_prefix/%ooo_home/share
#%dir %ooo_prefix/%ooo_home/THIRDPARTYLICENSEREADME.html
#%ooo_prefix/%ooo_home/basis3.0/*
#%ooo_prefix/%ooo_home/readmes/*
#%ooo_prefix/%ooo_home/licenses/*
#%ooo_prefix/%ooo_home/share/*

%files -f files-%piece-prebuilt.txt prebuilt
%defattr(-,root,root)
%dir %_datadir/%ooo_home
%dir %_datadir/%ooo_home/solver

%files -f files-%piece-devel.txt devel
%defattr(-,root,root)

%changelog
* Fri Nov 21 2008 pmladek@suse.cz
- updated ooo-build to version 3.0.0.9
- added extra localizations sources
* Fri Nov 07 2008 pmladek@suse.cz
- updated ooo-build to version 3.0.0.8
* Mon Oct 27 2008 pmladek@suse.cz
- updated ooo-build to version 3.0.0.7
* Fri Oct 10 2008 pmladek@suse.cz
- updated to the milestone ooo300-m9 (3.0rc4)
- updated ooo-build to version 3.0.0.6
- added BuildIgnore OpenOffice_org to avoid cyclic build dependency
* Sat Sep 27 2008 pmladek@suse.cz
- updated to the milestone ooo300-m7 (3.0rc2)
- updated ooo-build to version 3.0.0.5
- added Requires OpenOffice_org = %%version
* Thu Sep 11 2008 pmladek@suse.cz
- split from the main OpenOffice_org package, version 3.0.0.4
openSUSE Build Service is sponsored by