%global commit 2d3f9f7aaef05b40ef00614140af2077522a0944 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global srcname plasma-welcome %global orgname org.kde.plasma-welcome %global git_date 20220922 Name: plasma-welcome-app Version: 0 Release: 1.%{git_date}git%{shortcommit}%{?dist} License: GPLv2+ and BSD Summary: Plasma Welcome App Url: https://invent.kde.org/plasma/%{srcname} Source0: %{URL}/-/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc-c++ BuildRequires: qt5-qtbase-devel BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Quick) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5QuickControls2) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(KF5Kirigami2) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5ConfigWidgets) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5WindowSystem) BuildRequires: cmake(KF5Declarative) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5NetworkManagerQt) BuildRequires: cmake(KF5Service) BuildRequires: cmake(KF5Plasma) %description Plasma Welcome App. %prep %autosetup -n %{srcname}-%{commit} -p1 # It is for generate pot file for translate so we can ignore it. Also CC0 license not allowed rm Messages.sh %build %cmake_kf5 %cmake_build %install %cmake_install %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/%{orgname}.*.xml desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/%{orgname}.desktop %files %license src/LICENSES/{BSD-3-Clause.txt,GPL-2.0-or-later.txt,FSFAP.txt} %doc README.md %{_kf5_bindir}/plasma-welcome %{_kf5_datadir}/applications/%{orgname}.desktop %{_kf5_metainfodir}/%{orgname}.*.xml %changelog * Tue Sep 20 2022 Onuralp Sezer - 0-1.20220922git2d3f9f7 - Commit build 2d3f9f7 - Feature: post-upgrade message - BR cmake(KF5Plasma) added. * Mon Sep 05 2022 Onuralp Sezer - 0-1.20220902git0163cda - Initial build plasma welcome app