Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > f51ae26ced0b03d2fbfa15073935525f > files > 8

libakode-2.0.2-8mdv2009.0.src.rpm

%define name libakode
%define version	2.0.2
%define major	2
%define lib_name %mklibname akode %major

%define lib_name_orig_kdemultimedia %mklibname kdemultimedia
%define lib_major_kdemultimedia 1
%define lib_name_kdemultimedia %lib_name_orig_kdemultimedia%lib_major_kdemultimedia

%define build_pulseaudio 1
%{?_without_pulseaudio: %global build_pulseaudio 0}


Name: 		%{name}
Summary: 	The decoding library
Version: 	%{version}
Release: 	%mkrel 8
Group: 		System/Libraries
License: 	LGPLv2+
URL: 		http://www.carewolf.com/akode/
Source:		akode-%version.tar.bz2
Patch0:		akode-2.0.2-flac113-portable.patch
Patch1:		akode-2.0.2-ffmpeg-int64_c.patch
Patch2:		akode-2.0.2-ffmpeg-new-location.patch
Patch3:         akode-2.0.2-fix-gcc-build.patch
# (Anssi 05/2008) Fix linking by using extern "C" for ffmpeg headers:
Patch4:		akode-2.0.2-ffmpeg-extern-c.patch
Patch5:		akode-pulseaudio.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: autoconf2.5
BuildRequires:	libvorbis-devel liboggflac-devel mad-devel libalsa-devel
BuildRequires:	libsamplerate-devel libltdl-devel jackit-devel
BuildRequires:	speex-devel ffmpeg-devel
%if %build_pulseaudio
BuildRequires:  libpulseaudio-devel
%endif

%description
aKode is a simple audio-decoding frame-work that provides a uniform 
interface to decode the most common audio-formats. It also has a 
direct playback option for a number of audio-outputs. 
aKode currently has the following decoder plugins: 
 mpeg: Uses libMAD to decoder all MPEG 1/2 layer I-III audio. 
       GPL licensed and 
       patent issue in the US. 
 mpc:  Decodes musepack aka mpc audio. LGPL licensed. 
 xiph: Decodes FLAC, Ogg/FLAC, Speex and Ogg Vorbis audio. LGPL 
       licensed, patent free. 
 ffmpeg: Experimental decoder using the FFMPEG decoding library. 
       Enables WMA and 
       RealAudio 
       playback. LGPL and possible patent and reengineering issues 
       in the US. 

aKode also has the following audio outputs: 
 oss:  Outputs to the OSS (Open Sound System) of for instance FreeBSD
       and Linux 2.4 
 alsa: Outputs to ALSA of Linux 2.6 (version 0.9 or 1.x required) 
       (dmix is recommended). 
 sun:  Outputs to Sun OS/Solaris audio device . 
 jack: Outputs using Jack audio backend. 
 polyp:Output to the pulseaudio server. Recommended for network 
       transparent audio.

%package -n %{lib_name}
Summary: 	Main library for %{name}
Group: 		System/Libraries
Provides: 	%{name} = %{version}-%{release}
Conflicts:	%{lib_name_kdemultimedia}-common < 1:3.5.0-1mdk


%description -n %{lib_name}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{lib_name}-devel
Summary: 	Headers for developing programs that will use %{name}
Group: 		Development/C
Requires: 	%{lib_name} = %{version}-%{release}
Provides: 	akode-devel = %{version}-%{release}
conflicts:	%{lib_name} <= 2.0-5mdk

%description -n %{lib_name}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q -n akode-%version
%patch0 -p4
%patch1 -p1
%patch2 -p0
%patch3 -p0
%patch4 -p1
%patch5 -p1

%build
make -f Makefile.cvs
%configure2_5x \
  --with-kscd-cdda \
%if %build_pulseaudio
	--with-pulseaudio \
%else
	--without-pulseaudio \
%endif
  --disable-final \
  --enable-sdl \
  --with-extra-includes=%{_includedir}/speex
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%multiarch_binaries $RPM_BUILD_ROOT/%_bindir/akode-config

%clean 
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post -n %{lib_name} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{lib_name} -p /sbin/ldconfig
%endif

%files -n %{lib_name}
%defattr(-,root,root)

%_bindir/akodeplay
%_libdir/libakode.so.%{major}*
%_libdir/libakode.la

%_libdir/libakode_alsa_sink.la
%_libdir/libakode_alsa_sink.so
%_libdir/libakode_ffmpeg_decoder.la
%_libdir/libakode_ffmpeg_decoder.so
%_libdir/libakode_jack_sink.la
%_libdir/libakode_jack_sink.so
%_libdir/libakode_mpc_decoder.la
%_libdir/libakode_mpc_decoder.so
%_libdir/libakode_mpeg_decoder.la
%_libdir/libakode_mpeg_decoder.so
%_libdir/libakode_oss_sink.la
%_libdir/libakode_oss_sink.so
%if %build_pulseaudio
%_libdir/libakode_polyp_sink.la
%_libdir/libakode_polyp_sink.so
%endif
%_libdir/libakode_src_resampler.la
%_libdir/libakode_src_resampler.so
%_libdir/libakode_xiph_decoder.la
%_libdir/libakode_xiph_decoder.so


%files -n %{lib_name}-devel
%defattr(-,root,root)
%dir %_includedir/akode/
%_includedir/akode/*.h
%_libdir/libakode.so

%_bindir/akode-config
%multiarch %multiarch_bindir/akode-config




%changelog
* Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.0.2-8mdv2009.0
+ Revision: 264772
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed May 21 2008 Funda Wang <fundawang@mandriva.org> 2.0.2-7mdv2009.0
+ Revision: 209653
- Add fedora patch to build against pulseaudio

* Tue May 20 2008 Nicolas Lécureuil <neoclust@mandriva.org> 2.0.2-6mdv2009.0
+ Revision: 209576
- More build fixes against gcc 4.3
- Add patch3 to fix includes against new gcc
- Rebuild because of new libavformats

  + Anssi Hannula <anssi@mandriva.org>
    - Fix build by using extern "C" for ffmpeg headers
      (ffmpeg-extern-c.patch)

  + Funda Wang <fundawang@mandriva.org>
    - adopt to new location of ffmpeg header files

  + Oden Eriksson <oeriksson@mandriva.com>
    - rebuild

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Sun May 13 2007 Anssi Hannula <anssi@mandriva.org> 2.0.2-1mdv2008.0
+ Revision: 26540
- 2.0.2
- buildrequires speex-devel ffmpeg-devel
- P0 from SVN: fix build against flac 1.1.3+ for non-i386 platforms
- P1: fix build with recent ffmpeg


* Fri Jan 05 2007 Laurent Montel <lmontel@mandriva.com> 2.0.1-3mdv2007.0
+ Revision: 104509
- Rebuild
- Import libakode

* Fri Aug 18 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0.1-2
- Add epoch into conflict

* Mon Jul 24 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0.1-1
- 2.0.1

* Mon Jun 19 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0-8
- Fix upgrade

* Fri Apr 14 2006 Nicolas Lécureuil <neoclust@mandriva.org> 2.0-7mdk
- Make Rpmbuildupdate Happyer
- use mkrel

* Fri Apr 14 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0-6mdk
- Fix spec file

* Wed Mar 08 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0-5mdk
- Build or not with libpolypaudio (without by default Bug 21499)

* Wed Feb 08 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0-4mdk
- Fix conflict (found by neoclust)

* Wed Jan 11 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0-3mdk
- jackit-devel necessary too

* Wed Jan 11 2006 Laurent MONTEL <lmontel@mandriva.com> 2.0-2mdk
- Fix BuildRequires

* Thu Dec 15 2005 Laurent MONTEL <lmontel@mandriva.com> 2.0-1mdk
- 2.0

* Wed Dec 07 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.0-rc1.5mdk
- add BuildRequires: libpolypaudio-devel libsamplerate-devel libltdl-devel

* Tue Dec 06 2005 Laurent MONTEL <lmontel@mandriva.com> 2.0-rc1.4mdk
- Add option

* Fri Dec 02 2005 Laurent MONTEL <lmontel@mandriva.com> 2.0-rc1.3mdk
- Fix provides

* Fri Dec 02 2005 Laurent MONTEL <lmontel@mandriva.com> 2.0-rc1.2mdk
- As there is not test for multiarch on compile, I recreate package for fixing it... I like to lose my time...

* Fri Dec 02 2005 Laurent MONTEL <lmontel@mandriva.com> 2.0-rc1.1mdk
- initial spec file created