]> git.pld-linux.org Git - packages/kf5-sonnet.git/blobdiff - kf5-sonnet.spec
Revert "- updated to 5.249.0; rel 0.1"
[packages/kf5-sonnet.git] / kf5-sonnet.spec
index f5420991978241293a9d602f2aa3b4fb0f2416ba..e7734bdfaa8157cc4442374e4bd8b08ddd47ebbe 100644 (file)
@@ -1,18 +1,21 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # - fix build with aspell
-%define                kdeframever     5.89
+%define                kdeframever     5.114
 %define                qtver           5.15.2
 %define                kfname          sonnet
 
 Summary:       Multi-language spell checker
 Summary(pl.UTF-8):     Wielojęzyczne narzędzie do sprawdzania pisowni
 Name:          kf5-%{kfname}
-Version:       5.89.0
+Version:       5.114.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 47e19ec2307156950ef311022ab6035a
+# Source0-md5: 57b2211d1c7ed7b6fce10912791399db
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Test-devel >= %{qtver}
@@ -76,12 +79,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
@@ -121,7 +129,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_includedir}/KF5/SonnetCore
 %{_includedir}/KF5/SonnetUi
-%{_includedir}/KF5/sonnet_version.h
+%{_includedir}/KF5/Sonnet
 %{_libdir}/cmake/KF5Sonnet
 %{_libdir}/libKF5SonnetCore.so
 %{_libdir}/libKF5SonnetUi.so
This page took 0.04916 seconds and 4 git commands to generate.