%global common_configure --disable-unity --srcdir=.. %global common_desc \ 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, Cinnamon, Budgie, Pantheon, XFCE, Mate, etc. Name: arc-theme Version: 20170302 Release: 8%{?dist} Summary: Flat theme with transparent elements License: GPLv3+ URL: https://github.com/horst3180/%{name} Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: %{url}/pull/788.patch#/remove_margin_auto.patch Patch1: fix-OSD.patch Patch2: %{url}/pull/790.patch#/support_xed.patch Patch3: %{url}/commit/4b75f33ff2cfedb6ba0809cf877deb2d2831e6c3.patch#/gtk_324.patch Patch4: %{url}/commit/7b1d4f3fb9635c21abc4221c008cfa9849fe53ff.patch#/install_dir_solid.patch Patch5: %{url}/commit/8290cb813f157a22e64ae58ac3dfb5983b0416e6.patch#/update_readme.patch BuildArch: noarch BuildRequires: autoconf BuildRequires: automake BuildRequires: fdupes BuildRequires: gtk3-devel Requires: filesystem Requires: gnome-themes-standard Requires: gtk-murrine-engine %description %{common_desc} %package plank Summary: Arc-theme for Plank dock Requires: %{name} == %{version}-%{release} %if 0%{?fedora} Requires: plank Supplements: (%{name} and plank) %endif %description plank %{common_desc} This package contains the %{summary}. %prep %autosetup -p 1 %{_bindir}/autoreconf -fiv %build %{__mkdir} -p regular solid pushd regular %{__ln_s} -f ../configure configure %configure %{common_configure} popd pushd solid %{__ln_s} -f ../configure configure %configure --disable-transparency %{common_configure} popd %make_build -C regular %make_build -C solid %install %make_install -C regular %make_install -C solid # Install Plank-theme. %{__mkdir} -p %{buildroot}/%{_datadir}/plank/themes/Arc %{__install} -pm 0644 extra/Arc-Plank/dock.theme \ %{buildroot}/%{_datadir}/plank/themes/Arc # Link duplicate files. %fdupes -s %{buildroot}%{_datadir} %files %license AUTHORS COPYING %doc README.md %{_datadir}/themes/* %files plank %if 0%{?fedora} %{_datadir}/plank/themes/* %else %{_datadir}/plank %endif %changelog * Sat Sep 02 2017 Björn Esser - 20170302-8 - Remove Requires: plank on EPEL and properly own the directory * Tue Aug 29 2017 Björn Esser - 20170302-7 - Add several patches from upstream * Mon Aug 28 2017 Björn Esser - 20170302-6 - Use Supplements on recent distros only * Wed Jul 26 2017 Fedora Release Engineering - 20170302-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 15 2017 Leigh Scott - 20170302-4 - Add patch to fix OSD * Sun May 28 2017 Leigh Scott - 20170302-3 - remove margin:auto as it's not supported * Mon May 01 2017 Björn Esser - 20170302-2 - Add Supplements: (%%{name} and plank) for Plank-theme addon-package * Fri Mar 03 2017 Björn Esser - 20170302-1 - New upstream release (rhbz#1428616) * Fri Feb 10 2017 Fedora Release Engineering - 20161119-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jan 29 2017 Björn Esser - 20161119-3 - Build a 'solid'-version of the theme, too (rhbz#1415364) - Symlink all duplicate files to save disk-space * Sun Jan 29 2017 Björn Esser - 20161119-2 - Add Patch0: fix missing gradient warning * Tue Jan 10 2017 Björn Esser - 20161119-1 - Initial rpm-release (rhbz#1411438) * Mon Jan 09 2017 Björn Esser - 20161119-0.2 - Add plank-subpkg and require Plank (rhbz#1411438) * Mon Jan 09 2017 Björn Esser - 20161119-0.1 - Initial package (rhbz#1411438)