File arc-theme.spec of Package arc-theme

#
# spec file for package arc-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 _description_common Arc is a flat theme with transparent elements. \
 \
This package provides the files common to the GTK+ themes and the window \
manager themes as well as background images.
%define _description_gtk2 Arc is a flat theme with transparent elements. \
 \
This package provides the GTK+ 2 support of Arc
%define _description_gtk3 Arc is a flat theme with transparent elements. \
 \
This package provides the GTK+ 3 support of Arc
%define  _name  Arc
Name:           arc-theme
Version:        20160605
Release:        0
License:        GPL-3.0
Summary:        The Arc GTK theme
Url:            https://github.com/horst3180/arc-theme
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.xz
BuildRequires:  automake
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Arc is a flat theme with transparent elements for GTK 3, GTK 2 and Gnome-Shell
which supports GTK 3 and GTK 2 based desktop environments like Gnome, Unity,
Budgie, Pantheon, XFCE, Mate, etc.

%package -n metatheme-arc-common
Summary:        The arc GTK Theme -- Common Files
Group:          System/GUI/GNOME
Suggests:       gtk2-metatheme-arc
Suggests:       gtk3-metatheme-arc

%description -n metatheme-arc-common
%{_description_common}

%package -n gtk2-metatheme-arc
Summary:        The arc GTK Theme -- GTK+ 2 Support
Group:          System/GUI/GNOME
Requires:       gtk2-engine-murrine
Requires:       metatheme-arc-common = %{version}
Supplements:    packageand(metatheme-arc-common:gtk2)

%description -n gtk2-metatheme-arc
%{_description_gtk2}

%package -n gtk3-metatheme-arc
Summary:        The arc GTK Theme -- GTK+ 3 Support
Group:          System/GUI/GNOME
Requires:       gtk3-engine-unico
Requires:       metatheme-arc-common = %{version}
Supplements:    packageand(metatheme-arc-common:gtk3)

%description -n gtk3-metatheme-arc
%{_description_gtk3}

%package -n metatheme-arc-dark-common
Summary:        The arc GTK Theme -- Common Files
Group:          System/GUI/GNOME
Suggests:       gtk2-metatheme-arc-dark
Suggests:       gtk3-metatheme-arc-dark

%description -n metatheme-arc-dark-common
%{_description_common}

%package -n gtk2-metatheme-arc-dark
Summary:        The arc GTK Theme -- GTK+ 2 Support
Group:          System/GUI/GNOME
Requires:       gtk2-engine-murrine
Requires:       metatheme-arc-dark-common = %{version}
Supplements:    packageand(metatheme-arc-dark-common:gtk2)

%description -n gtk2-metatheme-arc-dark
%{_description_gtk2}

%package -n gtk3-metatheme-arc-dark
Summary:        The arc GTK Theme -- GTK+ 3 Support
Group:          System/GUI/GNOME
Requires:       gtk3-engine-unico
Requires:       metatheme-arc-dark-common = %{version}
Supplements:    packageand(metatheme-arc-dark-common:gtk3)

%description -n gtk3-metatheme-arc-dark
%{_description_gtk3}

%package -n metatheme-arc-darker-common
Summary:        The arc GTK Theme -- Common Files
Group:          System/GUI/GNOME
Suggests:       gtk2-metatheme-arc-darker
Suggests:       gtk3-metatheme-arc-darker

%description -n metatheme-arc-darker-common
%{_description_common}

%package -n gtk2-metatheme-arc-darker
Summary:        The arc GTK Theme -- GTK+ 2 Support
Group:          System/GUI/GNOME
Requires:       gtk2-engine-murrine
Requires:       metatheme-arc-darker-common = %{version}
Supplements:    packageand(metatheme-arc-darker-common:gtk2)

%description -n gtk2-metatheme-arc-darker
%{_description_gtk2}

%package -n gtk3-metatheme-arc-darker
Summary:        The arc GTK Theme -- GTK+ 3 Support
Group:          System/GUI/GNOME
Requires:       gtk3-engine-unico
Requires:       metatheme-arc-darker-common = %{version}
Supplements:    packageand(metatheme-arc-darker-common:gtk3)

%description -n gtk3-metatheme-arc-darker
%{_description_gtk3}

%prep
%setup -q

%build
./autogen.sh --prefix=%{_prefix}
make %{?_smp_mflags} 

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}/gtk-2.0
%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}/gtk-3.*
%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}

%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}-Dark/gtk-2.0
%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}-Dark/gtk-3.*
%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}-Dark

%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}-Darker/gtk-2.0
%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}-Darker/gtk-3.*
%fdupes -s %{buildroot}%{_datadir}/themes/%{_name}-Darker

%files -n metatheme-arc-common
%defattr(-,root,root)
%doc AUTHORS COPYING HACKING.md README.md
%dir %{_datadir}/themes/%{_name}/
%{_datadir}/themes/%{_name}/cinnamon
%{_datadir}/themes/%{_name}/gnome-shell
%{_datadir}/themes/%{_name}/index.theme
%{_datadir}/themes/%{_name}/metacity-1
%{_datadir}/themes/%{_name}/unity
%{_datadir}/themes/%{_name}/xfwm4

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

%files -n gtk3-metatheme-arc
%defattr(-,root,root)
%{_datadir}/themes/%{_name}/gtk-3.*

%files -n metatheme-arc-dark-common
%defattr(-,root,root)
%doc AUTHORS COPYING HACKING.md README.md
%dir %{_datadir}/themes/%{_name}-Dark/
%{_datadir}/themes/%{_name}-Dark/cinnamon
%{_datadir}/themes/%{_name}-Dark/gnome-shell
%{_datadir}/themes/%{_name}-Dark/index.theme
%{_datadir}/themes/%{_name}-Dark/metacity-1
%{_datadir}/themes/%{_name}-Dark/unity
%{_datadir}/themes/%{_name}-Dark/xfwm4

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

%files -n gtk3-metatheme-arc-dark
%defattr(-,root,root)
%{_datadir}/themes/%{_name}-Dark/gtk-3.*

%files -n metatheme-arc-darker-common
%defattr(-,root,root)
%doc AUTHORS COPYING HACKING.md README.md
%dir %{_datadir}/themes/%{_name}-Darker/
#{_datadir}/themes/5{_name}-Darker/cinnamon
#{_datadir}/themes/5{_name}-Darker/gnome-shell
%{_datadir}/themes/%{_name}-Darker/index.theme
%{_datadir}/themes/%{_name}-Darker/metacity-1
%{_datadir}/themes/%{_name}-Darker/unity
%{_datadir}/themes/%{_name}-Darker/xfwm4

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

%files -n gtk3-metatheme-arc-darker
%defattr(-,root,root)
%{_datadir}/themes/%{_name}-Darker/gtk-3.*

%changelog
openSUSE Build Service is sponsored by