File libkcompactdisc4.spec of Package libkcompactdisc4

#
# spec file for package libkcompactdisc4
#
# 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:           libkcompactdisc4
BuildRequires:  alsa-devel
BuildRequires:  libkde4-devel
BuildRequires:  xz
Summary:        KDE CD Library
License:        GPL-2.0+
Group:          System/GUI/KDE
Version:        16.08.3
Release:        0
Source0:        libkcompactdisc-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.kde.org/
%kde4_runtime_requires

%description
libworkman is a multi-plaform CD-Player library for creating various
CD-Player-UIs.

%package devel
Summary:        KDE CD Library: Build Environment
Group:          Development/Libraries/C and C++
Requires:       libkcompactdisc4 = %{version}
Requires:       libkde4-devel

%description devel
This package contains the development headers for the libkcompactdisc.

%prep
%setup -q -n libkcompactdisc-%{version}
FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" wmlib/wm_helpers.c

%build
  %cmake_kde4 -d build
  # The option -std=iso9899:1990 causes a compilation breakage with the latest alsa 
  # Until we have a proper fix, let's remove this option
  sed -i "s/-std=iso9899:1990//g" CMakeFiles/kcompactdisc.dir/flags.make
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %kde_post_install

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_kde4_libdir}/libkcompactdisc.so.*

%files devel
%defattr(-,root,root)
%{_kde4_includedir}/libkcompactdisc/
%{_kde4_libdir}/cmake/libkcompactdisc/
%{_kde4_libdir}/libkcompactdisc.so

%changelog
openSUSE Build Service is sponsored by