File audex.spec of Package audex

#
# spec file for package audex
#
# Copyright (c) 2021 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:           audex
Version:        0.95git.20201230T023948~5dd6439
Release:        0
Summary:        Tool for ripping compact discs
License:        GPL-3.0-or-later
URL:            https://invent.kde.org/multimedia/audex
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}-lang.tar.xz
BuildRequires:  cdparanoia-devel
BuildRequires:  extra-cmake-modules >= 5.64
BuildRequires:  cmake(KF5Cddb)
BuildRequires:  cmake(KF5Completion)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5KCMUtils)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Solid)
BuildRequires:  cmake(KF5TextWidgets)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5Script)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5X11Extras)
Recommends:     audex-lang
Recommends:     faac
Recommends:     flac
Recommends:     lame
Recommends:     python-eyeD3
Recommends:     vorbis-tools

%description
Audex is an audio grabber tool for CD-ROM drives.

%lang_package

%prep
%autosetup -p1 -a 1
cat >> CMakeLists.txt << EOF
ki18n_install(po)
EOF

%build
%cmake_kf5 -d build
%cmake_build

%install
%kf5_makeinstall -C build

%find_lang %{name}

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

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by