File OpenOffice_org-components.spec of Package OpenOffice_org-components
#
# spec file for package OpenOffice_org-components (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-components
Version: 3.0.0.9
Release: 2
%define ooo_build_version 3.0.0.9
%define piece components
#!BuildIgnore: OpenOffice_org
BuildRequires: OpenOffice_org-artwork-devel = %version
BuildRequires: OpenOffice_org-libs-core-devel = %version
BuildRequires: ImageMagick ant ant-apache-regexp bison boost-devel ccache cups-devel curl-devel db-devel flac-devel flex gnome-vfs2-devel gperf gtk2-devel icu java-devel kdelibs3-devel krb5 libexif mono-devel neon-devel openldap2-devel pam-devel perl-Archive-Zip perl-Compress-Zlib python-devel recode unixODBC-devel unzip xml-commons-apis xorg-x11 zip
# mozilla stuff
%if %suse_version > 1100
BuildRequires: mozilla-xulrunner190-devel
%endif
%if %suse_version > 1010 && %suse_version <= 1100
BuildRequires: mozilla-xulrunner181-devel
%endif
%if %suse_version > 1000 && %suse_version <= 1010
BuildRequires: gecko-sdk mozilla-xulrunner
%endif
# 11.0 features
%if %suse_version > 1030
BuildRequires: hunspell-devel libwpd-devel libwpg-devel libwps-devel
%endif
# 10.3 features
%if %suse_version > 1020
BuildRequires: libicu-devel
%endif
%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
Requires: OpenOffice_org-libs-core = %version
Summary: OpenOffice.org Components
Url: http://www.openoffice.org/
Source0: %ooo_build_tag-%piece.tar.bz2
Source1: ooo-sdf-%piece.tar.bz2
Patch1000: hotfix-bean-openjdk-ppc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides functionality used by all the OpenOffice.org
modules.
%package -n OpenOffice_org-officebean
License: LGPL v3 only
Summary: OfficeBean Java Bean component for OpenOffice.org
Group: Productivity/Office/Suite
Provides: OpenOffice_org:/usr/lib/ooo-2.0/program/libofficebean.so
Requires: OpenOffice_org = %version
Provides: OpenOffice_org2-officebean
Obsoletes: OpenOffice_org2-officebean
%description -n OpenOffice_org-officebean
With the OfficeBean, a developer can easily write Java applications,
harnessing the power of OpenOffice.org. It encapsulates a connection to
a locally running OpenOffice.org process, and hides the complexity of
establishing and maintaining that connection from the developer.
It also allows embedding of OpenOffice.org documents within the Java
environment. It provides an interface the developer can use to obtain
Java AWT windows into which the backend OpenOffice.org process draws
its visual representation. These windows are then plugged into the UI
hierarchy of the hosting Java application. The embedded document is
controlled from the Java environment, since the OfficeBean allows
developers to access the complete OpenOffice.org API from their Java
environment giving them full control over the embedded document, its
appearance and behavior.
%package -n OpenOffice_org-testtool
License: LGPL v3 only
Summary: OpenOffice.org Test Tool
Group: Productivity/Office/Suite
Provides: OpenOffice_org:%ooo_prefix/%ooo_home/program/testtool.bin
Requires: OpenOffice_org = %version
%description -n OpenOffice_org-testtool
A Tool needed for automatic testing of OpenOffice.org office suite.
%package devel
Requires: %name = %version
Requires: OpenOffice_org-officebean = %version
Requires: OpenOffice_org-testtool = %version
Requires: OpenOffice_org-ure-devel = %version
Requires: OpenOffice_org-libs-extern-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 Components Development
Group: Productivity/Office/Suite
AutoReqProv: off
%description devel
This package allows developement based on the OpenOffice.org components
modules API.
%package l10n-prebuilt
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 Components Localizations
Group: Productivity/Office/Suite
AutoReqProv: off
%description l10n-prebuilt
This package includes the prebuilt localization of OpenOffice.org
Componetns package. 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
mkdir -p ooo-build/hotfixes
cp %{P:1000} ooo-build/hotfixes
%build
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/ooo-build/bin
export VERBOSE=1
export EXTRA_BUILD_FLAGS=%{?jobs:-P%jobs}
export EXTRA_DMAKE_FLAGS="%{?jobs:-- -P%jobs}"
$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" \
"$DESTDIR/$OO_INSTDIR/solver/bin/packinfo*.txt"
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel
/sbin/ldconfig
%postun devel
/sbin/ldconfig
%files -f files-%piece.txt
%defattr(-,root,root)
#%dir %ooo_prefix/%ooo_home/basis3.0
#%dir %ooo_prefix/%ooo_home/program
#%dir %ooo_prefix/%ooo_home/share
#%ooo_prefix/%ooo_home/basis3.0/*
#%ooo_prefix/%ooo_home/program/*
#%ooo_prefix/%ooo_home/share/*
%files -f files-officebean.txt -n OpenOffice_org-officebean
%defattr(-,root,root)
%files -f files-testtool.txt -n OpenOffice_org-testtool
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%dir %ooo_prefix/%ooo_home/solver
%ooo_prefix/%ooo_home/solver/*
%exclude %ooo_prefix/%ooo_home/solver/noarch
%files l10n-prebuilt
%defattr(-,root,root)
%ooo_prefix/%ooo_home/solver/noarch
%changelog
* Thu Dec 04 2008 pmladek@suse.de
- fixed build with OpenJDK on openSUSE-11.1-ppc (bnc#449711)
* 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
- added OpenOffice_org-officebean and OpenOffice_org-testtool to
requires of the devel package; the devel package is common
for all subpackages
* 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
* Thu Sep 11 2008 pmladek@suse.cz
- split from the main OpenOffice_org package, version 3.0.0.4