%global commit0 c1354f0a60837ac6a6cf1969fe8001a67c1f961d %global date 20251023 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) #global tag %%{version} Name: xapp-symbolic-icons Version: 0.1%{!?tag:~%{date}git%{shortcommit0}} Release: 0.1%{?dist} Summary: A set of symbolic icons which replaces the GNOME-specific Adwaita set License: GPL-3.0-only AND LGPL-3.0-only URL: https://github.com/xapp-project/%{name} %if 0%{?tag:1} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %else Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz %endif Patch0: remove_meson_c.patch BuildArch: noarch BuildRequires: meson Requires: hicolor-icon-theme %description A set of symbolic icons which replaces the GNOME-specific Adwaita set. All provided icons are prefixed with xsi- and places in /usr/share/icons/hicolor. Icon names losely follow the Adwaita names. %prep %if 0%{?tag:1} %autosetup -p1 %else %autosetup -p1 -n %{name}-%{commit0} %endif %build %meson %meson_build %install %meson_install %transfiletriggerin -- %{_datadir}/icons/hicolor gtk-update-icon-cache --force %{_datadir}/icons/hicolor &>/dev/null || : %transfiletriggerpostun -- %{_datadir}/icons/hicolor gtk-update-icon-cache --force %{_datadir}/icons/hicolor &>/dev/null || : %files %license COPYING COPYING.LESSER %doc AUTHORS README.md %{_bindir}/xsi-replace-adwaita-symbolic %{_datadir}/icons/hicolor/scalable/actions/xsi-*.svg %{_datadir}/xapp/ %changelog * Sun Oct 26 2025 Leigh Scott - 0.1~20251023gitc1354f0-0.1 - First build