libreoffice/libreoffice-branding-upstream.spec

114 lines
4.5 KiB
RPMSpec

#
# 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.4.2.5
Release: 1
%define lo_build_version 3.4.2.5
%define lo_piece_version 3.4.2.5
%define lo_sourcedirname libreoffice-build-%lo_piece_version
%define lo_home libreoffice
%define lo_basis_dir basis3.4
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/
Source0: libreoffice-artwork-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#!ExclusiveArch: %ix86 x86_64 ppc
BuildArch: noarch
#BRAND: source: %lo_sourcedirname-core.tar.bz2:%lo_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: %lo_sourcedirname-core.tar.bz2:%lo_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: %lo_sourcedirname-core.tar.bz2:%lo_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: %lo_sourcedirname-core.tar.bz2:%lo_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: %lo_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
%setup -q -n libreoffice-artwork-%version
%build
%install
install -m 755 -d $RPM_BUILD_ROOT%_datadir/%lo_home/program/shell
# sofficerc
install -m 644 $RPM_SOURCE_DIR/sofficerc-upstream \
$RPM_BUILD_ROOT%_datadir/%lo_home/program/sofficerc
# pictures
for pict in about.png \
intro.png \
shell/backing_left.png \
shell/backing_right.png \
shell/backing_rtl_left.png \
shell/backing_rtl_right.png \
shell/backing_space.png ; do
install -m 644 default_images/brand/$pict \
$RPM_BUILD_ROOT%_datadir/%lo_home/program/$pict
done
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%_datadir/%lo_home
%changelog