]> git.pld-linux.org Git - packages/kf5-kross.git/commitdiff
- updated to 5.115.0 master auto/th/kf5-kross-5.115.0-1
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Thu, 14 Mar 2024 16:04:51 +0000 (17:04 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Thu, 14 Mar 2024 16:04:51 +0000 (17:04 +0100)
kf5-kross.spec

index 1dfb7ad05978916033e94677d4a50dc8d91dfe0a..68410d2d2550efe0caa03ab3c86dd37d76aef7e1 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeframever     5.89
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.115
+%define                qtver           5.15.2
 %define                kfname          kross
 #
 Summary:       Embedding of scripting into applications
 Name:          kf5-%{kfname}
-Version:       5.89.0
+Version:       5.115.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz
-# Source0-md5: 5e7e67177c5a113a947f62da2f2e03e0
+# Source0-md5: 95fef271cb5197f9a0f009e41e2072c9
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel
 BuildRequires: Qt5DBus-devel >= 5.2.0
@@ -20,7 +23,7 @@ BuildRequires:        Qt5Test-devel
 BuildRequires: Qt5UiTools-devel
 BuildRequires: Qt5Widgets-devel
 BuildRequires: Qt5Xml-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16
 BuildRequires: gettext-devel
 BuildRequires: kf5-attica-devel >= %{version}
 BuildRequires: kf5-extra-cmake-modules >= %{version}
@@ -78,12 +81,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
This page took 0.262524 seconds and 4 git commands to generate.