File audex.spec of Package audex5

#
# spec file for package audex
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           audex5
Version:        0.79
Release:        0
%if 0%{?sle_version} > 0 && 0%{?sle_version} <= 150200
# treat it as update despite the "lower" revision number, I changed the version format...
# Remove when Leap 15.2 is out of support.
Epoch:          1
%endif
Summary:        KDE based CDDA extraction tool
License:        GPL-3.0 or later
Group:          Productivity/Multimedia/CD/Grabbers
Url:            http://kde.maniatek.com/audex/
Source0:        http://kde.maniatek.com/audex/files/audex-%{version}.tar.xz
BuildRequires:  extra-cmake-modules
BuildRequires:  kcmutils-devel
BuildRequires:  kconfig-devel
BuildRequires:  kcompletion-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kcrash-devel
BuildRequires:  kf5-filesystem
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kio-devel
BuildRequires:  ktextwidgets-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  libkcddb5-devel
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  solid-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
BuildRequires:  cdparanoia-devel
BuildRequires:  xz
# needed for mp3 tagging support
# python-eyeD3 existed until Leap 42.3, but there are also
# eye3D packages available on OBS, in multimedia:apps in particular
Recommends:     eyeD3
Recommends:     python-eyeD3
Recommends:     %{name}-lang = %{version}

%description
Audex is a tool for ripping compact discs.

%lang_package

%prep
%setup -q -n audex-%{version}

%build
%cmake_kf5 -d build
%make_jobs

%install
%kf5_makeinstall -C build

%if 0%{?suse_version}
%suse_update_desktop_file -r org.kde.audex Qt KDE AudioVideo Audio CD
%endif

#find_lang %{name}

%files
%doc LICENCE README.md
%{_kf5_applicationsdir}/org.kde.audex.desktop
%{_kf5_appstreamdir}/org.kde.audex.appdata.xml
%{_kf5_bindir}/audex
%{_kf5_iconsdir}/hicolor/*/apps/audex.png
%{_kf5_sharedir}/audex/
%dir %{_kf5_sharedir}/solid
%dir %{_kf5_sharedir}/solid/actions
%{_kf5_sharedir}/solid/actions/audex-rip-audiocd.desktop

#%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by