File libreoffice-branding-upstream.spec of Package libreoffice-branding-upstream
#
# spec file for package libreoffice-branding-upstream
#
# 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-upstream
Version:        3.3.1.2
Release:        1.<RELEASE2>
%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_home          libreoffice
%define         ooo_basis_dir     basis3.3
#!BuildIgnore:  libreoffice
BuildRequires:  libreoffice-bootstrap >= 3.2.0.99.3
BuildRequires:  libreoffice-artwork-devel >= 3.2.0.99.3
License:        LGPLv3
Group:          Productivity/Office/Suite
Summary:        Original Branding for LibreOffice
AutoReqProv:    on
Provides:       libreoffice-branding = %{version}
# compat stuff
Provides:       OpenOffice_org-branding = %{version}
Obsoletes:      OpenOffice_org-branding <= %{version}
Provides:       OpenOffice_org-branding-upstream = %{version}
Obsoletes:      OpenOffice_org-branding-upstream <= %{version}
Conflicts:      otherproviders(libreoffice-branding)
%if 0%{?suse_version}
Supplements:    packageand(branding-upstream:libreoffice)
%endif
Url:            http://www.documentfoundation.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#!ExclusiveArch:  %ix86 x86_64 ppc
BuildArch:      noarch
#BRAND: source: %ooo_sourcedirname-core.tar.bz2:%ooo_sourcedirname/default_images/brand/intro.png
#BRAND: type:   PNG image data, 440 x 286, 8-bit/color RGB, non-interlaced
#BRAND: purpose: "splash" image displayed for a short time, when the application is launching
#BRAND: text: should mention the app name "LibreOffice"
#BRAND: context: no border is being displayed around the splash windows
#BRAND:          the picture is overlapped by the progress bar: x,y=212,216; w,h=263,8
#BRAND:          the default progress bar color is 0,0,128 (blue)
#BRAND:          the progress bar has 1 pixel width white border
#
#BRAND: source: %ooo_sourcedirname-core.tar.bz2:%ooo_sourcedirname/default_images/brand/intro-pt_BR.png
#BRAND: text:   should mention the app name "BrOffice"
#BRAND: context: LibreOffice is known in Brazil as BrOffice => this is the same as
#BRAND:          intro.png; we just need to replace "LibreOffice" with "BrOffice"
#
#BRAND: source: %ooo_sourcedirname-core.tar.bz2:%ooo_sourcedirname/default_images/brand/about.png
#BRAND: type:   PNG image data, 415 x 95, 8-bit/color RGB, non-interlaced
#BRAND: purpose: displayed on top of the Help/About LibreOffice dialog
#BRAND: text:   should mention the app name "LibreOffice"
#BRAND: context: there are displayed several lines of some text below the picture
#BRAND:          the text is black on a white background
#
#BRAND: source: %ooo_sourcedirname-core.tar.bz2:%ooo_sourcedirname/default_images/brand/about-pt_BR.png
#BRAND: text:   should mention the app name "BrOffice"
#BRAND: context: LibreOffice is known in Brazil as BrOffice => this is the same as
#BRAND:          intro.png; we just need to replace "LibreOffice" with "BrOffice"
#
#BRAND: source: %ooo_sourcedirname-bootstrap.tar.bz2:src/sofficerc-upstream
#BRAND: type:   text config file (ini-files-like)
#BRAND: purpose: defines the position, size and, color of the status bar
%description
This package includes the original branding for the LibreOffice
office suite.
%prep
%build
%install
install -m 755 -d $RPM_BUILD_ROOT%_datadir/%ooo_home/program/shell
install -m 644 %_datadir/%ooo_home/build/src/sofficerc-upstream \
    $RPM_BUILD_ROOT%_datadir/%ooo_home/program/sofficerc
# splash, about dialog
for file in intro.png intro-pt_BR.png about.png about-pt_BR.png ; do
    install -m 644 %_datadir/%ooo_home/solver/default_images/brand/$file \
        $RPM_BUILD_ROOT%_datadir/%ooo_home/program
done
# welcome screen
for file in backing_left.png backing_left-pt_BR.png backing_right.png \
            backing_right-pt_BR.png backing_rtl_left.png \
            backing_rtl_right.png backing_space.png ; do
    install -m 644 %_datadir/%ooo_home/solver/default_images/brand/shell/$file \
        $RPM_BUILD_ROOT%_datadir/%ooo_home/program/shell
done
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%_datadir/%ooo_home
%changelog