X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=kf5-kirigami2.spec;h=dd0770e549b27c705b6de213da53af7f4cf167bf;hb=f5ed1977f70749a54fcd9bd4d5f2a6a45a0e2514;hp=5cb8938e951911f5e942cc5bf861c65da935224b;hpb=3c17510bdb2fa9c473c050820d82cbaddb9a26fc;p=packages%2Fkf5-kirigami2.git diff --git a/kf5-kirigami2.spec b/kf5-kirigami2.spec index 5cb8938..dd0770e 100644 --- a/kf5-kirigami2.spec +++ b/kf5-kirigami2.spec @@ -1,18 +1,21 @@ # +# Conditional build: +%bcond_with tests # build with tests +# # TODO: # - runtime Requires if any -%define kdeframever 5.83 -%define qtver 5.9.0 +%define kdeframever 5.106 +%define qtver 5.15.2 %define kfname kirigami2 Summary: Kirigami2 library Name: kf5-%{kfname} -Version: 5.83.0 +Version: 5.106.0 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Libraries -Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz -# Source0-md5: 6eab2659bfb2c83e83b23a9e6b55f0df +Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz +# Source0-md5: f32e5add05190a77eff2d47fbce9cee1 URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5Gui-devel >= %{qtver} @@ -52,10 +55,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