File libreoffice-branding-openSUSE.spec of Package libreoffice-branding-openSUSE
#
# spec file for package libreoffice-branding-openSUSE
#
# 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-branding-openSUSE
%define lo_prefix %_datadir
%define lo_home libreoffice
%if %suse_version <= 1100
%define branding_source openSUSE-11.3
%endif
%if %suse_version > 1100 && %suse_version <= 1110
%define branding_source openSUSE-11.3
%endif
%if %suse_version > 1110 && %suse_version <= 1120
%define branding_source openSUSE-11.3
%endif
%if %suse_version > 1120 && %suse_version <= 1130
%define branding_source openSUSE-11.3
%endif
%if %suse_version > 1130
%define branding_source openSUSE-11.4
%endif
Version: 3.3.1
Release: 1.<RELEASE2>
Group: Productivity/Office/Suite
License: BSD3c
Summary: openSUSE Branding for LibreOffice
Supplements: packageand(branding-openSUSE:libreoffice)
Provides: libreoffice-branding = %version
Conflicts: otherproviders(libreoffice-branding)
# compat stuff
Provides: OpenOffice_org-branding-openSUSE = %version
Obsoletes: OpenOffice_org-branding-openSUSE <= %version
Provides: OpenOffice_org-branding = %version
# sources
Source0: libreoffice-branding-openSUSE-11.3.tar.bz2
Source1: libreoffice-branding-openSUSE-11.4.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package includes the openSUSE branding for LibreOffice
office suite.
%prep
%setup -q -T -c %{name}-%{version}
# unpack the right branding
tar -xjf $RPM_SOURCE_DIR/libreoffice-branding-%{branding_source}.tar.bz2
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT%lo_prefix/%lo_home/
cp -r program $RPM_BUILD_ROOT%lo_prefix/%lo_home/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc COPYING
%lo_prefix/%lo_home
%changelog