#
# bconds:
-%bcond_without home_etc # disable HOME_ETC support
-#
+%bcond_with home_etc # enable HOME_ETC support
+%bcond_without ffmpeg # disable ffmpeg
+
Summary: Console audio player with simple ncurses interface
Summary(hu.UTF-8): Konzolos audiólejátszó egyszerű ncurses felülettel
Summary(pl.UTF-8): Konsolowy odtwarzacz audio z prostym interfejsem ncurses
Name: moc
-Version: 2.4.4
-Release: 7
+Version: 2.5.0
+Release: 1
License: GPL
Group: Applications/Sound
-Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
-# Source0-md5: 647c770a5542a4ae5437386807a89796
+Source0: http://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
+# Source0-md5: 18e3a979b67091bfee4b62217908c473
Patch0: %{name}-home_etc.patch
-Patch1: ncurses-tinfo.patch
+Patch1: ffmpeg3.patch
URL: http://moc.daper.net/
BuildRequires: a52dec-libs-devel
BuildRequires: alsa-lib-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: curl-devel
-BuildRequires: ffmpeg-devel >= 0.4.9-4.20080822.1
+%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20080822.1}
BuildRequires: flac-devel >= 1.1.3
BuildRequires: libao-devel
BuildRequires: libid3tag-devel
się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie
sieciowe (shoutcast, icecast, HTTP, FTP).
+%package aac
+Summary: AAC decoder for MoC - Music on Console
+Summary(hu.UTF-8): AAC formátum támogatása MoC-hoz
+Summary(pl.UTF-8): Dekoder AAC dla MOC
+Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
+Provides: %{name}-input = %{version}-%{release}
+
+%description aac
+This package contains the AAC decoder. After install you should reload
+MOC player.
+
+%description aac -l hu.UTF-8
+Ez a csomag az AAC dekódert tartalmazza. A telepítés után a MOC
+lejátsztót újra kell indítani.
+
+%description aac -l pl.UTF-8
+Ten pakiet zawiera dekodowanie formatu AAC. Po zainstalowaniu należy
+uruchomić ponownie MOC.
+
%package mp3
Summary: MP3 decoder for MoC - Music on Console
Summary(hu.UTF-8): MP3 formátum támogatása MoC-hoz
Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu
należy uruchomić ponownie MOC.
+%package modplug
+Summary: ModPlug decoder for MoC - Music on Console
+Summary(hu.UTF-8): ModPlug dekóder MOC-hoz
+Summary(pl.UTF-8): Dekoder formatów ModPlug dla MOC
+Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
+Provides: %{name}-input = %{version}-%{release}
+
+%description modplug
+This package contains the ModPlug decoder. After install you should
+reload MOC player.
+
+%description modplug -l hu.UTF-8
+Ez a csomag az ModPlug dekódert tartalmazza. A telepítés után a MOC
+lejátsztót újra kell indítani.
+
+%description modplug -l pl.UTF-8
+Ten pakiet zapewnia dekodowanie formatów ModPlug. Po zainstalowaniu
+należy uruchomić ponownie MOC.
+
+%package wavpack
+Summary: WavPack decoder for MoC - Music on Console
+Summary(hu.UTF-8): WavPack dekóder MOC-hoz
+Summary(pl.UTF-8): Dekoder formatu WavPack dla MOC
+Group: Applications/Sound
+Requires: %{name} = %{version}-%{release}
+Provides: %{name}-input = %{version}-%{release}
+
+%description wavpack
+This package contains the WavPack decoder. After install you should
+reload MOC player.
+
+%description wavpack -l hu.UTF-8
+Ez a csomag az WavPack dekódert tartalmazza. A telepítés után a MOC
+lejátsztót újra kell indítani.
+
+%description wavpack -l pl.UTF-8
+Ten pakiet zapewnia dekodowanie formatu WavPack. Po zainstalowaniu
+należy uruchomić ponownie MOC.
+
%prep
%setup -q
%{?with_home_etc:%patch0 -p1}
%patch1 -p1
-
rm -rf libltdl
%{__sed} -i -e '/SUBDIRS/ s/libltdl//' Makefile.am
%{__sed} -i -e '
%{__autoconf}
%{__automake}
%configure \
+ %{!?with_ffmpeg:--without-ffmpeg} \
--disable-debug
%{__make} \
%defattr(644,root,root,755)
%attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
+%if %{with ffmpeg}
%files ffmpeg
%defattr(644,root,root,755)
%attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
+%endif
+
+%files aac
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_decoder_plugins}/libaac_decoder.so*
%files mp3
%defattr(644,root,root,755)
%files sndfile
%defattr(644,root,root,755)
-%attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
+%attr(755,root,root) %{_decoder_plugins}/libsndfile_decoder.so*
%files speex
%defattr(644,root,root,755)
%attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*
+
+%files modplug
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_decoder_plugins}/libmodplug_decoder.so*
+
+%files wavpack
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_decoder_plugins}/libwavpack_decoder.so*