]> git.pld-linux.org Git - packages/kf5-qqc2-desktop-style.git/blobdiff - kf5-qqc2-desktop-style.spec
- updated to 5.99.0
[packages/kf5-qqc2-desktop-style.git] / kf5-qqc2-desktop-style.spec
index 45bedaac7ac52d4e571ea1b79981c307fc9974a5..cb2b93ec452be886c2071d6299a66ec5361b7f4a 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeframever     5.67
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.99
+%define                qtver           5.15.2
 %define                kfname          qqc2-desktop-style
 
 Summary:       QQC2StyleBridge
 Name:          kf5-%{kfname}
-Version:       5.67.0
+Version:       5.99.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 46b9c80d3ef84a26803d47fc57426158
+Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 2fe76bde259a87c2b204517222d46181
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Quick-controls2-devel >= %{qtver}
@@ -17,6 +20,8 @@ BuildRequires:        Qt5Test-devel >= %{qtver}
 BuildRequires: Qt5Widgets-devel >= %{qtver}
 BuildRequires: cmake >= 2.8.12
 BuildRequires: kf5-extra-cmake-modules >= %{version}
+BuildRequires: kf5-kconfig-devel >= %{version}
+BuildRequires: kf5-kirigami2-devel >= %{version}
 BuildRequires: ninja
 BuildRequires: rpmbuild(macros) >= 1.164
 BuildRequires: tar >= 1:1.22
@@ -53,10 +58,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
@@ -74,3 +85,4 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_libdir}/cmake/KF5QQC2DeskopStyle
+%{_libdir}/cmake/KF5QQC2DesktopStyle
This page took 0.031539 seconds and 4 git commands to generate.