- added kde-ac260/kde-ac260-lt patches.
[packages/akode.git] / akode.spec
index ae849cee03bbdb6ff8240e3100f0e0c94b353e21..d893fdeda6ca6e7a3efc7d0cc55d267cdeffb081 100644 (file)
@@ -1,72 +1,91 @@
-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:       2.0
-%define        _rc     b3
-Release:       0.%{_rc}.1
+Version:       2.0.1
+Release:       1
 License:       LGPL
 Group:         Libraries
-Source0:       http://www.kde-apps.org/content/files/30375-%{name}-%{version}%{_rc}.tar.gz
-# Source0-md5: b78b747e87811726ab336334038c64d8
+Source0:       http://www.kde-apps.org/content/files/30375-%{name}-%{version}.tar.bz2
+# Source0-md5: 94a10e7729b20b669bc5c7721f62e162
+Patch0:                %{name}-pulseaudio.patch
+Patch1:                kde-ac260.patch
+Patch2:                kde-ac260-lt.patch
+URL:           http://www.carewolf.com/akode/
 BuildRequires: alsa-lib-devel
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: flac-devel
-BuildRequires: jack-audio-connection-kit-devel
-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: libvorbis-devel
-BuildRequires: pkg-config
-BuildRequires: polypaudio-devel
-BuildRequires: qt-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: speex-devel
-URL:           http://www.carewolf.com/akode
 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 -n %{name}-%{version}%{_rc}
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -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
@@ -74,15 +93,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.031222 seconds and 4 git commands to generate.