File clearlooks-phenix-theme.spec of Package clearlooks-phenix-theme
#
# spec file for package clearlooks-phenix-theme
#
# Copyright (c) 2018 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 _name clearlooks-phenix
Name: clearlooks-phenix-theme
Version: 7.0.1
Release: 0
Summary: Clearlooks Phenix Theme
License: GPL-3.0-or-later
Group: System/GUI/Other
URL: https://github.com/jpfleury/clearlooks-phenix
Source0: https://github.com/jpfleury/%{_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM clearlooks-phenix-theme-remove_errors_gtk+3.20+.patch https://github.com/jpfleury/clearlooks-phenix/pull/43 -- remove errors for GTK+ 3.20+
Patch0: clearlooks-phenix-theme-remove_errors_gtk+3.20+.patch
BuildRequires: fdupes
BuildArch: noarch
%description
Clearlooks Phenix is a meta-theme that resembles the look of the GNOME
Clearlooks theme.
%package -n gtk2-metatheme-%{_name}
Summary: Clearlooks Phenix GTK+2 Theme
Group: System/GUI/Other
Requires: gtk2-engine-clearlooks
Requires: metatheme-%{_name}-common = %{version}
%description -n gtk2-metatheme-%{_name}
Clearlooks Phenix is a meta-theme that resembles the look of the GNOME
Clearlooks theme. This package contains the GTK+2 theme.
%package -n gtk3-metatheme-%{_name}
Summary: Clearlooks Phenix GTK+3 Theme
Group: System/GUI/Other
Requires: metatheme-%{_name}-common = %{version}
%description -n gtk3-metatheme-%{_name}
Clearlooks Phenix is a meta-theme that resembles the look of the GNOME
Clearlooks theme. This package contains the GTK+3 theme.
%package -n metatheme-%{_name}-common
Summary: Clearlooks Phenix Common Theme Files
Group: System/GUI/Other
%description -n metatheme-%{_name}-common
Clearlooks Phenix is a meta-theme that resembles the look of the GNOME
Clearlooks theme. This package contains common files and themes for Marco,
Openbox, and Xfwm4.
%prep
%autosetup -p1 -n %{_name}-%{version}
%build
# Nothing to build.
%install
theme_path=%{buildroot}%{_datadir}/themes/Clearlooks-Phenix/
mkdir -p $theme_path
cp -a gtk-* metacity-* openbox-* xfwm4 wallpapers index.theme $theme_path
%fdupes %{buildroot}%{_datadir}/themes/
%files -n gtk2-metatheme-%{_name}
%license COPYING
%doc README.md
%{_datadir}/themes/Clearlooks-Phenix/gtk-2.0/
%files -n gtk3-metatheme-%{_name}
%license COPYING
%doc README.md
%{_datadir}/themes/Clearlooks-Phenix/gtk-3.0/
%files -n metatheme-%{_name}-common
%license COPYING
%doc README.md
%dir %{_datadir}/themes/Clearlooks-Phenix/
%{_datadir}/themes/Clearlooks-Phenix/metacity-1/
%{_datadir}/themes/Clearlooks-Phenix/openbox-3/
%{_datadir}/themes/Clearlooks-Phenix/wallpapers/
%{_datadir}/themes/Clearlooks-Phenix/xfwm4/
%{_datadir}/themes/Clearlooks-Phenix/index.theme
%changelog