File mate-themes.spec of Package mate-themes
#
# spec file for package mate-themes
#
# 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/
#
# TODO: Split up packages into individual themes.
# mate-themes is released in different editions for different Gtk3 versions.
# Let's use Gtk 3.16 version for openSUSE Leap and Tumbleweed.
%define _gtk_ver 3.16
%define _version 1.10
Name: mate-themes
Version: 1.10.5
Release: 0
Summary: Themes for the MATE desktop
License: LGPL-2.1+
Group: System/GUI/Other
Url: http://mate-desktop.org/
Source0: http://pub.mate-desktop.org/releases/%{_version}/%{name}-gtk%{_gtk_ver}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: icon-naming-utils
BuildRequires: intltool
BuildRequires: mate-common
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtk-engines-2)
Requires: gtk2-engine-clearlooks
Requires: gtk2-engine-hcengine
Requires: gtk2-engine-murrine
Requires: libpixmap.so
Recommends: %{name}-lang
BuildArch: noarch
%description
Official themes for the MATE desktop
This package contains the official desktop themes of the MATE
desktop environment.
%lang_package
%prep
%setup -q -n %{name}-gtk%{_gtk_ver}-%{version}
%build
%configure --enable-all-themes
make %{?_smp_mflags}
%install
%make_install
%icon_theme_cache_create_ghost ContrastHigh
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%post
%icon_theme_cache_post ContrastHigh
%postun
%icon_theme_cache_postun ContrastHigh
%files
%defattr(-,root,root)
%doc README COPYING NEWS
# GTK+ themes.
%{_datadir}/themes/BlackMATE/
%{_datadir}/themes/BlueMenta/
%{_datadir}/themes/Blue-Submarine/
%{_datadir}/themes/ContrastHigh/
%{_datadir}/themes/ContrastHighInverse/
%{_datadir}/themes/GreenLaguna/
%{_datadir}/themes/Green-Submarine/
%{_datadir}/themes/Menta/
%{_datadir}/themes/Shiny/
%{_datadir}/themes/TraditionalOk/
%{_datadir}/themes/TraditionalOkTest/
%{_datadir}/themes/TraditionalGreen/
# Icon sets.
%{_datadir}/icons/ContrastHigh/
%ghost %{_datadir}/icons/ContrastHigh/icon-theme.cache
# Pointer themes.
%dir %{_datadir}/icons/mate/
%{_datadir}/icons/mate/cursors/
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog