File OpenOffice_org-libs-extern.spec of Package OpenOffice_org-libs-extern
#
# spec file for package OpenOffice_org-libs-extern (Version 3.0.0.9)
#
# Copyright (c) 2010 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-libs-extern
Version: 3.0.0.9
Release: 1.<RELEASE15>
%define ooo_build_version 3.0.0.9
%define piece libs_extern
#!BuildIgnore: OpenOffice_org
# urg, ure dep is now required for cppunit ...
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
BuildRequires: OpenOffice_org-bootstrap = %version
BuildRequires: OpenOffice_org-ure-devel = %version
# 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
%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
Summary: OpenOffice.org External Libraries
Url: http://www.openoffice.org/
Source: %ooo_build_tag-%piece.tar.bz2
%if %suse_version <= 1030
Source1: %ooo_build_tag-libs_extern_sys.tar.bz2
%endif
# FIXME: hack the provides and requires (bnc#411538)
# make sure external scripts are used
%define _use_internal_dependency_generator 0
%define __find_provides /bin/sh %_sourcedir/ooo-libs-extern-prov %name
%define __find_requires /bin/sh %_sourcedir/ooo-libs-extern-req %name
Source100: ooo-libs-extern-prov
Source101: ooo-libs-extern-req
# Security fixes
# XML signature HMAC truncation authentication bypass, CVE-2009-0217, bnc#521564
Patch900: libxmlsec-xmlsec1-cve-2009-0217-ooo300-m9.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This packages provides the OpenOffice.org libraries that are built from
3rd party sources. They are used by all OpenOffice.org modules.
%package devel
Requires: %name = %version
Requires: OpenOffice_org-bootstrap = %version
Requires: OpenOffice_org-ure-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 External Libraries Development
Group: Productivity/Office/Suite
AutoReqProv: off
%description devel
This package allows developement based on the OpenOffice.org external
libraries 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 External Libraries Localizations
Group: Productivity/Office/Suite
AutoReqProv: off
%description l10n-prebuilt
This package includes the prebuilt localization of OpenOffice.org
external libraries. 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
%if %suse_version <= 1030
%setup -q -b1 -n %ooo_build_tag-%piece
mv ../%ooo_build_tag-libs_extern_sys/icu .
%else
%setup -q -n %ooo_build_tag-%piece
%endif
mkdir -p ooo-build/hotfixes
cp -a %{P:900} 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}"
# FIXME: hack to avoid random build crash
$OO_TOOLSDIR/piece/build-generic %piece %ooo_build_tag || $OO_TOOLSDIR/piece/build-generic %piece %ooo_build_tag || $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
%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)
%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