]> git.pld-linux.org Git - packages/kf5-kcodecs.git/blobdiff - kf5-kcodecs.spec
relup
[packages/kf5-kcodecs.git] / kf5-kcodecs.spec
index 7a38815b616c9ae30041906ca17c1c4c12abfa89..014e02f7cae53b5abaf90a21cf69c48b80a87c9e 100644 (file)
@@ -1,17 +1,20 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # - runtime Requires if any
-%define                kdeframever     5.92
+%define                kdeframever     5.97
 %define                qtver           5.15.2
 %define                kfname          kcodecs
 
 Summary:       String encoding
 Name:          kf5-%{kfname}
-Version:       5.92.0
-Release:       1
+Version:       5.97.0
+Release:       2
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 09293458c37ce89d8143d7078a150a77
+# Source0-md5: c4fda652d325ce599821b898c710105e
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Test-devel >= %{qtver}
@@ -56,10 +59,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
This page took 0.092039 seconds and 4 git commands to generate.