- updated to 2.0.1
[packages/akode.git] / akode.spec
index 6dfcc58aee43e387038b5dc92dff2b465f04d0e0..cdf0bef1bcac2fd59b5bb194ad37d46904914792 100644 (file)
@@ -1,59 +1,87 @@
-Summary:       A library for doing full-text indexing
+# TODO: split plugins by deps
+Summary:       Audio-decoding framework library
+Summary(pl):   Biblioteka szkieletu dekodowania d¼wiêku
 Name:          akode
-Version:       050926
+Version:       2.0.1
 Release:       1
 License:       LGPL
 Group:         Libraries
-Source0:       %{name}-%{version}.tar.bz2
-# Source0-md5: 0f93efbd6a93253f337efab5ee9043d7
+Source0:       http://www.kde-apps.org/content/files/30375-%{name}-%{version}.tar.bz2
+# Source0-md5: 94a10e7729b20b669bc5c7721f62e162
+Patch0:                %{name}-pulseaudio.patch
+URL:           http://www.carewolf.com/akode/
+BuildRequires: alsa-lib-devel
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: kdelibs-devel >= 9:3.2.0
+BuildRequires: ffmpeg-devel >= 0.4.9-3.20050806.5
+BuildRequires: flac-devel >= 1.1.1
+BuildRequires: jack-audio-connection-kit-devel >= 0.90
+BuildRequires: faad2-devel
+BuildRequires: libltdl-devel
+BuildRequires: libmad-devel
+BuildRequires: libogg-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libvorbis-devel >= 1:1.0
+BuildRequires: libx264-devel
+BuildRequires: pkgconfig
+BuildRequires: pulseaudio-devel >= 0.9.2
 BuildRequires: rpmbuild(macros) >= 1.129
-BuildRequires: qt-devel
+BuildRequires: speex-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A library for doing full-text indexing.
+Audio-decoding framework library.
+
+%description -l pl
+Biblioteka szkieletu dekodowania d¼wiêku.
 
 %package devel
-Summary:        Header files for akode libraries
-Summary(pl):    Pliki nag³ówkowe bibliotek akode
-Group:          Development/Libraries
-Requires:       %{name} = %{epoch}:%{version}-%{release}
+Summary:       Header files for akode library
+Summary(pl):   Pliki nag³ówkowe biblioteki akode
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libltdl-devel
+Requires:      libstdc++-devel
 
 %description devel
-Header files for akode libraries.
+Header files for akode library.
 
 %description devel -l pl
-Pliki nag³ówkowe bibliotek akode.
+Pliki nag³ówkowe biblioteki akode.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 cp -f /usr/share/automake/config.sub admin
 %{__make} -f admin/Makefile.common cvs
 
+USER_INCLUDES="-I%{_includedir}/speex" \
 %configure \
 %if "%{_lib}" == "lib64"
        --enable-libsuffix=64 \
 %endif
-       --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
-       --with-qt-libraries=%{_libdir}
+       --with-flac \
+       --with-speex \
+       --with-libmad \
+       --with-libsamplerate \
+       --with-jack \
+       --with-pulseaudio \
+       --with-ffmpeg \
+       --with-oss \
+       --with-alsa \
+       --with-vorbis \
+       --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full}
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       kde_htmldir=%{_kdedocdir} \
-       kde_libs_htmldir=%{_kdedocdir} \
-       kdelnkdir=%{_desktopdir} \
-
-#%find_lang %{name} --with-kde
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,15 +89,30 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/akodeplay
-%attr(755,root,root) %{_libdir}/libakode.la
 %attr(755,root,root) %{_libdir}/libakode.so.*.*.*
-%{_libdir}/libakode_*.la
-%attr(755,root,root) %{_libdir}/libakode_*.so
-%{_libdir}/mcop/akode*PlayObject.mcopclass
+# plugins
+%{_libdir}/libakode_alsa_sink.la
+%attr(755,root,root) %{_libdir}/libakode_alsa_sink.so
+%{_libdir}/libakode_ffmpeg_decoder.la
+%attr(755,root,root) %{_libdir}/libakode_ffmpeg_decoder.so
+%{_libdir}/libakode_jack_sink.la
+%attr(755,root,root) %{_libdir}/libakode_jack_sink.so
+%{_libdir}/libakode_mpc_decoder.la
+%attr(755,root,root) %{_libdir}/libakode_mpc_decoder.so
+%{_libdir}/libakode_mpeg_decoder.la
+%attr(755,root,root) %{_libdir}/libakode_mpeg_decoder.so
+%{_libdir}/libakode_oss_sink.la
+%attr(755,root,root) %{_libdir}/libakode_oss_sink.so
+%{_libdir}/libakode_polyp_sink.la
+%attr(755,root,root) %{_libdir}/libakode_polyp_sink.so
+%{_libdir}/libakode_src_resampler.la
+%attr(755,root,root) %{_libdir}/libakode_src_resampler.so
+%{_libdir}/libakode_xiph_decoder.la
+%attr(755,root,root) %{_libdir}/libakode_xiph_decoder.so
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/akode-config
-#{_includedir}/*.h
 %{_includedir}/akode
-%{_libdir}/libakode.so
+%{_libdir}/libakode.la
+%attr(755,root,root) %{_libdir}/libakode.so
This page took 0.036088 seconds and 4 git commands to generate.