]> git.pld-linux.org Git - packages/ka5-spectacle.git/blobdiff - ka5-spectacle.spec
- updated to 22.04.3
[packages/ka5-spectacle.git] / ka5-spectacle.spec
index 0a5e24f69b752f7fbf4720111db0d0f8b6596379..968c3295b362d01ce0604895f69106612b22a7f3 100644 (file)
@@ -1,16 +1,19 @@
-%define                kdeappsver      21.08.0
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeappsver      22.04.3
+%define                qtver           5.15.2
 %define                kaname          spectacle
 
 Summary:       Spectacle
 Summary(pl.UTF-8):     Spectacle
 Name:          ka5-%{kaname}
-Version:       21.08.0
+Version:       22.04.3
 Release:       1
 License:       GPL
 Group:         X11/Applications/Editors
-Source0:       http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: fcabb598567c1bc2ac20b826496c851f
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 08cbda71de0b978d75322325c76c8e46
 URL:           http://www.kde.org/
 BuildRequires: Qt5Concurrent-devel
 BuildRequires: Qt5Core-devel
@@ -40,6 +43,7 @@ BuildRequires:        kf5-kxmlgui-devel >= 5.29.0
 BuildRequires: ninja
 BuildRequires: qt5-build >= 5.6.0
 BuildRequires: shared-mime-info
+BuildRequires: xcb-util-cursor-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -59,11 +63,17 @@ mogą być następnie zapisane w wielu formatach.
 install -d build
 cd build
 %cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DHTML_INSTALL_DIR=%{_kdedocdir} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        ..
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %ninja_install -C build
@@ -87,6 +97,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/knotifications5/spectacle.notifyrc
 %{_datadir}/metainfo/org.kde.spectacle.appdata.xml
 %attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-shortcuts
+%attr(755,root,root) %{_libdir}/kconf_update_bin/spectacle-migrate-rememberregion
+%{_datadir}/kconf_update/spectacle_rememberregion.upd
 %attr(755,root,root) %{_datadir}/kconf_update/50-clipboard_settings_change.py
 %{_datadir}/kconf_update/spectacle_clipboard.upd
 %{_datadir}/kconf_update/spectacle_shortcuts.upd
This page took 0.117148 seconds and 4 git commands to generate.