X-Git-Url: https://git.pld-linux.org/?p=packages%2Fka5-kwave.git;a=blobdiff_plain;f=ka5-kwave.spec;h=0dfa5ec7ff53256d9eb28a1cb28a6b46f72a1aed;hp=7dbfc93d908255a11bc56318ec417bb4a55739eb;hb=HEAD;hpb=67a2274e9e779f1bb8c4fa221a3367c02cea704f diff --git a/ka5-kwave.spec b/ka5-kwave.spec index 7dbfc93..e70f6a8 100644 --- a/ka5-kwave.spec +++ b/ka5-kwave.spec @@ -1,18 +1,18 @@ # # Conditional build: %bcond_with tests # build with tests -%define kdeappsver 23.04.1 +%define kdeappsver 23.08.5 %define kframever 5.94.0 %define qtver 5.15.2 %define kaname kwave Summary: Sound editor Name: ka5-%{kaname} -Version: 23.04.1 +Version: 23.08.5 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Applications Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz -# Source0-md5: 9d7bf113d16eaf5159f59323877b247e +# Source0-md5: a1a4ae6e687440a40e0a504d2b90df45 URL: http://www.kde.org/ BuildRequires: ImageMagick BuildRequires: ImageMagick-coder-svg @@ -24,7 +24,7 @@ BuildRequires: Qt5Network-devel >= 5.11.1 BuildRequires: Qt5Widgets-devel BuildRequires: alsa-lib-devel BuildRequires: audiofile-devel >= 0.3.0 -BuildRequires: cmake >= 2.8.12 +BuildRequires: cmake >= 3.20 BuildRequires: fftw3-devel BuildRequires: flac-devel BuildRequires: flac-c++-devel @@ -55,6 +55,7 @@ BuildRequires: rpmbuild(macros) >= 1.164 BuildRequires: shared-mime-info BuildRequires: tar >= 1:1.22 BuildRequires: xz +Requires: %{name}-data = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -63,22 +64,32 @@ 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. +%package data +Summary: Data files for %{kaname} +Summary(pl.UTF-8): Dane dla %{kaname} +Group: X11/Applications +BuildArch: noarch + +%description data +Data files for %{kaname}. + +%description data -l pl.UTF-8 +Dane dla %{kaname}. + %prep %setup -q -n %{kaname}-%{version} %build -install -d build -cd build %cmake \ + -B build \ -G Ninja \ %{!?with_tests:-DBUILD_TESTING=OFF} \ -DHTML_INSTALL_DIR=%{_kdedocdir} \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - .. -%ninja_build + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON +%ninja_build -C build %if %{with tests} -ctest +ctest --test-dir build %endif @@ -94,7 +105,7 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%files -f %{kaname}.lang +%files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/kwave %ghost %{_libdir}/libkwave.so.23 @@ -132,6 +143,9 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/qt5/plugins/kwave/kwaveplugin_stringenter.so %attr(755,root,root) %{_libdir}/qt5/plugins/kwave/kwaveplugin_volume.so %attr(755,root,root) %{_libdir}/qt5/plugins/kwave/kwaveplugin_zero.so + +%files data -f %{kaname}.lang +%defattr(644,root,root,755) %{_desktopdir}/org.kde.kwave.desktop %{_iconsdir}/hicolor/scalable/actions/kwave_player_end.svgz %{_iconsdir}/hicolor/scalable/actions/kwave_player_fwd.svgz