kio_audiocd/kio_audiocd.spec

114 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kio_audiocd
#
# Copyright (c) 2018 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: kio_audiocd
Version: 19.07.90
Release: 0
Summary: KDE I/O Slave for Audio CDs
License: GPL-2.0-or-later
Group: System/GUI/KDE
URL: http://www.kde.org
Source0: audiocd-kio-%{version}.tar.xz
BuildRequires: alsa-devel
BuildRequires: cdparanoia-devel
BuildRequires: extra-cmake-modules
BuildRequires: flac-devel
BuildRequires: kcmutils-devel
BuildRequires: kconfig-devel
BuildRequires: kdoctools-devel
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: libkcddb-devel
BuildRequires: libkcompactdisc-devel
BuildRequires: libvorbis-devel
BuildRequires: phonon4qt5-devel
%if %{with lang}
Recommends: %{name}-lang
%endif
%description
This package contains an KIO slave to access audio CDs.
%package devel
Summary: Development package for kio_audiocd
License: LGPL-2.1-or-later
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
%description devel
This package contains the development files for the audiocd kio slave
%if %{with lang}
%lang_package
%endif
%prep
%setup -q -n audiocd-kio-%{version}
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%{kf5_find_htmldocs}
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING*
%dir %{_kf5_sharedir}/konqsidebartng
%dir %{_kf5_sharedir}/konqsidebartng/virtual_folders
%dir %{_kf5_sharedir}/konqsidebartng/virtual_folders/services
%dir %{_kf5_sharedir}/solid
%dir %{_kf5_sharedir}/solid/actions
%doc %lang(en) %{_kf5_htmldir}/en/kioslave5/audiocd/
%doc %lang(en) %{_kf5_htmldir}/en/kcontrol/audiocd/
%{_kf5_configkcfgdir}/audiocd_*_encoder.kcfg
%{_kf5_debugdir}/kio_audiocd.categories
%{_kf5_libdir}/libaudiocdplugins.so.*
%{_kf5_plugindir}/libaudiocd_encoder_*.so
%{_kf5_plugindir}/kcm_audiocd.so
%{_kf5_plugindir}/kf5/kio/audiocd.so
%{_kf5_servicesdir}/audiocd.desktop
%{_kf5_servicesdir}/audiocd.protocol
%{_kf5_sharedir}/konqsidebartng/virtual_folders/services/audiocd.desktop
%{_kf5_sharedir}/solid/actions/solid_audiocd.desktop
%{_kf5_appstreamdir}/org.kde.kio_audiocd.appdata.xml
%files devel
%license COPYING*
%{_includedir}/audiocdencoder.h
%{_includedir}/audiocdplugins_export.h
%{_kf5_libdir}/libaudiocdplugins.so
%if %{with lang}
%files lang -f %{name}.lang
%license COPYING*
%endif
%changelog