File icewm-theme-branding.spec of Package icewm-theme-branding.15484

# spec file for package icewm-theme-branding
# Copyright (c) 2020 SUSE LLC
# 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

%define _name   icewm-config-openSUSE
%define icewm_version 1.4.2

%define flavor @BUILD_FLAVOR@
%if "%{flavor}" == ""
ExclusiveArch:  %{nil}
%define branding_name %{flavor}
%if "%{flavor}" == "SLE"
%define build_SLE 1
%define build_openSUSE 1

%if (0%{?build_SLE} && 0%{?is_opensuse}) || (0%{?build_openSUSE} && ! 0%{?is_opensuse})
# Don't build SLE branding on openSUSE and vice-versa
ExclusiveArch:  %{nil}

Name:           icewm-theme-branding
Version:        1.2.4
Release:        0
Summary:        Icewm theme branding for SLES or openSUSE Leap
License:        LGPL-2.1-or-later AND GPL-3.0-or-later
Group:          System/GUI/Other
# PATCH-FIX-UPSTREAM add-adwaita-legacy-iconpath-to-preference.patch bsc#1157930 gh#openSUSE/icewm-config-openSUSE!8 -- Add the adwaita legacy path to the IconPath 
Patch0:         add-adwaita-legacy-iconpath-to-preference.patch
Requires:       icewm
Conflicts:      icewm < 1.3.11
Conflicts:      otherproviders(icewm-configuration-files)
Obsoletes:      icewm-config-upstream     < %{icewm_version}
Provides:       icewm-configuration-files = %{icewm_version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This package is made for SLE or openSUSE customization of icewm, including
the system default theme,background etc.

%setup -q -n %{_name}-%{_name}-%{version}
%patch0 -p1

%if 0%{?build_openSUSE}
sed -i -e 's:SLEdefault:openSUSEdefault:g' preferences

make DESTDIR=%{buildroot} prefix=%{_prefix} install
# move preferences to prefoverride to take preference over themes
mv %{buildroot}/%{_sysconfdir}/icewm/preferences \

%dir %{_sysconfdir}/icewm
%config %{_sysconfdir}/icewm/keys
%config %{_sysconfdir}/icewm/menu
%config %{_sysconfdir}/icewm/prefoverride
%config %{_sysconfdir}/icewm/startup
%config %{_sysconfdir}/icewm/theme
%config %{_sysconfdir}/icewm/toolbar
%config %{_sysconfdir}/icewm/winoptions
%dir %{_datadir}/icewm/
%dir %{_datadir}/icewm/themes/
%dir %{_datadir}/icewm/themes/zpaker/

openSUSE Build Service is sponsored by