File OpenOffice_org-artwork.spec of Package OpenOffice_org-artwork
#
# spec file for package OpenOffice_org-artwork (Version 3.1.1.4)
#
# Copyright (c) 2009 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-artwork
Version: 3.1.1.4
Release: 1.<RELEASE1>
%define ooo_build_version 3.1.1.4
%define piece artwork
#!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 ooo310-m19
License: Artistic License .. ; BSD 3-clause (or similar) ; GPL v2 or later ; LPPL .. ; LGPL v2.1 or later ; LGPL v3 only ; MPL .. ; MIT License (or similar)
Group: Productivity/Office/Suite
AutoReqProv: on
Summary: OpenOffice.org Atrwork Source Package
Url: http://www.openoffice.org/
Source0: %ooo_build_tag-%piece.tar.bz2
# Oxygen icon them for KDE4
Source1: ooo_oxygen_images-2009-06-17.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#!ExclusiveArch: %ix86 x86_64 ppc
BuildArch: noarch
%description
This source package is used to build the OpenOffice.org artwork
development package.
%package devel
PreReq: OpenOffice_org-ure = %version
Requires: OpenOffice_org-bootstrap = %version
License: Artistic License .. ; BSD 3-clause (or similar) ; GPL v2 or later ; LPPL .. ; LGPL v2.1 or later ; LGPL v3 only ; MPL .. ; MIT License (or similar)
Summary: OpenOffice.org Artwork Development
Group: Productivity/Office/Suite
AutoReqProv: off
%description devel
This package provides artwork used by the OpenOffice.org development.
%prep
%setup -q -n %ooo_build_tag-%piece
cp %{S:1} external_images/ooo_oxygen_images.tar.gz
%build
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/ooo-build/bin
export VERBOSE=1
$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
# devel
%posttrans devel
%_datadir/%ooo_home/link-to-ooo-home %_datadir/%ooo_home/files-%piece-devel.txt || true
%preun devel
test "$1" = "0" && cp %_datadir/%ooo_home/files-%piece-devel.txt %_datadir/%ooo_home/files-%piece-devel.txt.postun || true
%postun devel
test "$1" = "0" && %_datadir/%ooo_home/link-to-ooo-home --unlink %_datadir/%ooo_home/files-%piece-devel.txt.postun || true
rm -f %_datadir/%ooo_home/files-%piece-devel.txt.postun 2>/dev/null
# FIXME - should have the actual files in the main package ! ;-)
# except we have ~none here - just a devel package (?)
# is there anything we absolutely need here ?
%files -f files-%piece-devel.txt devel
%defattr(-,root,root)
%changelog