Name: plasma-applet-ambientnoise Version: 0.6.0 %global forgeurl https://github.com/m-pilia/%{name} %global tag %{version} %global date 20240311 %forgemeta %global applet_id org.kde.plasma.ambientnoise %global debug_package %{nil} Release: 4%{?dist} Summary: Ambient noise player applet (plasmoid) for KDE Plasma 6 License: GPL-3.0 URL: %{forgeurl} Source: %{forgesource} #------------------------------------------------------------------------------ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake >= 3.16 BuildRequires: extra-cmake-modules BuildRequires: kf6-rpm-macros BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: cmake(Qt6Multimedia) BuildRequires: cmake(Qt6Quick) BuildRequires: cmake(Plasma) BuildRequires: cmake(Plasma5Support) BuildRequires: cmake(KF6Declarative) BuildRequires: cmake(KF6Package) Requires: plasma-workspace Requires: kf6-kirigami Requires: libplasma Requires: anoise-media Recommends: anoise-community-extension1 Recommends: anoise-community-extension2 Recommends: anoise-community-extension3 Recommends: anoise-community-extension4 Recommends: anoise-community-extension5 Provides: plasma6-applet-ambientnoise = %{version}-%{release} Obsoletes: plasma5-applet-ambientnoise <= %{version}-%{release} #------------------------------------------------------------------------------ %description This applet for the KDE Plasma desktop allows to reproduce ambient noise. Multiple noise components can be combined, controlling their individual volume. The applet reads noise files and their icons from a given, customisable folder. The noise and the icon must be in the same folder and share the same name, except for the file extension. The plasmoid remembers its state across reboots, including play/pause status, volume, and active noise components. To prevent it from playing sound at start-up, even if it was still playing at the time of the last shutdown, go to the plasmoid settings and tick "Paused at start-up". Free noises in a ready-to-use format for this plasmoid can be found in the anoise project. %files %license LICENSE %doc README.md %{_kf6_datadir}/icons/{breeze,breeze-dark}/apps/{16,22,32}/ambientnoise.svg %{_kf6_datadir}/icons/hicolor/scalable/ambientnoise.svg %{_kf6_datadir}/plasma/plasmoids/%{applet_id} %{_kf6_metainfodir}/%{applet_id}.appdata.xml #------------------------------------------------------------------------------ %prep %forgeautosetup -p1 %build %cmake_kf6 %cmake_build %install %cmake_install # Bad icon name sed -i "//d" %{buildroot}%{_metainfodir}/%{applet_id}.appdata.xml %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{applet_id}.appdata.xml #------------------------------------------------------------------------------ %changelog * Sun Nov 3 2024 Hazel Bunny - 0.6.0-4 - Rebuild for Qt 6.8 * Sun Oct 13 2024 Hazel Bunny - 0.6.0-3 - Fedora 41 Mass Rebuild * Tue Jun 18 2024 Hazel Bunny - 0.6.0-2 - refactoring of spec file * Thu Apr 11 2024 Hazel Bunny - 0.6.0-1 - initial package