A new user interface for you! Read more...

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 http://bugs.opensuse.org/
#


Name:           libakode
Version:        2.0.2
Release:        0
Summary:        A Simple Audio Back-End
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Url:            http://www.kde.org/
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

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

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

%build
. %{_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 \
  --libdir=%{_libdir}
make %{?_smp_mflags}

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

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

%files
%defattr(-,root,root)
%{_bindir}/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)
%{_bindir}/akode-config
%{_includedir}/akode

%changelog