File numix-gtk-theme.spec of Package numix-gtk-theme
#
# spec file for package numix-gtk-theme
#
# Copyright (c) 2015 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 _theme Numix
%define _name numix
Name: numix-gtk-theme
Version: 2.5.1
Release: 0
Summary: Numix GTK+ theme for MATE, GNOME, and Xfce
License: GPL-3.0+
Group: System/GUI/Other
Url: https://numixproject.org/
Source: https://github.com/shimmerproject/%{_theme}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildArch: noarch
%description
Numix is a modern flat theme with a combination of light and dark
elements. It supports MATE, GNOME, Xfce, and Openbox.
%package -n metatheme-%{_name}-common
Summary: Numix Common Theme Files
Group: System/GUI/Other
Suggests: gtk2-metatheme-%{_name} = %{version}
Suggests: gtk3-metatheme-%{_name} = %{version}
%description -n metatheme-%{_name}-common
Numix is a modern flat theme with a combination of light and dark
elements. It supports MATE, GNOME, Xfce, and Openbox.
This package contains common files and themes for Marco, Openbox,
and Xfwm4.
%package -n gtk2-metatheme-%{_name}
Summary: Numix GTK+2 Theme
Group: System/GUI/Other
Requires: gtk2-engine-murrine >= 0.98.1.1
Requires: metatheme-%{_name}-common = %{version}
Supplements: packageand(metatheme-%{_name}-common:gtk2)
%description -n gtk2-metatheme-%{_name}
Numix is a modern flat theme with a combination of light and dark
elements. It supports MATE, GNOME, Xfce, and Openbox.
This package contains the GTK+2 theme.
%package -n gtk3-metatheme-%{_name}
Summary: Numix GTK+3 Theme
Group: System/GUI/Other
Requires: gtk3 >= 3.6.0
Requires: metatheme-%{_name}-common = %{version}
Supplements: packageand(metatheme-%{_name}-common:gtk3)
%description -n gtk3-metatheme-%{_name}
Numix is a modern flat theme with a combination of light and dark
elements. It supports MATE, GNOME, Xfce, and Openbox.
This package contains the GTK+3 theme.
%prep
%setup -q -n %{_theme}-%{version}
%build
# Nothing to build.
%install
install -Dm 0644 index.theme %{buildroot}%{_datadir}/themes/%{_theme}/index.theme
mkdir -p %{buildroot}%{_datadir}/themes/%{_theme}/
ls -d */ | while read dir; do
cp -r --no-preserve=mode "$dir" "%{buildroot}%{_datadir}/themes/%{_theme}/$dir"
done
%fdupes %{buildroot}%{_datadir}
%files -n metatheme-%{_name}-common
%defattr(-,root,root)
%doc CREDITS LICENSE README.md
%dir %{_datadir}/themes/%{_theme}/
%{_datadir}/themes/%{_theme}/metacity-1/
%{_datadir}/themes/%{_theme}/openbox-3/
%{_datadir}/themes/%{_theme}/unity/
%{_datadir}/themes/%{_theme}/xfce-notify-4.0/
%{_datadir}/themes/%{_theme}/xfwm4/
%{_datadir}/themes/%{_theme}/index.theme
%files -n gtk2-metatheme-%{_name}
%defattr(-,root,root)
%doc CREDITS LICENSE README.md
%{_datadir}/themes/%{_theme}/gtk-2.0/
%files -n gtk3-metatheme-%{_name}
%defattr(-,root,root)
%doc CREDITS LICENSE README.md
%{_datadir}/themes/%{_theme}/gtk-3.0/
%changelog