File cinnamon-branding-openSUSE.spec of Package cinnamon-branding-openSUSE
#
# spec file for package cinnamon-branding-openSUSE
#
# 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 mint_artwork_ver 5.2
%define cinnamon_version %(rpm -q --queryformat '%%{VERSION}' cinnamon)
Name: cinnamon-branding-openSUSE
Version: 42.2
Release: 0
Summary: openSUSE Branding of the Cinnamon Desktop Environment
License: GPL-3.0+
Group: System/GUI/Other
Url: https://en.opensuse.org/Portal:Cinnamon
Source1: cinnamon-branding.gschema.override.in
Source2: http://packages.linuxmint.com/pool/main/m/mint-artwork-cinnamon/mint-artwork-cinnamon_%{mint_artwork_ver}.tar.gz
BuildRequires: cinnamon-branding-upstream
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme-branding-openSUSE
BuildRequires: pkgconfig
BuildRequires: wallpaper-branding-openSUSE
BuildRequires: pkgconfig(glib-2.0)
Requires: adwaita-icon-theme
Requires: cinnamon = %{cinnamon_version}
Requires: cinnamon-themes
Requires: libgnomesu
Requires: mate-themes
Requires: wallpaper-branding-openSUSE
Supplements: packageand(cinnamon:branding-openSUSE)
Conflicts: otherproviders(cinnamon-branding)
Provides: cinnamon-branding = %{cinnamon_version}
BuildArch: noarch
%glib2_gsettings_schema_requires
%description
This package provides the openSUSE look and feel for the Cinnamon
desktop environment.
%prep
%setup -q -c -T
cp -f %{SOURCE1} cinnamon-branding.gschema.override.in
%setup -q -T -D -a 2
%build
[ -f %{_datadir}/wallpapers/openSUSE-default.xml ]
sed -e 's|@@WALLPAPER_URI@@|%{_datadir}/wallpapers/openSUSE-default.xml|' \
cinnamon-branding.gschema.override.in > cinnamon-branding.gschema.override
%install
install -Dpm 0644 cinnamon-branding.gschema.override \
%{buildroot}%{_datadir}/glib-2.0/schemas/cinnamon-branding.gschema.override
install -Dpm 0644 %{_datadir}/icons/hicolor/scalable/apps/distributor.svg \
%{buildroot}%{_datadir}/cinnamon/theme/menu.svg
mkdir -p %{buildroot}%{_datadir}/sounds/cinnamon/opensuse/
install -pm 0644 \
mint-artwork-cinnamon-%{mint_artwork_ver}%{_datadir}/mint-artwork-cinnamon/sounds/* \
%{buildroot}%{_datadir}/sounds/cinnamon/opensuse/
%fdupes %{buildroot}%{_datadir}/
%post
%glib2_gsettings_schema_post
%postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%{_datadir}/glib-2.0/schemas/cinnamon-branding.gschema.override
%{_datadir}/cinnamon/theme/menu.svg
%dir %{_datadir}/sounds/cinnamon/
%{_datadir}/sounds/cinnamon/opensuse/
%changelog