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 http://bugs.opensuse.org/
#
# 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
Url: http://www.kde.org/
%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
%description
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.
%prep
%setup -q -n akode-%{tar_version}
%patch1
%patch2
. /etc/opt/kde3/common_options
update_admin
%build
. /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 \
--libdir=%_libdir
make %{?jobs:-j%jobs}
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%clean
rm -rf ${RPM_BUILD_ROOT}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/bin/akodeplay
%_libdir/libakode.*
%_libdir/libakode_mpc_decoder.*
%_libdir/libakode_src_resampler.*
%_libdir/libakode_xiph_decoder.*
%_libdir/libakode_alsa_sink.*
%_libdir/libakode_jack_sink.*
%files devel
%defattr(-,root,root)
/usr/bin/akode-config
/usr/include/akode
%changelog