%define upstream_version 20250501 %define commit_date 20260402 %define commit d71d76f1e02e91d9de2d382582d850aff5ed3e90 %global short_commit %(c=%{commit}; echo ${c:0:7}) Name: papirus-icon-theme Version: %{upstream_version}^git%{commit_date}.%{short_commit} Release: 1%{?dist} Summary: Free and open source SVG icon theme based on Paper Icon Set # Some icons are based on # * Paper Icon Theme, CC-BY-SA-4.0 # * Breeze Plasma Theme, LGPL-3.0-or-later # https://invent.kde.org/frameworks/breeze-icons/-/blob/master/COPYING-ICONS # The rest is GPL-3.0-only; see AUTHORS License: GPL-3.0-only AND CC-BY-SA-4.0 AND LGPL-3.0-or-later URL: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme Source: %{url}/archive/%{commit}/%{name}-%{short_commit}.tar.gz BuildArch: noarch BuildRequires: make Obsoletes: papirus-icon-theme < 20240501-2 Recommends: papirus-icon-theme-dark = %{?epoch:%{epoch}:}%{version}-%{release} Recommends: papirus-icon-theme-light = %{?epoch:%{epoch}:}%{version}-%{release} %description Papirus is a free and open source SVG icon theme for Linux, based on Paper Icon Set with a lot of new icons and a few extras, like Hardcode-Tray support, KDE color scheme support, Folder Color support, and others. This package contains the following variants: - Papirus (for Arc / Arc Darker) %package dark Summary: Papirus dark icon theme for Arc Dark Requires: papirus-icon-theme = %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: papirus-icon-theme < 20240501-2 %description dark Papirus is a free and open source SVG icon theme for Linux, based on Paper Icon Set with a lot of new icons and a few extras, like Hardcode-Tray support, KDE color scheme support, Folder Color support, and others. This package contains the following variants: - Papirus Dark (for Arc Dark) %package light Summary: Papirus light icon theme for light theme with Breeze color Requires: papirus-icon-theme = %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: papirus-icon-theme < 20240501-2 %description light Papirus is a free and open source SVG icon theme for Linux, based on Paper Icon Set with a lot of new icons and a few extras, like Hardcode-Tray support, KDE color scheme support, Folder Color support, and others. This package contains the following variants: - Papirus Light (light theme with Breeze colors) %prep %autosetup -n %{name}-%{commit} %build # stub for rpmlint %install %make_install export THEMES="Papirus Papirus-Dark Papirus-Light" for t in $THEMES; do /bin/touch %{buildroot}/%{_datadir}/icons/$t/icon-theme.cache done %post export THEMES="Papirus Papirus-Dark Papirus-Light" for t in $THEMES; do /bin/touch --no-create %{_datadir}/icons/$t &>/dev/null || : done %postun if [ $1 -eq 0 ] ; then export THEMES="Papirus Papirus-Dark Papirus-Light" for t in $THEMES; do /bin/touch --no-create %{_datadir}/icons/$t &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || : done fi %posttrans export THEMES="Papirus Papirus-Dark Papirus-Light" for t in $THEMES; do /usr/bin/gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || : done %files %license LICENSE %doc AUTHORS README.md %dir %{_datadir}/icons/Papirus %{_datadir}/icons/Papirus/*x* %ghost %{_datadir}/icons/Papirus/icon-theme.cache %files dark %license LICENSE %dir %{_datadir}/icons/Papirus-Dark %{_datadir}/icons/Papirus-Dark/*x* %ghost %{_datadir}/icons/Papirus-Dark/icon-theme.cache %files light %license LICENSE %dir %{_datadir}/icons/Papirus-Light %{_datadir}/icons/Papirus-Light/*x* %ghost %{_datadir}/icons/Papirus-Light/icon-theme.cache %changelog %autochangelog