]> git.pld-linux.org Git - packages/kf5-kdeclarative.git/blobdiff - kf5-kdeclarative.spec
- bcond_with tests
[packages/kf5-kdeclarative.git] / kf5-kdeclarative.spec
index c6da791e8fc171a28465905f8c31e33fe05c30a2..b7433cf9b9031d1b558a440d6b6f7555b7964e69 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeframever     5.90
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.92
 %define                qtver           5.9.0
 %define                kfname          kdeclarative
 
 Summary:       Integration of QML and KDE work spaces
 Name:          kf5-%{kfname}
-Version:       5.90.0
+Version:       5.92.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: c7c2a4453b1c60cc6ea3714a94e6b7f4
+# Source0-md5: 8548b2884b0794f1aec613640d745ce0
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5DBus-devel >= %{qtver}
@@ -81,10 +84,16 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 install -d build
 cd build
 %cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        ../
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %ninja_install -C build
@@ -150,7 +159,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/KF5/KDeclarative
-%{_includedir}/KF5/kdeclarative_version.h
 %{_libdir}/cmake/KF5Declarative
 %{_libdir}/libKF5CalendarEvents.so
 %{_libdir}/libKF5Declarative.so
This page took 0.122884 seconds and 4 git commands to generate.