File greybird-theme.spec of Package greybird-theme

#
# spec file for package greybird-theme
#
# 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 Greybird

Name:           greybird-theme
Version:        3.22.0
Release:        0
Url:            http://shimmerproject.org/project/greybird/
Summary:        A Clean Minimalistic Theme for GNOME, XFCE, GTK+ 2 and 3
License:        GPL-2.0+ or CC-BY-SA-3.0
Group:          System/GUI/GNOME
Source:         https://github.com/shimmerproject/%{_name}/archive/v%{version}/%{_name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gdk-pixbuf-devel
BuildRequires:  gdk-pixbuf-loader-rsvg
BuildRequires:  glib2-devel
BuildRequires:  rubygem(sass) >= 3.4
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This theme for GTK2/3 and xfwm4/emerald/metacity started out on the basis of
Bluebird, but aims at reworking the intense blue tone to a more neutral
grey-ish look that will be more pleasant to look at in everyday use.

%package -n metatheme-greybird-common
Summary:        A Clean Minimalistic Theme for GNOME, XFCE, GTK+ 2 and 3 -- Common Files
Group:          System/GUI/GNOME
Suggests:       gtk2-metatheme-greybird
Suggests:       gtk3-metatheme-greybird

%description -n metatheme-greybird-common
The Greybird theme for GTK2/3 and xfwm4/emerald/metacity started out on the
basis of Bluebird, but aims at reworking the intense blue tone to a more
neutral grey-ish look that will be more pleasant to look at in everyday use.

This package provides the files common to the GTK+ themes and the window
manager themes as well as background images.

%package -n gtk2-metatheme-greybird
Summary:        A Clean Minimalistic Theme for GNOME, XFCE, GTK+ 2 and 3 -- GTK+ 2 Support
Group:          System/GUI/GNOME
Requires:       gtk2-engine-murrine
Requires:       metatheme-greybird-common = %{version}
Supplements:    packageand(metatheme-greybird-common:gtk2)

%description -n gtk2-metatheme-greybird
The Greybird Theme for GTK2/3 and xfwm4/emerald/metacity started out on the
basis of Bluebird, but aims at reworking the intense blue tone to a more
neutral grey-ish look that will be more pleasant to look at in everyday use.

This package provides the GTK+ 2 support of Greybird.

%if 0%{?suse_version} >= 1210
%package -n gtk3-metatheme-greybird
Summary:        A Clean Minimalistic Theme for GNOME, XFCE, GTK+ 2 and 3 -- GTK+ 3 Support
Group:          System/GUI/GNOME
Requires:       gtk3-engine-unico
Requires:       metatheme-greybird-common = %{version}
Supplements:    packageand(metatheme-greybird-common:gtk3)

%description -n gtk3-metatheme-greybird
The Greybird Theme for GTK2/3 and xfwm4/emerald/metacity started out on the
basis of Bluebird, but aims at reworking the intense blue tone to a more
neutral grey-ish look that will be more pleasant to look at in everyday use.

This package provides the GTK+ 3 support of Greybird.

%endif

%prep
%setup -q -n %{_name}-%{version}

%build
./autogen.sh
%configure
make

%install
%makeinstall
# remove stuff that's unlikely to be used
rm -r %{buildroot}%{_datadir}/themes/%{_name}/unity
rm -r %{buildroot}%{_datadir}/themes/%{_name}/plank
rm    %{buildroot}%{_datadir}/themes/%{_name}/ubiquity-panel-bg.png
# the convulted fdupes call is necessary, else a gtk-2.0 icon will be linked to gtk-3.0
# which will not work if only one subpackage is installed.
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}/themes/%{_name}*/{[^g]*,gtk-3.0}

%files -n metatheme-greybird-common
%defattr (-, root, root)
%doc README.md LICENSE.CC LICENSE.GPL
%dir %{_datadir}/themes/%{_name}/
%{_datadir}/themes/%{_name}/metacity-1
%{_datadir}/themes/%{_name}/xfce-notify-4.0
%{_datadir}/themes/%{_name}/xfwm4
%{_datadir}/themes/%{_name}/Greybird.emerald
%{_datadir}/themes/%{_name}/index.theme
%dir %{_datadir}/themes/%{_name}-accessibility
%{_datadir}/themes/%{_name}-accessibility/xfwm4
%dir %{_datadir}/themes/%{_name}-compact
%{_datadir}/themes/%{_name}-compact/xfwm4
%dir %{_datadir}/themes/%{_name}-bright
%{_datadir}/themes/%{_name}-bright/xfce-notify-4.0

%files -n gtk2-metatheme-greybird
%defattr (-, root, root)
%{_datadir}/themes/%{_name}/gtk-2.0

%if 0%{?suse_version} >= 1210
%files -n gtk3-metatheme-greybird
%defattr (-, root, root)
%{_datadir}/themes/%{_name}/gtk-3.0
%endif

%changelog
openSUSE Build Service is sponsored by