File soundkonverter.spec of Package soundkonverter

#
# spec file for package soundkonverter
#
# Copyright (c) 2020 SUSE LLC
#
# 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.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           soundkonverter
Version:        3.0.1
Release:        0
Summary:        Audio file converter, CD ripper and Replay Gain tool
License:        GPL-2.0-only
Group:          Productivity/Multimedia/Sound/Editors and Convertors
URL:            https://github.com/dfaust/soundkonverter
Source0:        https://github.com/dfaust/soundkonverter/archive/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch0:         Use-local-cmake-modules-first.patch
BuildRequires:  cdparanoia-devel
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5Cddb)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KDELibs4Support)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Solid)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Phonon4Qt5)
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  pkgconfig(taglib)
Requires:       cdparanoia
Requires:       flac
Requires:       speex
Requires:       vorbis-tools
Requires:       wavpack
Recommends:     MPlayer
Recommends:     aacgain
Recommends:     faac
Recommends:     faad2
Recommends:     ffmpeg
Recommends:     flake
Recommends:     fluidsynth
Recommends:     lame
Recommends:     mac
Recommends:     mp3gain
Recommends:     mppdec
Recommends:     mppenc
Recommends:     opus-tools
Recommends:     shorten
Recommends:     sox
Recommends:     timidity
Recommends:     twolame
Recommends:     vorbisgain

%description
soundKonverter is a frontend to various audio converters.

The key features are:
- Audio file conversion
- Replay Gain calculation
- CD ripping

soundKonverter supports reading and writing tags and covers for many formats, so they are preserved when converting files.

It is extendable by plugins and supports many backends including:

- Audio file conversion
  Backends: faac, faad, ffmpeg, flac, lame, mplayer, neroaac, timidity, fluidsynth, vorbistools, opustools, sox, twolame,
  flake, mac, shorten, wavpack and speex
  Formats: ogg vorbis, mp3, flac, wma, aac, ac3, opus, alac, mp2, als, amr nb, amr wb, ape, speex, m4a, mp1, musepack shorten,
  tta, wavpack, ra, midi, mod, 3gp, rm, avi, mkv, ogv, mpeg, mov, mp4, flv, wmv and rv

- Replay Gain calculation
  Backends: aacgain, metaflac, mp3gain, vorbisgain, wvgain, mpcgain
  Formats: aac, mp3, flac, ogg vorbis, wavpack, musepack

- CD ripping
  Backends: cdparanoia

If you try to convert a file that is not supported, soundKonverter will tell you which backend you need to install.

%prep
%autosetup -p1

%build
pushd src
%cmake_kf5 -d build -- "-DKF5_BUILD=ON"
%cmake_build
popd

%install
pushd src
%kf5_makeinstall -C build
popd

%suse_update_desktop_file -r %{name} AudioVideo AudioVideoEditing KDE

%find_lang %{name}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f %{name}.lang
%license src/COPYING
%doc src/CHANGELOG src/README
%dir %{_kf5_kxmlguidir}/soundkonverter
%dir %{_kf5_sharedir}/solid
%dir %{_kf5_sharedir}/solid/actions
%dir %{_kf5_sharedir}/soundkonverter
%{_kf5_applicationsdir}/soundkonverter.desktop
%{_kf5_appsdir}/solid/actions/soundkonverter-rip-audiocd.desktop
%{_kf5_bindir}/soundkonverter
%{_kf5_iconsdir}/hicolor/*/apps/soundkonverter-replaygain.png
%{_kf5_iconsdir}/hicolor/*/apps/soundkonverter.png
%{_kf5_kxmlguidir}/soundkonverter/soundkonverterui.rc
%{_kf5_libdir}/libsoundkonvertercore.so*
%{_kf5_plugindir}/soundkonverter_*
%{_kf5_servicesdir}/soundkonverter_*
%{_kf5_servicetypesdir}/soundkonverter_codecplugin.desktop
%{_kf5_servicetypesdir}/soundkonverter_filterplugin.desktop
%{_kf5_servicetypesdir}/soundkonverter_replaygainplugin.desktop
%{_kf5_servicetypesdir}/soundkonverter_ripperplugin.desktop
%{_kf5_sharedir}/appdata/soundkonverter.appdata.xml
%{_kf5_sharedir}/soundkonverter/*

%changelog
openSUSE Build Service is sponsored by