%global kf5_min_version 5.88.0
%global orig_name org.kde.plasma.nano
Name: plasma-nano
Version: 5.27.11
Release: 1%{?dist}
License: MIT and GPLv2+ and LGPLv2+
URL: https://invent.kde.org/plasma/plasma-nano
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source: https://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
Summary: A minimalist Plasma shell for developing custom experiences on embedded devices.
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: libappstream-glib
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros >= %{kf5_min_version}
BuildRequires: hicolor-icon-theme
BuildRequires: desktop-file-utils
BuildRequires: cmake(KF5I18n) >= %{kf5_min_version}
BuildRequires: cmake(KF5KIO) >= %{kf5_min_version}
BuildRequires: cmake(KF5Notifications) >= %{kf5_min_version}
BuildRequires: cmake(KF5Plasma) >= %{kf5_min_version}
BuildRequires: cmake(KF5Service) >= %{kf5_min_version}
BuildRequires: cmake(KF5Wayland) >= %{kf5_min_version}
BuildRequires: cmake(KWinDBusInterface) >= %{kf5_min_version}
BuildRequires: cmake(KF5WindowSystem) >= %{kf5_min_version}
BuildRequires: cmake(KF5Package) >= %{kf5_min_version}
BuildRequires: cmake(KF5CoreAddons) >= %{kf5_min_version}
BuildRequires: cmake(Qt5Qml)
Requires: kf5-plasma
Requires: kf5-kwayland
Requires: kf5-kwindowsystem
Requires: kf5-kservice
Requires: kf5-kcoreaddons
Requires: kf5-kpackage
Requires: qt5-qtdeclarative
%description
%{Summary}
%prep
%autosetup -n %{name}-%{version}
%build
%cmake_kf5
%cmake_build
%install
%cmake_install
sed -i 's,plasma, ,g' %{buildroot}%{_kf5_metainfodir}/%{orig_name}.desktoptoolbox.appdata.xml
%find_lang plasma_shell_%{orig_name} --all-name
%check
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/%{orig_name}.desktoptoolbox.appdata.xml
%files -f plasma_shell_%{orig_name}.lang
%license LICENSES/*.txt
%doc README.md
%{_kf5_metainfodir}/%{orig_name}.desktoptoolbox.appdata.xml
%{_kf5_qmldir}/org/kde/plasma/private/nanoshell
%{_kf5_datadir}/kservices5/plasma-applet-%{orig_name}.desktop
%{_kf5_datadir}/kservices5/plasma-package-%{orig_name}.desktoptoolbox.desktop
%{_kf5_datadir}/plasma/packages/%{orig_name}.desktoptoolbox
%{_kf5_datadir}/plasma/shells/%{orig_name}
%changelog
* Sat Mar 09 2024 Alessandro Astone - 5.27.11-1
- 5.27.11
* Sat Dec 16 2023 Marc Deop i Argemí - 5.27.10-1
- 5.27.10
* Tue Oct 24 2023 Steve Cossette - 5.27.9-1
- 5.27.9
* Tue Sep 12 2023 justin.zobel@gmail.com - 5.27.8-1
- 5.27.8
* Tue Aug 01 2023 Marc Deop i Argemí - 5.27.7-1
- 5.27.7
* Fri Jul 21 2023 Fedora Release Engineering - 5.27.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sun Jun 25 2023 Marc Deop i Argemí - 5.27.6-1
- 5.27.6
* Wed May 10 2023 Marc Deop i Argemí - 5.27.5-1
- 5.27.5
* Tue Apr 04 2023 Marc Deop i Argemí - 5.27.4-1
- 5.27.4
* Tue Mar 14 2023 Marc Deop i Argemí - 5.27.3-1
- 5.27.3
* Tue Feb 28 2023 Marc Deop i Argemí - 5.27.2-1
- 5.27.2
* Tue Feb 21 2023 Marc Deop i Argemí - 5.27.1-1
- 5.27.1
* Thu Feb 09 2023 Marc Deop - 5.27.0-1
- 5.27.0
* Fri Jan 20 2023 Fedora Release Engineering - 5.26.90-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jan 19 2023 Marc Deop - 5.26.90-1
- 5.26.90
* Sat Jan 07 2023 Marc Deop - 5.26.5-1
- 5.26.5
* Tue Nov 29 2022 Marc Deop - 5.26.4-1
- 5.26.4
* Wed Nov 09 2022 Marc Deop - 5.26.3-1
- 5.26.3
* Wed Oct 26 2022 Marc Deop - 5.26.2-1
- 5.26.2
* Tue Oct 18 2022 Marc Deop - 5.26.1-1
- 5.26.1
* Thu Oct 06 2022 Marc Deop - 5.26.0-1
- 5.26.0
* Sat Sep 17 2022 Marc Deop - 5.25.90-1
- 5.25.90
* Wed Sep 07 2022 Marc Deop - 5.25.5-1
- 5.25.5
* Wed Aug 31 2022 Onuralp SEZER - 5.25.4-1
- 5.25.4
* Sat Apr 16 2022 Onuralp SEZER - 5.24.4-1
- 5.24.4
* Mon Jan 17 2022 Onuralp SEZER - 5.23.5-1
- Initial version of package