File kde3-kwave.spec of Package kde3-kwave
#
# spec file for package kwave (Version 0.7.11)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
# Copyright (c) 2010 Kyrill Detinov
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
%define _prefix /opt/kde3
Name: kde3-kwave
Version: 0.7.12
Release: 0
License: GPL-2.0-or-later
Summary: Sound Editor for KDE3
URL: http://kwave.sourceforge.net/
Group: Productivity/Multimedia/Sound/Editors and Convertors
Source0: kwave-%{version}.tar.bz2
Patch1: kwave-0.7.12-desktop-file.patch
Patch2: replace-recode.diff
Patch3: kwave-deprecate-update-desktop-files.patch
BuildRequires: kdelibs3-devel
BuildRequires: kdesdk3-translate
BuildRequires: gsl-devel
BuildRequires: cmake
BuildRequires: flac-devel
BuildRequires: ImageMagick
BuildRequires: fdupes
BuildRequires: id3lib-devel
BuildRequires: libmad-devel
Provides: kwave = %{version}
Obsoletes: kwave <= 0.7.11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
With Kwave you can edit many sorts of wav-files including multi-channel files.
You are able to alter and play back each channel on its own.
Kwave also includes many plugins (most are still under development) to transform
the wave-file in several ways and presents a graphical view with a complete
zoom- and scroll capability.
Authors:
--------
Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
Martin Wilz <martin@wilz.de>
%package -n libkwave0
License: GPL-2.0-or-later
Summary: Shared Library for Kwave
Group: Development/Libraries/C and C++
%description -n libkwave0
Shared library for the package Kwave.
Authors:
--------
Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
Martin Wilz <martin@wilz.de>
%package -n libkwave-devel
License: GPL-2.0-or-later
Summary: Development Files for Kwave
Group: Development/Libraries/C and C++
Requires: libkwave0 = %{version}
%description -n libkwave-devel
Development files for the package Kwave.
Authors:
--------
Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
Martin Wilz <martin@wilz.de>
%prep
%setup -qn kwave-%{version}
%patch -P 1
%patch -P 2 -p0
sed -i 1i\ '#include <unistd.h>' libkwave/KwaveFilterPlugin.cpp
sed -i 's|pow10|exp10|g' plugins/record/LevelMeter.cpp
%patch -P 3 -p1
%build
export CFLAGS="%{optflags} -Wl,--add-needed"
export CXXFLAGS="%{optflags} -Wl,--add-needed -fpermissive -std=c++11"
%{__mkdir} build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_MP3=ON ..
%{__make} %{?_smp_mflags}
%install
pushd build
%{makeinstall}
popd
%{__rm} -rf %{buildroot}%{_datadir}/doc/kwave-%{version}
%fdupes -s %{buildroot}%{_datadir}
%find_lang kwave
%post -n libkwave0 -p /sbin/ldconfig
%postun -n libkwave0 -p /sbin/ldconfig
%files -f kwave.lang
%defattr(-,root,root,-)
%doc AUTHORS CHANGES LICENSES README TODO
%{_bindir}/kwave
%{_libdir}/kde3/plugins/kwave
%{_datadir}/app*/*/*.desktop
%{_datadir}/apps/kwave
%{_datadir}/icons/*/*/*/*.png
%{_datadir}/mimelnk/*/*.desktop
%files -n libkwave0
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files -n libkwave-devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%changelog
# kate: space-indent on; indent-width 4;