File libakode.spec of Package libakode

# spec file for package libakode
# Copyright (c) 2011 SUSE LINUX Products 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

# norootforbuild

Name:           libakode
BuildRequires:  cdparanoia flac-devel kdelibs3-devel libao-devel libmusicbrainz-devel libsamplerate-devel libtheora-devel
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Summary:        A Simple Audio Back-End
Version:        2.0.2
Release:        206
%define tar_version 2.0.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        akode-%{tar_version}.tar.bz2
Patch1:         flac-64bit.diff
Patch2:         gcc-4.3.diff

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

%package devel
License:        LGPL-2.1+
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-%{tar_version} 
. /etc/opt/kde3/common_options

. /etc/opt/kde3/common_options
./configure \
  --prefix=/usr \
  --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 %{?jobs:-j%jobs}

. /etc/opt/kde3/common_options

rm -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files devel