%global base_name oxygen-icons # trim changelog included in binary rpms %global _changelog_trimtime %(date +%s -d "1 year ago") %global gitdate 20260507 %global gitcommit_full 6814851fe2a64189a390730048dae9f615f21013 %global gitcommit %%(c=%%{gitcommit_full}; echo ${c:0:7}) Name: oxygen-classic-icon-theme Summary: Oxygen icon theme with classic monochrome tray icons Epoch: 1 Version: 6.2.0^%{gitdate}.%{gitcommit} Release: 0%{?dist} # http://techbase.kde.org/Policies/Licensing_Policy License: LGPL-3.0-or-later URL: https://invent.kde.org/frameworks/%{base_name} Source0: %{url}/-/archive/%{gitcommit_full}/%{base_name}-%{gitcommit_full}.tar.bz2 Source1: classic.tar.gz Source2: anki16.svg Source3: anki22.svg Source4: anki24.svg BuildArch: noarch ## upstreamable patches Patch: classic-symbolic.patch BuildRequires: extra-cmake-modules >= %{version} BuildRequires: kf6-rpm-macros BuildRequires: qt6-qtbase-devel BuildRequires: hardlink # for optimizegraphics BuildRequires: kde-dev-scripts BuildRequires: kde-filesystem BuildRequires: time # inheritance, though could consider Recommends: if needed -- rex Requires: hicolor-icon-theme Suggests: crystal-remix-icon-theme Suggests: oxygen-icon-theme # some icons moved here from kdepim, add explicit Conflicts to help dep solvers # http://bugzilla.redhat.com/1308358 Conflicts: kmail < 15.12.2 %description %{summary}. %prep %autosetup -n %{base_name}-%{gitcommit_full} -p1 tar -xzf %SOURCE1 --strip-components=0 -C ./applets/ sed -i 's/Inherits=breeze,hicolor/Inherits=oxygen,crystal-remix,breeze-dark,breeze,hicolor/' index.theme for f in {16,22,24}; do mv %{_sourcedir}/anki${f}.svg applets/${f}x${f}/anki.svg done %build %cmake_kf6 %cmake_build %install %cmake_install # optimize pushd %{buildroot}%{_kf6_datadir}/icons/oxygen-classic du -s . hardlink -c -v %{buildroot}%{_kf6_datadir}/icons/oxygen-classic du -s . time optimizegraphics du -s . hardlink -c -v %{buildroot}%{_kf6_datadir}/icons/oxygen-classic du -s . popd # create/own all potential dirs mkdir -p %{buildroot}%{_kf6_datadir}/icons/oxygen-classic/{16x16,22x22,24x24,32x32,36x36,48x48,64x64,96x96,128x128,512x512,scalable}/{actions,apps,devices,mimetypes,places} ## trigger-based scriptlets %transfiletriggerin -- %{_datadir}/icons/oxygen-classic gtk-update-icon-cache --force %{_datadir}/icons/oxygen-classic &>/dev/null || : %transfiletriggerpostun -- %{_datadir}/icons/oxygen-classic gtk-update-icon-cache --force %{_datadir}/icons/oxygen-classic &>/dev/null || : %files %doc AUTHORS CONTRIBUTING %license COPYING %{_datadir}/icons/oxygen-classic/ %changelog * Fri May 8 2026 Hazel Bunny - 1:6.2.0^20260507.6814851f-0 - Initial package