+#
+# Conditional build
+%bcond_without esound # build without esound plugin
+%bcond_without flac # build without flac plugin
+%bcond_without jack # build without jack plugin
+%bcond_without mikmod # build without mikmod plugin
+%bcond_without nas # build without nas plugin
+#
Summary: Alsaplayer - CD/FLAC/MOD/MP3/OGG/WAV player
Summary(pl): Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/OGG/WAV
Name: alsaplayer
-Version: 0.99.75
-Release: 0.4
+Version: 0.99.76
+Release: 3
License: GPL
Group: Applications/Sound
Source0: ftp://ftp.alsa-project.org/pub/people/andy/%{name}-%{version}.tar.bz2
-# Source0-md5: 353b57058e05aa5f0c01f93fc049c650
+# Source0-md5: a5566c15dbae1f5c86a08482eb405725
Source1: %{name}.desktop
+Source2: %{name}.png
Patch0: %{name}-docs.patch
Patch1: %{name}-gcc33.patch
URL: http://www.alsaplayer.org/
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: esound-devel
-BuildRequires: flac-devel
+%{?with_esound:BuildRequires: esound-devel}
+%{?with_flac:BuildRequires: flac-devel}
BuildRequires: gtk+-devel
-BuildRequires: id3lib-devel
-BuildRequires: jack-audio-connection-kit-devel >= 0.69.1
-BuildRequires: libmikmod-devel
+%{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.69.1}
+%{?with_flac:BuildRequires: libid3tag-devel}
+BuildRequires: libmad-devel
+%{?with_mikmod:BuildRequires: libmikmod-devel}
BuildRequires: libsndfile-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: libvorbis-devel
-BuildRequires: mad-devel
-BuildRequires: nas-devel
+%{?with_nas:BuildRequires: nas-devel}
BuildRequires: xosd-devel
Requires(post): /sbin/ldconfig
+Requires: alsaplayer_output
+Requires: alsaplayer_ui
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep libGL.so.1 libGLU.so.1
Features include:
Input addons:
- - MP2 and MP3 support
- - Ogg Vorbis support (subpackage)
- - WAV support, 8-, 16-bit, mono, stereo, any sample rate
- - CDDA support, CD Digital Audio playback! and thus USB ready :)
- - Also plays files mapped by audiofs (CDDA)
- - MAD MPEG audio
- - Module support (mikmod) (subpcakage)
- - FLAC support
+- MP2 and MP3 support
+- Ogg Vorbis support (subpackage)
+- WAV support, 8-, 16-bit, mono, stereo, any sample rate
+- CDDA support, CD Digital Audio playback! and thus USB ready :)
+- Also plays files mapped by audiofs (CDDA)
+- MAD MPEG audio
+- Module support (mikmod) (subpcakage)
+- FLAC support
Output addons:
- - ALSA. Best supported of course :) (subpackage)
- - OSS. Kernel native sound drivers
- - Sparc. UltraSparc sound drivers
- - SGI. SGI audio library driver
- - ESD. Enlightened sound daemon support (subpackage)
- - NAS. Network Audio System (subpakcage)
- - low latency JACK output
- - null :-)
+- ALSA. Best supported of course :) (subpackage)
+- OSS. Kernel native sound drivers
+- Sparc. UltraSparc sound drivers
+- SGI. SGI audio library driver
+- ESD. Enlightened sound daemon support (subpackage)
+- NAS. Network Audio System (subpakcage)
+- low latency JACK output
+- null :-)
Visual scopes:
- - Stereoscope
- - Monoscope
- - Levelmeter
- - Spacescope
- - FFTscope
- - FFTscope II
- - Spectrum GL
+- Stereoscope
+- Monoscope
+- Levelmeter
+- Spacescope
+- FFTscope
+- FFTscope II
+- Spectrum GL
General features:
- - Full speed (pitch) control, positive *and* negative! (First Linux
- player that does this!! MP3's and CD's do varispeed :)
- - Queue (playlist) support
- - Concurrent visual scopes (open as many as you want)
- - Multi-threaded design for efficient/skip free playback (RT)
- - GUI Interface based on gtk+
- - NOGUI operation for shell script usage
- - On-screen-display based on xosd
- - Plug-in core architecture
- - Low latency mode, as low as 5ms when scheduled RT
- - Effects stream
- - Software based volume/pan control
- - Accurate scope/audio syncing using ALSA features
+- Full speed (pitch) control, positive *and* negative! (First Linux
+ player that does this!! MP3's and CD's do varispeed :)
+- Queue (playlist) support
+- Concurrent visual scopes (open as many as you want)
+- Multi-threaded design for efficient/skip free playback (RT)
+- GUI Interface based on GTK+
+- NOGUI operation for shell script usage
+- On-screen-display based on xosd
+- Plug-in core architecture
+- Low latency mode, as low as 5ms when scheduled RT
+- Effects stream
+- Software based volume/pan control
+- Accurate scope/audio syncing using ALSA features
%description -l pl
AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielow±tkowy i próbuje
solidnie przeæwiczyæ sterowniki i bibliotekê ALSA. Jego cechy to:
Wej¶cie:
- - obs³uga MP2 i MP3
- - obs³uga Ogg Vorbis (w podpakiecie)
- - obs³uga WAV, 8 i 16-bitowych, mono, stereo o dowolnej czêstotliwo¶ci
- - obs³uga CD Digital Audio
- - odtwarzanie plików podmapowanych przez audiofs (CDDA)
- - obs³uga MAD - MPEG Audio
- - obs³uga modu³ów (mikmod) (w podpakiecie)
- - obs³ug bezstratnej kompresji d¼wiêku FLAC
+- obs³uga MP2 i MP3
+- obs³uga Ogg Vorbis (w podpakiecie)
+- obs³uga WAV, 8 i 16-bitowych, mono, stereo o dowolnej czêstotliwo¶ci
+- obs³uga CD Digital Audio
+- odtwarzanie plików podmapowanych przez audiofs (CDDA)
+- obs³uga MAD - MPEG Audio
+- obs³uga modu³ów (mikmod) (w podpakiecie)
+- obs³ug bezstratnej kompresji d¼wiêku FLAC
Wyj¶cie:
- - OSS - natywne sterowniki z j±dra
- - ALSA - oczywi¶cie najlepiej obs³ugiwana :) (w podpakiecie)
- - Sparc - sterowniki d¼wiêku dla UltraSparca
- - SGI - biblioteka sterowników d¼wiêku SGI
- - ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
- - NAS - Sieciowego Systemu Audio (w podpakiecie)
- - JACK - zestaw po³±czeñ d¼wiêku o ma³ych opó¼nieniach (w podpakiecie)
- - null :-)
+- OSS - natywne sterowniki z j±dra
+- ALSA - oczywi¶cie najlepiej obs³ugiwana :) (w podpakiecie)
+- Sparc - sterowniki d¼wiêku dla UltraSparca
+- SGI - biblioteka sterowników d¼wiêku SGI
+- ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
+- NAS - Sieciowego Systemu Audio (w podpakiecie)
+- JACK - zestaw po³±czeñ d¼wiêku o ma³ych opó¼nieniach (w podpakiecie)
+- null :-)
Wizualizacja:
- - Stereoskop
- - Monoskop
- - Wska¼nik poziomu d¼wiêku
- - Wska¼niki oparte o analizê FFT
- - analizator spektrum sygna³u w oparciu o OpenGL
+- Stereoskop
+- Monoskop
+- Wska¼nik poziomu d¼wiêku
+- Wska¼niki oparte o analizê FFT
+- analizator spektrum sygna³u w oparciu o OpenGL
Ogólne cechy:
- - Kontrola szybko¶ci (w obie strony)
- - obs³uga kolejki (playlisty)
- - obs³uga wielu wska¼ników naraz
- - wielow±tkowo¶æ
- - interfejs graficzny bazuj±cy na gtk+
- - operacje bez GUI na potrzeby skryptów
- - tryb Informacje-na-ekranie oparty o xosd
- - architektura wtyczek
- - tryb "czasu rzeczywistego" daj±cy opó¼nienia rzêdu 5ms
- - programowa kontrola g³o¶no¶ci i balansu
- - synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
+- Kontrola szybko¶ci (w obie strony)
+- obs³uga kolejki (playlisty)
+- obs³uga wielu wska¼ników naraz
+- wielow±tkowo¶æ
+- interfejs graficzny bazuj±cy na GTK+
+- operacje bez GUI na potrzeby skryptów
+- tryb Informacje-na-ekranie oparty o xosd
+- architektura wtyczek
+- tryb "czasu rzeczywistego" daj±cy opó¼nienia rzêdu 5ms
+- programowa kontrola g³o¶no¶ci i balansu
+- synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
%package daemon
Summary: Deamon interface for Alsaplayer
Summary: GTK+ interface for Alsaplayer
Summary(pl): Interfejs GTK+ alsaplayera
Group: X11/Applications/Sound
+Provides: alsaplayer_ui
Requires: %{name} = %{version}
%description interface-gtk
Summary: Text interface for Alsaplayer
Summary(pl): Interfejs tekstowy alsaplayera
Group: Applications/Sound
+Provides: alsaplayer_ui
Requires: %{name} = %{version}
%description interface-text
Summary: xosd interface for Alsaplayer
Summary(pl): Interfejs xosd alsaplayera
Group: X11/Applications/Sound
+Provides: alsaplayer_ui
Requires: %{name} = %{version}
%description interface-xosd
Summary: Alsaplayer plugin for playing through alsa drivers
Summary(pl): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
Group: Applications/Sound
+Provides: alsaplayer_output
Requires: %{name} = %{version}
%description output-alsa
Summary: Alsaplayer plugin for playing through esound daemon
Summary(pl): Wtyczka alsaplayera do odtwarzania przez demona esound
Group: Applications/Sound
+Provides: alsaplayer_output
Requires: %{name} = %{version}
%description output-esound
Summary: Alsaplayer plugin for playing through NAS daemon
Summary(pl): Wtyczka do alsaplayera do odtwarzania przez demona NAS
Group: Applications/Sound
+Provides: alsaplayer_output
Requires: %{name} = %{version}
%description output-nas
Summary: Alsaplayer plugin for playing sound through JACK
Summary(pl): Wtyczka alsaplayera do odtwarzania d¼wiêku przez JACK
Group: Applications/Sound
+Provides: alsaplayer_output
Requires: %{name} = %{version}
%description output-jack
LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
export CPPFLAGS LDFLAGS
%configure \
+ %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
+ %{?with_flac:--en}%{!?with_flac:--dis}able-flac \
+ %{?with_jack:--en}%{!?with_jack:--dis}able-jack \
+ %{?with_mikmod:--en}%{!?with_mikmod:--dis}able-mikmod \
+ %{?with_nas:--en}%{!?with_nas:--dis}able-nas \
+ %{?with_esound:--en}%{!?with_esound:--dis}able-esd \
--enable-alsa \
--enable-audiofile \
- --enable-esd \
- --enable-flac \
--enable-gtk \
- --enable-jack \
- --enable-mikmod \
- --enable-nas \
--enable-oggflac \
--enable-oggvorbis \
--enable-opengl \
--enable-oss \
- --enable-static \
-%ifarch sparc
- --enable-sparc
-%endif
+ --enable-static
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_desktopdir}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
pkgconfigdir=%{_pkgconfigdir}
install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+echo
+echo "Remember to install appropriate alsaplayer-input-* plugins"
+echo "for files you want to play, for example:"
+echo "alsaplayer-input-mad to play MP3s."
+echo
+
%postun -p /sbin/ldconfig
%files
%attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
%{_mandir}/man*/*
%{_desktopdir}/%{name}.desktop
-
-%ifarch sparc
-%attr(755,root,root) %{_pkglibdir}/output/libsparc_out.so
-%endif
+%{_pixmapsdir}/%{name}.png
%files daemon
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/input/libaf.so
+%if %{with flac}
%files input-flac
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
+%endif
%files input-mad
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
+%if %{with mikmod}
%files input-mikmod
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/input/libmod.so
+%endif
%files input-sndfile
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
+%if %{with esound}
%files output-esound
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
+%endif
+%if %{with jack}
%files output-jack
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
+%endif
+%if %{with nas}
%files output-nas
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
+%endif
%files scopes-gtk
%defattr(644,root,root,755)