diff --git a/_service b/_service index f60c325..9b6a555 100644 --- a/_service +++ b/_service @@ -4,17 +4,14 @@ supergfxctl-plasmoid https://gitlab.com/Jhyub/supergfxctl-plasmoid.git git - git-master @PARENT_TAG@ v2.1.1 v(.*) - - - gz + xz *.tar diff --git a/supergfxctl-plasmoid.spec b/supergfxctl-plasmoid.spec index 955ca71..1c12d28 100644 --- a/supergfxctl-plasmoid.spec +++ b/supergfxctl-plasmoid.spec @@ -1,36 +1,50 @@ +# +# spec file for package supergfxctl-plasmoid +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define kf6_version 6.0.0 +%define qt6_version 6.4.0 + Name: supergfxctl-plasmoid Version: 2.1.1 -Release: 0%{?dist} +Release: 0 Summary: KDE Plasma plasmoid for supergfxctl - License: MPL-2.0 URL: https://gitlab.com/Jhyub/supergfxctl-plasmoid -Source0: %{name}-%{version}.tar.gz -Group: System/GUI/KDE - -BuildRequires: cmake -BuildRequires: gcc-c++ -BuildRequires: extra-cmake-modules -BuildRequires: cmake(KF6Config) -BuildRequires: cmake(KF6I18n) -BuildRequires: cmake(KF6Kirigami) -BuildRequires: cmake(KF6Svg) -BuildRequires: cmake(KF6Solid) -BuildRequires: cmake(Plasma) -BuildRequires: cmake(Qt6Core) -BuildRequires: cmake(Qt6Qml) +Source0: %{name}-%{version}.tar.xz +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} BuildRequires: fdupes - +BuildRequires: gcc-c++ +BuildRequires: cmake(KF6Config) >= %{kf6_version} +BuildRequires: cmake(KF6I18n) >= %{kf6_version} +BuildRequires: cmake(KF6Solid) >= %{kf6_version} +BuildRequires: cmake(Plasma) >= 6.0 +BuildRequires: cmake(Qt6Core) >= %{qt6_version} +BuildRequires: cmake(Qt6DBus) >= %{qt6_version} +BuildRequires: cmake(Qt6Gui) >= %{qt6_version} +BuildRequires: cmake(Qt6Qml) >= %{qt6_version} Requires: hicolor-icon-theme = 0.17 -Requires: kf6-kconfig-imports -Requires: kf6-ki18n-imports -Requires: kf6-kirigami-imports -Requires: kf6-ksvg-imports -Requires: qt6-declarative-imports +Requires: kf6-kirigami-imports >= %{kf6_version} +Requires: kf6-ksvg-imports >= %{kf6_version} +Requires: qt6-declarative-imports >= %{qt6_version} Requires: supergfxctl %description -KDE Plasma plasmoid for supergfxctl +KDE Plasma plasmoid for supergfxctl. %lang_package @@ -38,39 +52,40 @@ KDE Plasma plasmoid for supergfxctl %autosetup %build -%cmake -DBUILD_WITH_QT6=ON +%cmake_kf6 -DBUILD_WITH_QT6:BOOL=TRUE + +%kf6_build %install -%cmake_install +%kf6_install %check %ctest -%fdupes %{buildroot}/%{_prefix} +%find_lang %{name} --all-name -%files +%fdupes %{buildroot} + +%files -f %{name}-lang %license LICENSE -%{_libdir}/qt6/plugins/plasma/applets/dev.jhyub.supergfxctl.so -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-dgpu-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-dgpu-off.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-dgpu-suspended.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-dedicated-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-dedicated.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-compute-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-compute.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-egpu-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-egpu.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-hybrid-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-hybrid.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-integrated-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-integrated.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-vfio-active.svg -%{_datadir}/icons/hicolor/scalable/status/supergfxctl-plasmoid-gpu-vfio.svg -%{_datadir}/metainfo/dev.jhyub.supergfxctl.appdata.xml -%lang(ko) %{_datadir}/locale/ko/LC_MESSAGES/plasma_applet_dev.jhyub.supergfxctl.mo -%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/plasma_applet_dev.jhyub.supergfxctl.mo - -%dir -%{_datadir}/plasma/plasmoids/dev.jhyub.supergfxctl +%doc README.md +%{_kf6_appstreamdir}/dev.jhyub.supergfxctl.appdata.xml +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-dgpu-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-dgpu-off.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-dgpu-suspended.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-compute-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-compute.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-dedicated-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-dedicated.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-egpu-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-egpu.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-hybrid-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-hybrid.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-integrated-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-integrated.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-vfio-active.svg +%{_kf6_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-gpu-vfio.svg +%{_kf6_plasmadir}/plasmoids/dev.jhyub.supergfxctl/ +%{_kf6_plugindir}/plasma/applets/dev.jhyub.supergfxctl.so %changelog