X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ka5-kwave.spec;h=05e854aa2b75e472d70753d9645ed6a282110a2f;hb=8ee8a64;hp=00b565a9caabfc733afe90401d60eb567d605fae;hpb=dd4a49f917d2686e321b0014077a6757491faa66;p=packages%2Fka5-kwave.git diff --git a/ka5-kwave.spec b/ka5-kwave.spec index 00b565a..05e854a 100644 --- a/ka5-kwave.spec +++ b/ka5-kwave.spec @@ -1,15 +1,18 @@ -%define kdeappsver 21.12.1 +# +# Conditional build: +%bcond_with tests # build with tests +%define kdeappsver 22.04.0 %define kframever 5.56.0 %define qtver 5.9.0 %define kaname kwave Summary: Sound editor Name: ka5-%{kaname} -Version: 21.12.1 +Version: 22.04.0 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Applications Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz -# Source0-md5: fa6cfce220b3590a6a64febff2f08b57 +# Source0-md5: 80a74f55a640f2dd79193e6fc8e9b2e6 URL: http://www.kde.org/ BuildRequires: ImageMagick BuildRequires: ImageMagick-coder-svg @@ -19,6 +22,7 @@ BuildRequires: Qt5Gui-devel >= 5.11.1 BuildRequires: Qt5Multimedia-devel BuildRequires: Qt5Network-devel >= 5.11.1 BuildRequires: Qt5Widgets-devel +BuildRequires: audiofile-devel >= 0.3.0 BuildRequires: cmake >= 2.8.12 BuildRequires: flac-devel BuildRequires: flac-c++-devel @@ -62,11 +66,17 @@ 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 @@ -82,9 +92,9 @@ rm -rf $RPM_BUILD_ROOT %files -f %{kaname}.lang %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/kwave -%ghost %{_libdir}/libkwave.so.21 +%ghost %{_libdir}/libkwave.so.22 %attr(755,root,root) %{_libdir}/libkwave.so.*.*.* -%ghost %{_libdir}/libkwavegui.so.21 +%ghost %{_libdir}/libkwavegui.so.22 %attr(755,root,root) %{_libdir}/libkwavegui.so.*.*.* %dir %{_libdir}/qt5/plugins/kwave %attr(755,root,root) %{_libdir}/qt5/plugins/kwave/kwaveplugin_about.so