File kio_audiocd4.spec of Package kio_audiocd4

#
# spec file for package kio_audiocd4
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#


Name:           kio_audiocd4
BuildRequires:  cdparanoia-devel
BuildRequires:  flac-devel
BuildRequires:  libkcddb4-devel
BuildRequires:  libkcompactdisc4-devel
BuildRequires:  libkde4-devel
BuildRequires:  libvorbis-devel
BuildRequires:  xz
Summary:        KDE I/O Slave for Audio CDs
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Version:        16.08.3
Release:        0
Source0:        audiocd-kio-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       kdemultimedia3-CD:/opt/kde3/share/services/audiocd.protocol
%kde4_runtime_requires

%description
This package contains an KIO slave to access audio CDs.

%package devel
Summary:        Development package for kio_audiocd
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}
Conflicts:      kio_audiocd-devel
%description devel
This package contains the development files for the audiocd kio slave

%prep
%setup -q -n audiocd-kio-%{version}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %kde_post_install

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

%files
%defattr(-,root,root)
%doc COPYING*
%doc %lang(en) %{_kde4_htmldir}/en/kioslave/
%dir %{_kde4_appsdir}/solid
%dir %{_kde4_appsdir}/solid/actions
%{_kde4_appsdir}/konqsidebartng/
%{_kde4_appsdir}/solid/actions/solid_audiocd.desktop
%{_kde4_configkcfgdir}/audiocd_flac_encoder.kcfg
%{_kde4_configkcfgdir}/audiocd_lame_encoder.kcfg
%{_kde4_configkcfgdir}/audiocd_vorbis_encoder.kcfg
%{_kde4_libdir}/libaudiocdplugins.so.*
%{_kde4_modulesdir}/kcm_audiocd.so
%{_kde4_modulesdir}/kio_audiocd.so
%{_kde4_modulesdir}/libaudiocd_encoder_flac.so
%{_kde4_modulesdir}/libaudiocd_encoder_lame.so
%{_kde4_modulesdir}/libaudiocd_encoder_vorbis.so
%{_kde4_modulesdir}/libaudiocd_encoder_wav.so
%{_kde4_servicesdir}/audiocd.desktop
%{_kde4_servicesdir}/audiocd.protocol

%files devel
%defattr(-,root,root)
%doc COPYING*
%{_kde4_includedir}/audiocdencoder.h
%{_kde4_libdir}/libaudiocdplugins.so

%changelog