415c443
415c443
Summary: Audio-decoding framework 
415c443
Name:	 akode 
809cc92
Version: 2.0.2
635831e
Release: 4%{?dist}
aefa520
aefa520
License: LGPLv2+
415c443
Group: 	 System Environment/Libraries
0339a9f
#URL:	 http://carewolf.com/akode/  
0339a9f
URL:	 http://www.kde-apps.org/content/show.php?content=30375
809cc92
Source0: http://www.kde-apps.org/CONTENT/content-files/30375-akode-%{version}.tar.bz2
415c443
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
415c443
98b5853
Patch1: akode-pulseaudio.patch
809cc92
Patch2: akode-2.0.2-multilib.patch
809cc92
Patch3: akode-2.0.2-flac113-portable.patch
98b5853
809cc92
%define _with_flac --with-flac
3149cb3
%if 0%{?fedora} > 4
3149cb3
%define _with_jack --with-jack
809cc92
%define _with_libsamplerate --with-libsamplerate
98b5853
%define _with_pulseaudio --with-pulseaudio
98b5853
%endif
98b5853
809cc92
BuildRequires: automake libtool
415c443
BuildRequires: alsa-lib-devel
809cc92
%{?_with_flac:BuildRequires: flac-devel}
3149cb3
%{?_with_jack:BuildRequires: jack-audio-connection-kit-devel}
809cc92
%{?_with_libsamplerate:BuildRequires: libsamplerate-devel}
809cc92
BuildRequires: libvorbis-devel
809cc92
%{?_with_pulseaudio:BuildRequires: pulseaudio-lib-devel}
809cc92
BuildRequires: speex-devel
415c443
415c443
%description
415c443
aKode is a simple audio-decoding frame-work that provides a uniform
415c443
interface to decode the most common audio-formats. It also has a direct
415c443
playback option for a number of audio-outputs.
415c443
415c443
aKode currently has the following decoder plugins:
415c443
* mpc: Decodes musepack aka mpc audio.
415c443
* xiph: Decodes FLAC, Ogg/FLAC, Speex and Ogg Vorbis audio. 
415c443
415c443
aKode also has the following audio outputs:
415c443
* alsa: Outputs to ALSA (dmix is recommended).
415c443
415c443
%package devel
415c443
Summary: Headers for developing programs that will use %{name} 
415c443
Group:   Development/Libraries
415c443
Requires: %{name} = %{version}-%{release}
809cc92
Requires: pkgconfig
415c443
%description devel
415c443
%{summary}.
415c443
3149cb3
%package jack 
3149cb3
Summary: Jack audio output backend for %{name}
3149cb3
Group:   Development/Libraries
3149cb3
Requires: %{name} = %{version}-%{release}
3149cb3
%description jack 
3149cb3
%{summary}.
3149cb3
aefa520
%package pulseaudio
aefa520
Summary: Pulseaudio output backend for %{name}
3149cb3
Group:   Development/Libraries
3149cb3
Requires: %{name} = %{version}-%{release}
aefa520
%description pulseaudio
3149cb3
%{summary}.
aefa520
Recommended for network transparent audio.
3149cb3
aefa520
# Packaged separately to keep main/core %{akode} package LGPL-clean.
aefa520
%package libsamplerate 
aefa520
Summary: Resampler based on libsamplerate for %{name}
3149cb3
Group:   Development/Libraries
aefa520
License: GPLv2+
3149cb3
Requires: %{name} = %{version}-%{release}
aefa520
%description libsamplerate 
3149cb3
%{summary}.
3149cb3
415c443
415c443
%prep
415c443
%setup -q -n %{name}-%{version}%{?beta}
415c443
98b5853
%patch1 -p1 -b .pulseaudio
809cc92
%patch2 -p1 -b .multilib
809cc92
%patch3 -p4 -b .flac113_portable
98b5853
809cc92
#[ ! -f configure ] && \
809cc92
make -f Makefile.cvs
415c443
415c443
415c443
%build
415c443
%configure \
415c443
  --disable-static \
415c443
  --disable-debug --disable-warnings --disable-dependency-tracking \
415c443
  --without-libltdl \
415c443
  --with-alsa \
aefa520
  --without-oss \
809cc92
  %{?_with_flac} %{!?_with_flac:--without-flac} \
3149cb3
  %{?_with_jack} %{!?_with_jack:--without-jack} \
809cc92
  %{?_with_libsamplerate} %{!?_with_libsamplerate:--without-libsamplerate} \
98b5853
  %{?_with_pulseaudio} %{!?_with_pulseaudio:--without-pulseaudio} \
415c443
  --with-speex \
415c443
  --with-vorbis \
415c443
  --without-ffmpeg \
415c443
  --without-libmad 
415c443
415c443
make %{?_smp_mflags}
415c443
415c443
415c443
%install
aefa520
rm -rf %{buildroot} 
415c443
aefa520
make install DESTDIR=%{buildroot}
415c443
415c443
# unpackaged files
aefa520
rm -f %{buildroot}%{_libdir}/lib*.la
aefa520
#rm -f %{buildroot}%{_libdir}/libakode_oss_sink.so
415c443
0339a9f
# rpmdocs
0339a9f
for file in AUTHORS COPYING NEWS README TODO ; do
0339a9f
  test -s  "$file" && install -p -m644 -D "$file" "rpmdocs/$file"
0339a9f
done
0339a9f
415c443
415c443
%clean
aefa520
rm -rf %{buildroot} 
415c443
415c443
415c443
%post -p /sbin/ldconfig
415c443
415c443
%postun -p /sbin/ldconfig
415c443
415c443
415c443
%files
415c443
%defattr(-,root,root,-)
0339a9f
%doc rpmdocs/* 
415c443
%{_bindir}/akodeplay
415c443
%{_libdir}/libakode.so.*
3149cb3
%{_libdir}/libakode_alsa_sink.so
3149cb3
%{_libdir}/libakode_mpc_decoder.so
3149cb3
%{_libdir}/libakode_xiph_decoder.so
415c443
415c443
%files devel
415c443
%defattr(-,root,root,-)
415c443
%{_bindir}/akode-config
415c443
%{_includedir}/*
415c443
%{_libdir}/libakode.so
809cc92
%{_libdir}/pkgconfig/*.pc
415c443
3149cb3
%if "%{?_with_jack:1}" == "1"
3149cb3
%files jack 
3149cb3
%defattr(-,root,root,-)
3149cb3
%{_libdir}/libakode_jack_sink.so
3149cb3
%endif
3149cb3
809cc92
# License: GPLv2+
809cc92
%if "%{?_with_libsamplerate:1}" == "1"
809cc92
%files libsamplerate
809cc92
%defattr(-,root,root,-)
809cc92
%{_libdir}/libakode_src_resampler.so
809cc92
%endif
809cc92
98b5853
%if "%{?_with_pulseaudio:1}" == "1"
98b5853
%files pulseaudio
98b5853
%defattr(-,root,root,-)
98b5853
%{_libdir}/libakode_polyp_sink.so
98b5853
%endif
98b5853
aefa520
809cc92
%changelog
635831e
* Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.2-4
635831e
- -Requires: %%name-pulseaudio (can be added to kde-settings-pulseaudio)
635831e
809cc92
* Sun Dec 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.2-3
809cc92
- fix flac113 support
98b5853
809cc92
* Sun Dec 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.2-2
809cc92
- fix multilib conflicts (#340591)
809cc92
809cc92
* Sun Dec 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.2-1
809cc92
- akode-2.0.2
809cc92
809cc92
* Wed Sep 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.1-9
809cc92
- BR: pulseaudio-libs-devel
415c443
aefa520
* Mon Aug 20 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.1-8
aefa520
- -libsamplerate: License: GPLv2+
aefa520
- omit oss_sink
aefa520
aefa520
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.1-7
aefa520
- Requires: %%{name}-pulseaudio (f8+)
aefa520
- License: LGPLv2+
aefa520
44e98d0
* Thu Feb 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.1-6
44e98d0
- respin (for flac, fc7+)
44e98d0
98b5853
* Mon Feb 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.1-5
98b5853
- enable pulseaudio support
aefa520
- Requires: akode-pulseaudio (f7+)
98b5853
758f7cb
* Thu Dec 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.0.1-4
3149cb3
- enable jack support (subpkg)
3149cb3
- package (GPL'd) libsamplerate-based resampler separately, 
3149cb3
  to keep main pkg LGPL-clean
3149cb3
da51f8e
* Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.0.1-2
da51f8e
- fc6 respin
da51f8e
0339a9f
* Mon Aug 07 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.0.1-1
0339a9f
- 2.0.1
0339a9f
1772b68
* Fri Jul 21 2006 Rex Dieter <rexdieter[AT]users.sf.net>
1772b68
- fc6: gcc/glibc respin
1772b68
ba78dba
* Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 
ba78dba
- fc5: gcc/glibc respin
ba78dba
415c443
* Mon Dec 19 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.0-1
415c443
- 2.0(final)
415c443
415c443
* Wed Nov 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.0-0.4.rc1
415c443
- 2.0rc1 
415c443
415c443
* Wed Nov 23 2005 Rex Dieter 
415c443
- --without-libltdl
415c443
415c443
* Tue Nov 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.0-0.1.b3
415c443
- akode-2.0b3
415c443