LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libreoffice-branding-upstream.spec of Package libreoffice (Project LibreOffice:Unstable)

# spec file for package libreoffice-branding-upstream
# Copyright (c) 2012 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/

Name:           libreoffice-branding-upstream
Release:        0
%define         lo_home          libreoffice
Summary:        Original Branding for LibreOffice
License:        LGPL-3.0
Group:          Productivity/Office/Suite
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)
Url:            http://www.documentfoundation.org/
Source0:        libreoffice-core-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#!ExclusiveArch:  %ix86 x86_64 ppc
BuildArch:      noarch
#BRAND: source: libreoffice-core.tar.bz2:libreoffice-core/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: libreoffice-core.tar.bz2:libreoffice-core/default_images/brand/shell/about.svg
#BRAND: type:   SVG image data, 486 x 322
#BRAND: purpose: background for the the Help/About LibreOffice dialog
#BRAND: text:   no space for text; all text is written by the application
#BRAND:          on top if this background
#BRAND: context: the application name and vendo is written on top of the dialog;
#BRAND:          product description and license text is in the middle;
#BRAND:          there are few buttons on the bottom of the dialog
#BRAND:          the text is black on a white background
#BRAND: source: libreoffice-core.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

This package includes the original branding for the LibreOffice
office suite.

%setup -q -n libreoffice-core-%version


install -m 755 -d $RPM_BUILD_ROOT%_datadir/%lo_home/program/shell
# sofficerc
install -m 644 $RPM_SOURCE_DIR/sofficerc-upstream \
# pictures
for pict in intro.png \
            flat_logo.svg \
            shell/about.svg \
            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 icon-themes/galaxy/brand/$pict \