X-Git-Url: https://git.pld-linux.org/?p=packages%2Fkf5-kcmutils.git;a=blobdiff_plain;f=kf5-kcmutils.spec;h=ae864807f1a973911acd0e32a1c135224eadb266;hp=9bcb6989c5b836afece69f604e82e5627507c50a;hb=HEAD;hpb=c43988c36765fa39e3db3f612feb4e977b7e39a4 diff --git a/kf5-kcmutils.spec b/kf5-kcmutils.spec index 9bcb698..ae86480 100644 --- a/kf5-kcmutils.spec +++ b/kf5-kcmutils.spec @@ -1,15 +1,18 @@ -%define kdeframever 5.84 -%define qtver 5.9.0 +# +# Conditional build: +%bcond_with tests # build with tests +%define kdeframever 5.115 +%define qtver 5.15.2 %define kfname kcmutils Summary: Utilities for KDE System Settings modules Name: kf5-%{kfname} -Version: 5.84.0 +Version: 5.115.0 Release: 1 License: LGPL v2.1+ Group: X11/Libraries -Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz -# Source0-md5: 180429753b94d09617afd4bf60f117c5 +Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz +# Source0-md5: 011fc001cffe0fd611ea516ced255578 URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5DBus-devel >= %{qtver} @@ -17,7 +20,7 @@ BuildRequires: Qt5Gui-devel >= %{qtver} BuildRequires: Qt5Test-devel >= %{qtver} BuildRequires: Qt5Widgets-devel >= %{qtver} BuildRequires: Qt5Xml-devel >= %{qtver} -BuildRequires: cmake >= 2.8.12 +BuildRequires: cmake >= 3.16 BuildRequires: gettext-devel BuildRequires: kf5-attica-devel >= %{version} BuildRequires: kf5-extra-cmake-modules >= %{version} @@ -70,12 +73,17 @@ Pliki nagłówkowe dla programistów używających %{kfname}. %setup -q -n %{kfname}-%{version} %build -install -d build -cd build -%cmake -G Ninja \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - ../ -%ninja_build +%cmake -B build \ + -G Ninja \ + %{!?with_tests:-DBUILD_TESTING=OFF} \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + +%ninja_build -C build + +%if %{with tests} +%ninja_build -C build test +%endif + %install rm -rf $RPM_BUILD_ROOT @@ -94,14 +102,27 @@ rm -rf $RPM_BUILD_ROOT %doc README.md %ghost %{_libdir}/libKF5KCMUtils.so.5 %attr(755,root,root) %{_libdir}/libKF5KCMUtils.so.*.* +%ghost %{_libdir}/libKF5KCMUtilsCore.so.5 +%attr(755,root,root) %{_libdir}/libKF5KCMUtilsCore.so.*.* %{_datadir}/kservicetypes5/kcmodule.desktop %{_datadir}/kservicetypes5/kcmoduleinit.desktop %{_datadir}/qlogging-categories5/kcmutils.categories +%dir %{_libdir}/qt5/qml/org/kde/kcmutils +%dir %{_libdir}/qt5/qml/org/kde/kcmutils/components +%{_libdir}/qt5/qml/org/kde/kcmutils/components/KPluginDelegate.qml +%{_libdir}/qt5/qml/org/kde/kcmutils/components/KPluginSelector.qml +%dir %{_libdir}/qt5/qml/org/kde/kcmutils/components/private +%{_libdir}/qt5/qml/org/kde/kcmutils/components/private/AboutPlugin.qml +%attr(755,root,root) %{_libdir}/qt5/qml/org/kde/kcmutils/libkcmutilsqmlplugin.so +%{_libdir}/qt5/qml/org/kde/kcmutils/qmldir +%attr(755,root,root) %{_prefix}/libexec/kf5/kcmdesktopfilegenerator %files devel %defattr(644,root,root,755) %{_includedir}/KF5/KCMUtils -%{_includedir}/KF5/kcmutils_version.h %{_libdir}/cmake/KF5KCMUtils %{_libdir}/libKF5KCMUtils.so %{qt5dir}/mkspecs/modules/qt_KCMUtils.pri +%{_includedir}/KF5/KCMUtilsCore +%{_libdir}/libKF5KCMUtilsCore.so +