]> git.pld-linux.org Git - packages/moc.git/blobdiff - moc.spec
- up to 2.5.0
[packages/moc.git] / moc.spec
index 9d05f0be4d3d647ab5b624420c323efa0218769e..374dd0363b96e8ee2827df71606c638382804cce 100644 (file)
--- a/moc.spec
+++ b/moc.spec
@@ -1,26 +1,27 @@
 #
 # 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
@@ -63,6 +64,26 @@ bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać
 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
@@ -203,12 +224,51 @@ lejátsztót újra kell indítani.
 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 '
@@ -227,6 +287,7 @@ CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
 %{__autoconf}
 %{__automake}
 %configure \
+       %{!?with_ffmpeg:--without-ffmpeg} \
        --disable-debug
 
 %{__make} \
@@ -262,9 +323,15 @@ rm -rf $RPM_BUILD_ROOT
 %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)
@@ -276,8 +343,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %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*
This page took 0.074913 seconds and 4 git commands to generate.