File ubuntu-mate-artwork.spec of Package ubuntu-mate-artwork
#
# spec file for package ubuntu-mate-artwork
#
# 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 _name ubuntu-mate
Name: ubuntu-mate-artwork
Version: 16.10.9
Release: 0
Summary: Ubuntu MATE themes and artwork
License: GPL-3.0+ and CC-BY-SA-4.0 and CC-BY-SA-3.0
Group: System/GUI/Other
Url: https://launchpad.net/ubuntu-mate
Source: https://launchpad.net/ubuntu/+archive/primary/+files/%{name}_%{version}.tar.xz
# PATCH-FIX-UPSTREAM themes-light-menubars.patch sor.alexei@meowr.ru -- Make light menus in Ambiance (Gtk2), dark menus are buggy in Qt4 QGtk2Style.
Patch0: themes-light-menubars.patch
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildArch: noarch
%description
This package contains Ubuntu MATE themes and artwork.
%package -n metatheme-ambiant-mate-common
Summary: Ambiant-MATE Gtk Theme -- Common Files
Group: System/GUI/Other
Recommends: %{_name}-icon-theme
Suggests: gtk2-metatheme-ambiant-mate
Suggests: gtk3-metatheme-ambiant-mate
%description -n metatheme-ambiant-mate-common
Includes an Ambiant-MATE light-on-dark theme.
Introduced as the default theme in Ubuntu MATE 15.04.
%package -n metatheme-radiant-mate-common
Summary: Radiant-MATE Gtk Theme -- Common Files
Group: System/GUI/Other
Recommends: %{_name}-icon-theme
Suggests: gtk2-metatheme-radiant-mate
Suggests: gtk3-metatheme-radiant-mate
%description -n metatheme-radiant-mate-common
Includes an Radiant-MATE dark-on-light theme.
Introduced as one of the defaults in Ubuntu MATE 15.04.
%package -n gtk2-metatheme-ambiant-mate
Summary: Ambiant-MATE Gtk Theme -- GTK+ 2 Support
Group: System/GUI/Other
Requires: gtk2-engine-murrine >= 0.90.3
Requires: metatheme-ambiant-mate-common = %{version}
Supplements: packageand(metatheme-ambiant-mate-common:gtk2)
%description -n gtk2-metatheme-ambiant-mate
Includes an Ambiant-MATE light-on-dark theme.
Introduced as the default theme in Ubuntu MATE 15.04.
%package -n gtk2-metatheme-radiant-mate
Summary: Radiant-MATE Gtk Theme -- GTK+ 2 Support
Group: System/GUI/Other
Requires: gtk2-engine-murrine >= 0.90.3
Requires: metatheme-radiant-mate-common = %{version}
Supplements: packageand(metatheme-radiant-mate-common:gtk2)
%description -n gtk2-metatheme-radiant-mate
Includes an Radiant-MATE dark-on-light theme.
Introduced as one of the defaults in Ubuntu MATE 15.04.
%package -n gtk3-metatheme-ambiant-mate
Summary: Ambiant-MATE Gtk Theme -- GTK+ 3 Support
Group: System/GUI/Other
Requires: metatheme-ambiant-mate-common = %{version}
Supplements: packageand(metatheme-ambiant-mate-common:gtk3)
%description -n gtk3-metatheme-ambiant-mate
Includes an Ambiant-MATE light-on-dark theme.
Introduced as the default theme in Ubuntu MATE 15.04.
%package -n gtk3-metatheme-radiant-mate
Summary: Radiant-MATE Gtk Theme -- GTK+ 3 Support
Group: System/GUI/Other
Requires: metatheme-radiant-mate-common = %{version}
Supplements: packageand(metatheme-radiant-mate-common:gtk3)
%description -n gtk3-metatheme-radiant-mate
Includes an Radiant-MATE dark-on-light theme.
Introduced as one of the defaults in Ubuntu MATE 15.04.
%package -n %{_name}-icon-theme
Summary: Icon themes from Ubuntu MATE
Group: System/X11/Icons
Requires: humanity-icon-theme
Requires: ubuntu-mono-icon-theme
%description -n %{_name}-icon-theme
This package contains icon themes from Ubuntu MATE.
%package -n %{_name}-wallpapers
Summary: Wallpaper and background images from Ubuntu MATE
Group: System/GUI/Other
Suggests: mate-backgrounds
%description -n %{_name}-wallpapers
The default Ubuntu MATE wallpapers for the Ubuntu MATE releases.
%prep
%setup -q -n %{name}
%patch0 -p1
# Remove unwanted: Debian package, GRUB theme, Plymouth theme, odd script, LightDM defaults.
rm -rf debian symlink.sh .%{_sysconfdir} .%{_datadir}/%{_name} .%{_datadir}/plymouth
%build
# Nothing to build.
%install
cp -a --no-preserve=mode * %{buildroot}/
rm -f %{buildroot}/COPYING
for icons in Ambiant-MATE Radiant-MATE; do
# %%icon_theme_cache_create_ghost fails to work.
touch %{buildroot}%{_datadir}/icons/$icons/icon-theme.cache
done
find %{buildroot} -type f -name "*.orig" -delete -print
%fdupes %{buildroot}/
%post -n %{_name}-icon-theme
%icon_theme_cache_post Ambiant-MATE
%icon_theme_cache_post Radiant-MATE
# No need for %%icon_theme_cache_postun in %%postun since the theme won't exist anymore.
%files -n metatheme-ambiant-mate-common
%defattr(-,root,root)
%doc COPYING
%{_datadir}/themes/Ambiant-MATE/
%exclude %{_datadir}/themes/Ambiant-MATE/gtk-?.*/
%dir %{_datadir}/gtksourceview-?.0/
%dir %{_datadir}/gtksourceview-?.0/styles/
%{_datadir}/gtksourceview-?.0/styles/Ambiant-MATE.xml
%files -n metatheme-radiant-mate-common
%defattr(-,root,root)
%doc COPYING
%{_datadir}/themes/Radiant-MATE/
%exclude %{_datadir}/themes/Radiant-MATE/gtk-?.*/
%dir %{_datadir}/gtksourceview-?.0/
%dir %{_datadir}/gtksourceview-?.0/styles/
%{_datadir}/gtksourceview-?.0/styles/Radiant-MATE.xml
%files -n gtk2-metatheme-ambiant-mate
%defattr(-,root,root)
%{_datadir}/themes/Ambiant-MATE/gtk-2.0/
%files -n gtk2-metatheme-radiant-mate
%defattr(-,root,root)
%{_datadir}/themes/Radiant-MATE/gtk-2.0/
%files -n gtk3-metatheme-ambiant-mate
%defattr(-,root,root)
%{_datadir}/themes/Ambiant-MATE/gtk-3.0/
%files -n gtk3-metatheme-radiant-mate
%defattr(-,root,root)
%{_datadir}/themes/Radiant-MATE/gtk-3.0/
%files -n %{_name}-icon-theme
%defattr (-,root,root)
%doc COPYING
%ghost %{_datadir}/icons/*/icon-theme.cache
%{_datadir}/icons/*/
%files -n %{_name}-wallpapers
%defattr(-,root,root)
%doc COPYING
%{_datadir}/backgrounds/
%{_datadir}/mate-background-properties/
%changelog