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

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

libworkman is a multi-plaform CD-Player library for creating various

%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.

%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

  %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

  cd build

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files devel

openSUSE Build Service is sponsored by