fix: split out gtk3 theme, add requires

This commit is contained in:
Joshua Strobl 2025-06-01 12:07:09 +03:00
parent 6e95466a5f
commit bafe237d4d
2 changed files with 21 additions and 4 deletions

View file

@ -11,7 +11,11 @@ License: GPL-2.0-or-later
URL: https://github.com/UbuntuBudgie/pocillo-gtk-theme
Source0: %{url}/releases/download/v%{version}/pocillo-precompiled.tar.gz#/%{name}-%{version}-precompiled.tar.gz
Requires: gtk3
Requires: (pocillo-gtk2-theme if gtk2)
Requires: (pocillo-gtk3-theme if gtk3)
Requires: (pocillo-gtk4-theme if gtk4)
Requires: (pocillo-openbox-theme if openbox)
Requires: (pocillo-plank-theme if plank)
%description %{_description}
@ -25,6 +29,16 @@ Recommends: pocillo-gtk-theme
This package contains the Pocillo GTK+2 theme.
%package -n pocillo-gtk3-theme
Summary: GTK3 support for the Pocillo GTK theme
Requires: gtk3
Recommends: pocillo-gtk-theme
%description -n pocillo-gtk3-theme %{_description}
This package contains the Pocillo GTK3 theme.
%package -n pocillo-gtk4-theme
Summary: GTK4 support for the Pocillo GTK theme
Requires: gtk4
@ -69,9 +83,7 @@ cp -R %{_builddir}/Pocillo* %{buildroot}%{_datadir}/themes/
%files
%license COPYING
%dir %{_datadir}/themes/Pocillo*/chrome
%dir %{_datadir}/themes/Pocillo*/gtk-3.0
%{_datadir}/themes/Pocillo*/chrome/*
%{_datadir}/themes/Pocillo*/gtk-3.0/*
%{_datadir}/themes/Pocillo*/index.theme
%files -n pocillo-gtk2-theme
@ -79,6 +91,11 @@ cp -R %{_builddir}/Pocillo* %{buildroot}%{_datadir}/themes/
%dir %{_datadir}/themes/Pocillo*/gtk-2.0
%{_datadir}/themes/Pocillo*/gtk-2.0/*
%files -n pocillo-gtk3-theme
%license COPYING
%dir %{_datadir}/themes/Pocillo*/gtk-3.0
%{_datadir}/themes/Pocillo*/gtk-3.0/*
%files -n pocillo-gtk4-theme
%license COPYING
%dir %{_datadir}/themes/Pocillo*/gtk-4.0
@ -95,5 +112,5 @@ cp -R %{_builddir}/Pocillo* %{buildroot}%{_datadir}/themes/
%{_datadir}/themes/Pocillo*/plank/*
%changelog
* Fri May 30 2025 Joshua Strobl <me@joshuastrobl.com> - 0.11-1
* Sun Jun 01 2025 Joshua Strobl <me@joshuastrobl.com> - 0.11-1
- Initial packaging of Pocillo