%global gitdate 20231006.002016 %global cmakever 5.240.0 %global commit0 a60f060065eefff62fdcc852857b4c3943bdc7a0 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global framework kservice Name: kf6-%{framework} Summary: KDE Frameworks 6 Tier 3 solution for advanced plugin and service introspection Version: %{cmakever}^%{gitdate}.%{shortcommit0} Release: 1%{?dist} # The following licenses are in the LICENSES folder but go unused: GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, LicenseRef-KDE-Accepted-GPL License: CC0-1.0 AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0-only AND LicenseRef-KDE-Accepted-LGPL URL: https://invent.kde.org/frameworks/%{framework} Source0: https://invent.kde.org/frameworks/%{framework}/-/archive/%{commit0}/%{framework}-%{shortcommit0}.tar.gz BuildRequires: extra-cmake-modules >= %{cmakever} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: cmake(KF6Config) BuildRequires: cmake(KF6CoreAddons) BuildRequires: cmake(KF6Crash) BuildRequires: cmake(KF6DBusAddons) BuildRequires: cmake(KF6DocTools) BuildRequires: cmake(KF6I18n) BuildRequires: kf6-rpm-macros BuildRequires: qt6-qtbase-devel # for the Administration category Recommends: redhat-menus Recommends: kf6-filesystem %description KDE Frameworks 6 Tier 3 solution for advanced plugin and service introspection. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake(KF6Config) Requires: cmake(KF6CoreAddons) %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{framework}-%{commit0} -p1 %build %cmake_kf6 %cmake_build %install %cmake_install %find_lang %{name} --all-name --with-man mv %{buildroot}%{_kf6_sysconfdir}/xdg/menus/applications.menu \ %{buildroot}%{_kf6_sysconfdir}/xdg/menus/kf6-applications.menu mkdir -p %{buildroot}%{_kf6_datadir}/kservices6 mkdir -p %{buildroot}%{_kf6_datadir}/kservicetypes6 %files -f %{name}.lang %doc README.md %license LICENSES/*.txt # this is not a config file, despite rpmlint complaining otherwise -- rex %{_kf6_sysconfdir}/xdg/menus/kf6-applications.menu %{_kf6_datadir}/qlogging-categories6/%{framework}.* %{_kf6_bindir}/kbuildsycoca6 %{_kf6_libdir}/libKF6Service.so.6* %{_kf6_libdir}/libKF6Service.so.5* %{_kf6_datadir}/kservicetypes6/ %{_kf6_datadir}/kservices6/ %{_kf6_mandir}/man8/*.8* %files devel %{_kf6_includedir}/KService/ %{_kf6_libdir}/libKF6Service.so %{_kf6_libdir}/cmake/KF6Service/ %changelog * Tue Oct 03 2023 Steve Cossette - 5.240.0^20231006.002016.a60f060-1 - Initial Release