LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File glib2-branding-openSUSE.spec of Package glib2-branding-openSUSE (Project GNOME:Factory)

# spec file for package glib2-branding.spec
# Copyright (c) 2016 SUSE LINUX 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/

%define         build_openSUSE 1
%define         build_SLE 0
%define gio_real_package %(rpm -q --qf '%%{name}' --whatprovides gio)
%define gio_version %(rpm -q --qf '%%{version}' %{gio_real_package})
# Do not edit this auto generated file! Edit glib2-branding.spec.in.
Name:           glib2-branding-openSUSE
Release:        0
Summary:        General-Purpose Utility Library -- openSUSE default configuration
License:        BSD-3-Clause
Group:          System/GUI/GNOME
Url:            http://www.gtk.org/
Source:         glib2-branding-gnome_defaults.conf
Source1:        glib2-branding-COPYING
Source2:        glib2-branding.gschema.override.in
# We need glib2-branding-upstream else, the call to SuSEconfig.glib2 fails
BuildRequires:  glib2-branding-upstream
BuildRequires:  glib2-devel
BuildRequires:  wallpaper-branding-openSUSE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%if %{build_openSUSE}
Version:        42.1
Version:        15
%if (%{build_SLE} && 0%{?is_opensuse}) || (%{build_openSUSE} && ! 0%{?is_opensuse})
# Don't build SLE branding on openSUSE and vice-versa
ExclusiveArch:  %{nil}

This package provides openSUSE defaults for settings stored with
GSettings and applications used by the MIME system.

%package -n gio-branding-openSUSE
Summary:        openSUSE definitions of default settings and applications
Group:          System/GUI/GNOME
Requires:       %{gio_real_package} = %{gio_version}
# For wallpaper
Recommends:     wallpaper-branding-openSUSE
Supplements:    packageand(%{gio_real_package}:branding-openSUSE)
Conflicts:      otherproviders(gio-branding)
Provides:       glib2-branding-openSUSE = %{version}
Obsoletes:      glib2-branding-openSUSE < %{version}
Provides:       gio-branding = %{gio_version}
%if %{build_openSUSE}
Recommends:     sound-theme-freedesktop
%if %{build_SLE}
# Obsolete SLE11 packages to resolve file conflicts on sle11->sle12 upgrade
Obsoletes:      glib2-branding-SLED
Obsoletes:      glib2-branding-SLES

%description -n gio-branding-openSUSE
This package provides openSUSE defaults for settings stored with
GSettings and applications used by the MIME system.

%setup -q -T -c %{name}-%{version}
cp -a %{SOURCE0} gnome_defaults.conf
cp -a %{SOURCE2} glib2-branding.gschema.override.in

test -f %{_datadir}/wallpapers/openSUSE-default.xml
sed "s,@@WALLPAPER_URI@@,file://%{_datadir}/wallpapers/openSUSE-default.xml," glib2-branding.gschema.override.in > glib2-branding.gschema.override
#for sound theme
%if %{build_openSUSE}
sed "s:@@IF_openSUSE@@::g" < glib2-branding.gschema.override | \
%if 0%{?sle_version}
    sed "s:@@IF_LEAP@@::g" | \
    grep -v ^@@IF_ > openSUSE-branding.gschema.override
%if %{build_SLE}
sed "s:@@IF_SLE@@::g" < glib2-branding.gschema.override | grep -v ^@@IF_ > openSUSE-branding.gschema.override

install -d %{buildroot}%{_sysconfdir}
install -m0644 gnome_defaults.conf %{buildroot}%{_sysconfdir}/
install -d %{buildroot}%{_datadir}/glib-2.0/schemas
install -m0644 openSUSE-branding.gschema.override %{buildroot}%{_datadir}/glib-2.0/schemas/

%files -n gio-branding-openSUSE
%defattr (-, root, root)
%config (noreplace) %{_sysconfdir}/gnome_defaults.conf