File OpenOffice_org-ure.spec of Package OpenOffice_org-ure

#
# spec file for package OpenOffice_org-ure (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-ure
Version:        3.0.0.9
Release:        2
%define         ooo_build_version 3.0.0.9
%define         piece ure
#!BuildIgnore:  OpenOffice_org
BuildRequires:  OpenOffice_org-bootstrap = %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
%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 UNO Runtime Environment
Url:            http://www.openoffice.org/
Source0:        %ooo_build_tag-%piece.tar.bz2
# prebuilt mono dlls for older distributions and ppc
Source100:      ooo-cli-prebuilt-3.0.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
UNO is the basic technology used by OpenOffice.org. It allows to
integrate modules written in various programming languages.



%package -n OpenOffice_org-mono
License:        LGPL v3 only
Summary:        Mono UNO Bridge for OpenOffice.org
Group:          Productivity/Office/Suite
Requires:       mono-core
Requires:       %name = %version

%description -n OpenOffice_org-mono
The Mono/UNO binding allows a Mono application to access the complete
set of APIs exposed by OpenOffice.org via UNO. A trivial example
use-case might be a small mono application to create a spreadsheet,
populate it with data, charts, formatting, then save that in Excel
format.

Currently the use of Mono for add-ins & scripting inside OO.o itself is
not supported.



%package -n OpenOffice_org-pyuno
License:        LGPL v3 only
Summary:        Python UNO Bridge for OpenOffice.org
Group:          Productivity/Office/Suite
Provides:       OpenOffice_org:%ooo_prefix/%ooo_home/program/pyuno.so
Requires:       %name = %version

%description -n OpenOffice_org-pyuno
The Python-UNO bridge allows to use the standard OpenOffice.org API
from the well known Python scripting language. It can be used to
develop UNO components in python, thus python UNO components may be run
within the OpenOffice.org process and can be called from Java, C++ or
the built in StarBasic scripting language. You can create and invoke
scripts with the office scripting framework (OOo 2.0 and later) with
it. For example, it is used for the mail merge functionality.

You can find the more information at
http://udk.openoffice.org/python/python-bridge.html



%package devel
Requires:       %name = %version
Requires:       OpenOffice_org-mono = %version
Requires:       OpenOffice_org-pyuno = %version
Requires:       OpenOffice_org-bootstrap = %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 URE Development
Group:          Productivity/Office/Suite
AutoReqProv:    off

%description devel
This package allows developement based on the OpenOffice.org UNO
runtime environment API.



%prep
%setup -q -n %ooo_build_tag-%piece
mkdir -p external/cli
tar -xjf %{S:100} -C external/cli
# FIXME: create fake prj stuff to make build happy
mkdir -p external/prj
touch external/prj/build.lst
touch external/prj/d.lst

%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 || $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 -f files-mono.txt -n OpenOffice_org-mono
%defattr(-,root,root)

%files -f files-pyuno.txt -n OpenOffice_org-pyuno
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%dir %ooo_prefix/%ooo_home/solver
%ooo_prefix/%ooo_home/solver/*

%changelog
* Thu Nov 27 2008 pmladek@suse.cz
- enabled mono on PPC; added prebuilt cli dlls for PPC and older
  distributions (bnc#449047, bnc#449711)
* Fri Nov 21 2008 pmladek@suse.cz
- updated ooo-build to version 3.0.0.9
- added OpenOffice_org-mono to requires of the devel package; the devel
  package is common for all subpackages
* 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-pyuno 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
openSUSE Build Service is sponsored by