#
# 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
+%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.76
-Release: 3
+Version: 0.99.77
+Release: 2
License: GPL
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: 3280795b199ae1bb245559ccbbca5c02
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}
+%{?with_esound:BuildRequires: esound-devel >= 0.2.4}
+%{?with_flac:BuildRequires: flac-devel >= 1.1.3}
BuildRequires: gtk+-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: 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
Summary: Deamon interface for Alsaplayer
Summary(pl): Interfejs demona alsaplayera
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description daemon
Deamon interface for Alsaplayer.
Summary: Alsaplayer plugin for playing WAVE audio formats using audiofile
Summary(pl): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy u¿yciu audiofile
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description input-audiofile
Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
Summary: Alsaplayer plugin for playing FLAC files
Summary(pl): Wtyczka alsaplayera do odtwarzania plików FLAC
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description input-flac
Alsaplayer plugin for playing FLAC files.
Summary: Alsaplayer plugin for playing MP3 files using MAD
Summary(pl): Wtyczka alsaplayera do odtwarzania plików MP3 przy pomocy MAD
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description input-mad
Alsaplayer plugin for playing MP3 files using MAD.
Summary: Alsaplayer plugin for playing mod files
Summary(pl): Wtyczka alsaplayera do odtwarzania plików mod
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description input-mikmod
Alsaplayer plugin for playing mod files.
Summary: Alsaplayer plugin for playing WAVE audio formats using libsndfile
Summary(pl): Wtyczka alsaplayera do odtwarzania plików audio typu WAVE przy u¿yciu libsndfile
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description input-sndfile
Alsaplayer plugin for playing WAVE audio formats (like AIFF, AIFC,
Summary: Alsaplayer plugin for playing Ogg/Vorbis files
Summary(pl): Wtyczka alsaplayera do odtwarzania plików Ogg/Vorbis
Group: Applications/Sound
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description input-vorbis
Alsaplayer plugin for playing Ogg/Vorbis files.
Summary: GTK+ interface for Alsaplayer
Summary(pl): Interfejs GTK+ alsaplayera
Group: X11/Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_ui
-Requires: %{name} = %{version}
%description interface-gtk
GTK+ interface for Alsaplayer.
%description interface-gtk -l pl
Interfejs GTK+ alsaplayera.
+%package interface-gtk2
+Summary: GTK+ 2 interface for Alsaplayer
+Summary(pl): Interfejs GTK+ 2 alsaplayera
+Group: X11/Applications/Sound
+Requires: %{name} = %{version}-%{release}
+Provides: alsaplayer_ui
+
+%description interface-gtk2
+GTK+ 2 interface for Alsaplayer.
+
+%description interface-gtk2 -l pl
+Interfejs GTK+2 alsaplayera.
+
%package interface-text
Summary: Text interface for Alsaplayer
Summary(pl): Interfejs tekstowy alsaplayera
Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_ui
-Requires: %{name} = %{version}
%description interface-text
Text interface for Alsaplayer.
Summary: xosd interface for Alsaplayer
Summary(pl): Interfejs xosd alsaplayera
Group: X11/Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_ui
-Requires: %{name} = %{version}
%description interface-xosd
xosd interface for Alsaplayer.
Summary: Alsaplayer plugin for playing through alsa drivers
Summary(pl): Wtyczka alsaplayera do odtwarzania przez sterowniki alsa
Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_output
-Requires: %{name} = %{version}
%description output-alsa
Alsaplayer plugin for playing sound through alsa drivers.
Summary: Alsaplayer plugin for playing through esound daemon
Summary(pl): Wtyczka alsaplayera do odtwarzania przez demona esound
Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_output
-Requires: %{name} = %{version}
%description output-esound
Alsaplayer plugin for playing sound through esound daemon.
Summary: Alsaplayer plugin for playing through NAS daemon
Summary(pl): Wtyczka do alsaplayera do odtwarzania przez demona NAS
Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_output
-Requires: %{name} = %{version}
%description output-nas
Alsaplayer plugin for playing sound through NAS (network audio system)
%package output-jack
Summary: Alsaplayer plugin for playing sound through JACK
-Summary(pl): Wtyczka alsaplayera do odtwarzania d¼wiêku przez JACK
+Summary(pl): Wtyczka alsaplayera do odtwarzania d¼wiêku przez JACK-a
Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
Provides: alsaplayer_output
-Requires: %{name} = %{version}
%description output-jack
Alsaplayer plugin for sound through JACK system.
Summary: Alsaplayer plugins for visualization
Summary(pl): Wtyczki alsaplayera do wizualizacji
Group: X11/Applications/Multimedia
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description scopes-gtk
Alsaplayer plugins for visualization.
Summary: Alsaplayer plugin for visualization using OpenGL
Summary(pl): Wtyczka alsaplayera do wizualizacji z u¿yciem OpenGL
Group: X11/Applications/Multimedia
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
Requires: OpenGL
%description scopes-opengl
Summary: Alsaplayer header files
Summary(pl): Pliki nag³ówkowe Alsaplayera
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description devel
Header files for Alsaplayer library.
Summary: Alsaplayer static library
Summary(pl): Biblioteka statyczna Alsaplayera
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Alsaplayer static library.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
rm -f missing
DESTDIR=$RPM_BUILD_ROOT \
pkgconfigdir=%{_pkgconfigdir}
-install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
+%files interface-gtk2
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/interface/libgtk2_interface.so
+
%files interface-text
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so