%global commit 78f3d922041a56b5ad2b5fa45ea5c4989d3ea856 %global githash %(c=%{commit}; echo ${c:0:7}) %global gitdate 20170629 %global gittime 1840 %global pkgname Android Name: android-gtk-theme Version: R1 Release: 3.%{gitdate}%{gittime}git%{githash}%{?dist} Summary: Themes for GTK+2, GTK+3, Metacity, GNOME Shell and Xfwm4 Group: User Interface/Desktops License: GPLv3 URL: https://github.com/B00merang-Project/Android Source: https://github.com/B00merang-Project/Android/archive/%{commit}/%{pkgname}-%{version}-%{githash}.tar.gz BuildArch: noarch %description Android like themes for GTK+2, GTK+3, Metacity, GNOME Shell and Cinnamon, %package common Summary: Files common to %{pkgname} themes Group: User Interface/Desktops Obsoletes: android-theme-common <= %{version}-%{release} %description common Files which are common to all %{pkgname} themes. %package gtk2 Summary: %{pkgname} GTK+2 themes Group: User Interface/Desktops Requires: %{name}-common = %{version}-%{release}, gtk-murrine-engine >= 0.98.1.1, gtk2-engines Obsoletes: android-theme-gtk2 <= %{version}-%{release} %description gtk2 Themes for GTK+2 as part of the %{pkgname} theme. %package gtk3 Summary: %{pkgname} GTK+3 themes Group: User Interface/Desktops Requires: %{name}-common = %{version}-%{release} Obsoletes: android-theme-gtk3 <= %{version}-%{release} %description gtk3 Themes for GTK+3 as part of the %{pkgname} theme. %package -n gnome-shell-theme-%{pkgname} Summary: %{pkgname} GNOME Shell theme Group: User Interface/Desktops Requires: %{name}-common = %{version}-%{release}, gnome-shell-extension-user-theme >= 3.14, google-droid-sans-fonts %description -n gnome-shell-theme-%{pkgname} %{pkgname} GNOME Shell theme. %package cinnamon Summary: %{pkgname} Cinnamon Theme Group: User Interface/Desktops Requires: %{name}-common = %{version}-%{release}, cinnamon Obsoletes: android-theme-cinnamon <= %{version}-%{release} %description cinnamon Themes for Cinnamon as part of the %{pkgname} theme. %package metacity Summary: %{pkgname} Metacity themes Group: User Interface/Desktops Requires: %{name}-common = %{version}-%{release} Requires: metacity Obsoletes: android-theme-metacity <= %{version}-%{release} %description metacity Themes for Metacity as part of the %{pkgname} theme. %prep %setup -q -n %{pkgname}-%{commit} find . -name Thumbs.db -type f -exec rm -f '{}' \; rm index.theme rm -rf unity %build # Nothing to build %install mkdir -p -m755 %{buildroot}%{_datadir}/themes/%{pkgname} cp -pr * %{buildroot}%{_datadir}/themes/%{pkgname} %files common %doc %{_datadir}/themes/%{pkgname}/Readme.md %dir %{_datadir}/themes/%{pkgname}/ %files gtk2 %{_datadir}/themes/%{pkgname}/gtk-2.0/ %files gtk3 %{_datadir}/themes/%{pkgname}/gtk-3.0/ %{_datadir}/themes/%{pkgname}/gtk-3.20/ %files -n gnome-shell-theme-Android %{_datadir}/themes/%{pkgname}/gnome-shell/ %files metacity %{_datadir}/themes/%{pkgname}/metacity-1/ %files cinnamon %{_datadir}/themes/%{pkgname}/cinnamon/ %changelog * Fri Mar 13 2015 Heiko Adams - 20150313-1 - Initial package