]> git.pld-linux.org Git - packages/ka5-kwave.git/blobdiff - ka5-kwave.spec
- updated to 22.04.0
[packages/ka5-kwave.git] / ka5-kwave.spec
index bc724abaa2423abdfd91a1f5888766008f6bcebc..05e854aa2b75e472d70753d9645ed6a282110a2f 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      21.04.2
+#
+# 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.04.2
+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: a3b6fd43f3671423e99b090f75fb2077
+# 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
@@ -51,6 +55,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Kwave is a sound editor built on the KDE Frameworks 5.
 
+%description -l pl.UTF-8
+Kwave to edytor dźwięku zbudowany na bazie KDE Frameworks 5.
+
 %prep
 %setup -q -n %{kaname}-%{version}
 
@@ -59,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
@@ -79,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
This page took 0.297474 seconds and 4 git commands to generate.