File audex5.spec of Package audex5

#
# spec file for package audex5
#
# 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/
#


#%%bcond_without lang
Name:           audex5
Version:        0.95+git.20220913.2e6a837
Release:        0
Summary:        KDE based CDDA extraction tool
License:        GPL-3.0-or-later
Group:          Productivity/Multimedia/CD/Grabbers
URL:            https://invent.kde.org/multimedia/audex
Source0:        https://github.com/KDE/audex/archive/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:  cdparanoia-devel
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  solid-devel
BuildRequires:  xz
BuildRequires:  cmake(KF5Cddb)
BuildRequires:  cmake(KF5Completion)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5KCMUtils) >= 5.64.0
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5TextWidgets)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
Recommends:     %{name}-lang = %{version}
Recommends:     faac
Recommends:     flag
Recommends:     lame
Recommends:     python-eyeD3
Recommends:     vorbis-tools
Provides:       audex = %{version}
Obsoletes:      audex5 < %{version}
Obsoletes:      audex < %{version}
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

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

#%%if %%{with lang}
#%%lang_package
#%%endif

%prep
%setup -q

%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 CD
%endif

#%%if %%{with lang}
#%%find_lang %%{name}
#%%endif

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

%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_bindir}/audex
%{_kf5_iconsdir}/hicolor/*/apps/audex.png
%{_datadir}/metainfo/org.kde.audex.appdata.xml
#%%{_kf5_kxmlguidir}/audex/

#%%if %%{with lang}
#%%files lang -f %%{name}.lang
#%%defattr(-,root,root,-)
#%%endif

%changelog
openSUSE Build Service is sponsored by