]> git.pld-linux.org Git - packages/kf5-kcrash.git/blobdiff - kf5-kcrash.spec
- updated to 5.115.0
[packages/kf5-kcrash.git] / kf5-kcrash.spec
index e1af0e543f982614ddcd3c8b6642e3fe622f4a1f..7cf84a3c3391e972d7fba8dd06d8a020ddcac029 100644 (file)
@@ -1,17 +1,20 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # - runtime Requires if any
-%define                kdeframever     5.87
+%define                kdeframever     5.115
 %define                qtver           5.15.2
 %define                kfname          kcrash
 
 Summary:       Graceful handling of application crashes
 Name:          kf5-%{kfname}
-Version:       5.87.0
+Version:       5.115.0
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 5dc207189946ddce57a437327e6813ff
+# Source0-md5: e4d7458f0df9c5adbe4e01dc2c917839
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Test-devel >= %{qtver}
@@ -58,12 +61,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
@@ -86,7 +94,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/KF5/KCrash
-%{_includedir}/KF5/kcrash_version.h
 %{_libdir}/cmake/KF5Crash
 %{_libdir}/libKF5Crash.so
 %{qt5dir}/mkspecs/modules/qt_KCrash.pri
This page took 0.043009 seconds and 4 git commands to generate.