Summary: Alsaplayer - CD/FLAC/MOD/MP3/Ogg/WAV player
Summary(pl.UTF-8): Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/Ogg/WAV
Name: alsaplayer
-Version: 0.99.76
-Release: 5
-License: GPL
+Version: 0.99.80
+Release: 1
+License: GPL v3+
Group: Applications/Sound
-Source0: ftp://ftp.alsa-project.org/pub/people/andy/%{name}-%{version}.tar.bz2
-# Source0-md5: a5566c15dbae1f5c86a08482eb405725
+Source0: http://www.alsaplayer.org/%{name}-%{version}.tar.bz2
+# Source0-md5: 04f8c2321a37d15f40f9ee21251c6202
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: %{name}-docs.patch
-Patch1: %{name}-gcc33.patch
-Patch2: %{name}-flac.patch
URL: http://www.alsaplayer.org/
BuildRequires: OpenGL-devel
BuildRequires: alsa-lib-devel
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
-%{?with_esound:BuildRequires: esound-devel}
-%{?with_flac:BuildRequires: flac-devel >= 1.1.3}
-BuildRequires: gtk+-devel
+%{?with_esound:BuildRequires: esound-devel >= 0.2.4}
+%{?with_flac:BuildRequires: flac-c++-devel >= 1.2.0}
+BuildRequires: gtk+2-devel >= 1:2.0.3
%{?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: libsndfile-devel >= 1.0.4
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: libvorbis-devel
%{?with_nas:BuildRequires: nas-devel}
+BuildRequires: pkgconfig
BuildRequires: xosd-devel
Requires(post): /sbin/ldconfig
Requires: alsaplayer_output
Requires: alsaplayer_ui
+Suggests: %{name}-input-audiofile
+Suggests: %{name}-input-mad
+Suggests: %{name}-input-vorbis
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep libGL.so.1 libGLU.so.1
%description input-vorbis -l pl.UTF-8
Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis.
-%package interface-gtk
-Summary: GTK+ interface for Alsaplayer
-Summary(pl.UTF-8): Interfejs GTK+ alsaplayera
+%package interface-gtk2
+Summary: GTK+ 2 interface for Alsaplayer
+Summary(pl.UTF-8): Interfejs GTK+ 2 alsaplayera
Group: X11/Applications/Sound
Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_ui
-%description interface-gtk
-GTK+ interface for Alsaplayer.
+%description interface-gtk2
+GTK+ 2 interface for Alsaplayer.
-%description interface-gtk -l pl.UTF-8
-Interfejs GTK+ alsaplayera.
+%description interface-gtk2 -l pl.UTF-8
+Interfejs GTK+2 alsaplayera.
%package interface-text
Summary: Text interface for Alsaplayer
%description output-jack -l pl.UTF-8
Wtyczka alsaplayera do odtwarzania dźwięku przez system JACK.
-%package scopes-gtk
+%package scopes2-gtk
Summary: Alsaplayer plugins for visualization
Summary(pl.UTF-8): Wtyczki alsaplayera do wizualizacji
Group: X11/Applications/Multimedia
Requires: %{name} = %{version}-%{release}
+Obsoletes: alsaplayer-scopes-gtk
-%description scopes-gtk
+%description scopes2-gtk
Alsaplayer plugins for visualization.
-%description scopes-gtk -l pl.UTF-8
+%description scopes2-gtk -l pl.UTF-8
Wtyczki do alsaplayera do wizualizacji.
-%package scopes-opengl
+%package scopes2-opengl
Summary: Alsaplayer plugin for visualization using OpenGL
Summary(pl.UTF-8): Wtyczka alsaplayera do wizualizacji z użyciem OpenGL
Group: X11/Applications/Multimedia
Requires: %{name} = %{version}-%{release}
Requires: OpenGL
+Obsoletes: alsaplayer-scopes-opengl
-%description scopes-opengl
+%description scopes2-opengl
Alsaplayer plugin for visualization using OpenGL.
-%description scopes-opengl -l pl.UTF-8
+%description scopes2-opengl -l pl.UTF-8
Wtyczka do alsaplayera do wizualizacji z użyciem OpenGL.
%package devel
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
%build
rm -f missing
%configure \
%{?with_esound:--en}%{!?with_esound:--dis}able-esd \
%{?with_flac:--en}%{!?with_flac:--dis}able-flac \
+ %{?with_flac:--en}%{!?with_flac:--dis}able-oggflac \
%{?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-gtk \
+ --enable-gtk2 \
--enable-oggflac \
--enable-oggvorbis \
--enable-opengl \
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
-rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes2/*.{a,la}
+
+%{find_lang} %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%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
-
+%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README ChangeLog
%attr(755,root,root) %{_bindir}/alsaplayer
-%attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
+%attr(755,root,root) %{_libdir}/libalsaplayer.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libalsaplayer.so.0
%dir %{_pkglibdir}
%dir %{_pkglibdir}/input
%dir %{_pkglibdir}/interface
%dir %{_pkglibdir}/output
%dir %{_pkglibdir}/reader
-%dir %{_pkglibdir}/scopes
+%dir %{_pkglibdir}/scopes2
%attr(755,root,root) %{_pkglibdir}/input/libcdda.so
%attr(755,root,root) %{_pkglibdir}/input/libwav.so
%attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
-%files interface-gtk
+%files interface-gtk2
%defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
+%attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
%files interface-text
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
%endif
-%files scopes-gtk
+%files scopes2-gtk
%defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
-%attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
-%attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
-%attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
-%attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
-%attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
-
-%files scopes-opengl
+%attr(755,root,root) %{_pkglibdir}/scopes2/libblurscope.so
+%attr(755,root,root) %{_pkglibdir}/scopes2/liblevelmeter.so
+%attr(755,root,root) %{_pkglibdir}/scopes2/liblogbarfft.so
+%attr(755,root,root) %{_pkglibdir}/scopes2/libmonoscope.so
+%attr(755,root,root) %{_pkglibdir}/scopes2/libspacescope.so
+%attr(755,root,root) %{_pkglibdir}/scopes2/libsynaescope.so
+
+%files scopes2-opengl
%defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
+%attr(755,root,root) %{_pkglibdir}/scopes2/liboglspectrum.so
%files devel
%defattr(644,root,root,755)