File libakode.spec of Package libakode

# spec file for package libakode
# Copyright (c) 2016 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:           libakode
Version:        2.0.2
Release:        0
Summary:        A Simple Audio Back-End
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Source0:        akode-%{version}.tar.bz2
Patch1:         flac-64bit.diff
Patch2:         gcc-4.3.diff
#PATCH-FIX-UPSTREAM template parameter can't be the same name
Patch3:         libakode-2.0.2-gcc6.patch
BuildRequires:  cdparanoia
BuildRequires:  flac-devel
BuildRequires:  kdelibs3-devel
BuildRequires:  libao-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  libtheora-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

aKode is a simple audio back-end suitable for simple actions.

%package devel
Summary:        a simple audio backend
Group:          Development/Libraries/KDE
Requires:       libakode = %{version}
Requires:       libstdc++-devel

%description devel
aKode is a simple audio backend suitable for simple actions.

%setup -q -n akode-%{version}
%patch3 -p1
. %{_sysconfdir}/opt/kde3/common_options

. %{_sysconfdir}/opt/kde3/common_options
./configure \
  --prefix=%{_prefix} \
  --enable-audio=$AUDIO \
  --with-kscd-cdda \
  --without-polypaudio \
  --without-sun \
  --without-oss \
  --with-alsa \
  --with-jack \
  --without-libltdl \
  --with-vorbis \
  --disable-final \
  --without-ffmpeg \
  --enable-sdl \
make %{?_smp_mflags}

. %{_sysconfdir}/opt/kde3/common_options
make DESTDIR=%{buildroot} $INSTALL_TARGET

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


%files devel