make libsamplerate optional (and fedora only)
This commit is contained in:
parent
3ef25d468a
commit
7ca90b0454
1 changed files with 10 additions and 7 deletions
17
akode.spec
17
akode.spec
|
|
@ -18,6 +18,7 @@ Patch3: akode-2.0.2-flac113-portable.patch
|
|||
%define _with_flac --with-flac
|
||||
%if 0%{?fedora} > 4
|
||||
%define _with_jack --with-jack
|
||||
%define _with_libsamplerate --with-libsamplerate
|
||||
%define _with_pulseaudio --with-pulseaudio
|
||||
%endif
|
||||
|
||||
|
|
@ -30,7 +31,7 @@ BuildRequires: automake libtool
|
|||
BuildRequires: alsa-lib-devel
|
||||
%{?_with_flac:BuildRequires: flac-devel}
|
||||
%{?_with_jack:BuildRequires: jack-audio-connection-kit-devel}
|
||||
BuildRequires: libsamplerate-devel
|
||||
%{?_with_libsamplerate:BuildRequires: libsamplerate-devel}
|
||||
BuildRequires: libvorbis-devel
|
||||
%{?_with_pulseaudio:BuildRequires: pulseaudio-lib-devel}
|
||||
BuildRequires: speex-devel
|
||||
|
|
@ -100,7 +101,7 @@ make -f Makefile.cvs
|
|||
--without-oss \
|
||||
%{?_with_flac} %{!?_with_flac:--without-flac} \
|
||||
%{?_with_jack} %{!?_with_jack:--without-jack} \
|
||||
--with-libsamplerate \
|
||||
%{?_with_libsamplerate} %{!?_with_libsamplerate:--without-libsamplerate} \
|
||||
%{?_with_pulseaudio} %{!?_with_pulseaudio:--without-pulseaudio} \
|
||||
--with-speex \
|
||||
--with-vorbis \
|
||||
|
|
@ -156,17 +157,19 @@ rm -rf %{buildroot}
|
|||
%{_libdir}/libakode_jack_sink.so
|
||||
%endif
|
||||
|
||||
# License: GPLv2+
|
||||
%if "%{?_with_libsamplerate:1}" == "1"
|
||||
%files libsamplerate
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libakode_src_resampler.so
|
||||
%endif
|
||||
|
||||
%if "%{?_with_pulseaudio:1}" == "1"
|
||||
%files pulseaudio
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libakode_polyp_sink.so
|
||||
%endif
|
||||
|
||||
# License: GPLv2+
|
||||
%files libsamplerate
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libakode_src_resampler.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Dec 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.2-3
|
||||
|
|
|
|||
Reference in a new issue