File libreoffice-artwork.spec of Package libreoffice-artwork
#
# spec file for package libreoffice-artwork
#
# Copyright (c) 2011 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: libreoffice-artwork
Version: 3.3.1.2
Release: 1.<RELEASE2>
%define piece artwork
%define ooo_build_version 3.3.1.2
%define ooo_piece_version 3.3.1.2
%define ooo_sourcedirname libreoffice-build-%ooo_piece_version
%define ooo_prefix %_libdir
%define ooo_home libreoffice
#!BuildIgnore: libreoffice
BuildRequires: libreoffice-bootstrap = %version
BuildRequires: ImageMagick ant ant-apache-regexp bison boost-devel ccache cups-devel curl-devel flac-devel flex gnome-vfs2-devel gperf gtk2-devel icu java-devel mono-devel neon-devel pam-devel perl-Archive-Zip perl-Compress-Zlib python-devel recode unixODBC-devel unzip xml-commons-apis zip
%if 0%{?suse_version}
BuildRequires: db-devel krb5 libexif openldap2-devel xorg-x11
%endif
%if 0%{?meego_version}
BuildRequires: db4-devel krb5-devel libexif-devel openldap-devel
BuildRequires: xorg-x11-server-devel
BuildRequires: xorg-x11-proto-xproto
BuildRequires: xorg-x11-utils
%endif
############################
# KDE3 stuff
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: kdelibs3-devel
%endif
License: Artistic ; BSD3c ; GPLv2+ ; LPPL .. ; LGPLv2.1+ ; LGPLv3 ; MPL .. ; MIT
Group: Productivity/Office/Suite
AutoReqProv: on
Summary: LibreOffice Atrwork Source Package
Url: http://www.documentfoundation.org/
Source0: libreoffice-%piece-%ooo_piece_version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#!ExclusiveArch: %ix86 x86_64 ppc
BuildArch: noarch
%description
This source package is used to build the LibreOffice artwork
development package.
%package devel
PreReq: libreoffice-ure = %version
Requires: libreoffice-bootstrap = %version
# compat stuff
Provides: OpenOffice_org-artwork-devel = %version
Obsoletes: OpenOffice_org-artwork-devel <= %version
License: Artistic ; BSD3c ; GPLv2+ ; LPPL .. ; LGPLv2.1+ ; LGPLv3 ; MPL .. ; MIT
Summary: LibreOffice Artwork Development
Group: Productivity/Office/Suite
AutoReqProv: off
%description devel
This package provides artwork used by the LibreOffice development.
%prep
%setup -q -n libreoffice-%piece-%ooo_piece_version
%build
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/build/bin
export VERBOSE=1
# FIXME: hack to avoid dependecy problem
$OO_TOOLSDIR/piece/build-generic %piece %ooo_sourcedirname || $OO_TOOLSDIR/piece/build-generic %piece %ooo_sourcedirname || $OO_TOOLSDIR/piece/build-generic %piece %ooo_sourcedirname
%install
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/build/bin
export DESTDIR=$RPM_BUILD_ROOT
$OO_TOOLSDIR/piece/install-generic %piece %ooo_sourcedirname
%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