%global git_date 20240403 %global git_hash b99424e9 %global git_ver 20221218 %global rel 3 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz %global common_configure --disable-unity --with-gnome-shell=3.30 --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: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Flat theme with transparent elements License: GPLv3+ URL: https://github.com/jnsh/%{name} Source0: %{url}/%{src_name} ## Patch1: support_xed.patch BuildArch: noarch #BuildRequires: fdupes BuildRequires: gtk3-devel gtk4-devel BuildRequires: gtk-murrine-engine BuildRequires: inkscape BuildRequires: optipng BuildRequires: sassc BuildRequires: cinnamon BuildRequires: gnome-shell BuildRequires: make meson 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 -n %{name} %build %meson %meson_build %install %meson_install # Install Plank-theme. %{__mkdir} -p %{buildroot}/%{_datadir}/plank/themes/{Arc{,-solid},Arc-Lighter{,-solid},Arc-Darker{,-solid},Arc-Dark{,-solid}} %{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc/ #%{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-solid/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-solid/ %{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-Lighter/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-Lighter/ #%{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-Lighter-solid/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-Lighter-solid/ %{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-Dark/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-Dark/ #%{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-Dark-solid/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-Dark-solid/ %{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-Darker/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-Darker/ #%{__install} -pm 0644 %{buildroot}/%{_datadir}/themes/Arc-Darker-solid/plank/dock.theme %{buildroot}/%{_datadir}/plank/themes/Arc-Darker-solid/ # cleanup plank theme files from main package rm -fvr %{buildroot}/%{_datadir}/themes/{Arc{,-solid},Arc-Lighter{,-solid},Arc-Darker{,-solid},Arc-Dark{,-solid}}/plank # 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 %autochangelog