3 %bcond_without home_etc # disable HOME_ETC support
5 Summary: Console audio player with simple ncurses interface
6 Summary(pl): Konsolowy odtwarzacz audio z prostym interfejsem ncurses
11 Group: Applications/Sound
12 Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
13 # Source0-md5: 7b760a9c05d3f50781d06ed2d83aaee8
14 Patch0: %{name}-home_etc.patch
15 Patch1: %{name}-flac.patch
16 URL: http://moc.daper.net/
17 BuildRequires: alsa-lib-devel
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: curl-devel
21 BuildRequires: ffmpeg-devel
22 BuildRequires: speex-devel
23 BuildRequires: flac-devel >= 1.1.3
24 BuildRequires: libao-devel
25 BuildRequires: libid3tag-devel
26 BuildRequires: libltdl-devel
27 BuildRequires: libmad-devel
28 BuildRequires: libmpcdec-devel >= 1.2
29 BuildRequires: libsamplerate-devel
30 BuildRequires: libsndfile-devel
31 BuildRequires: libtool
32 BuildRequires: libvorbis-devel
33 BuildRequires: ncurses-devel
34 BuildRequires: pkgconfig
35 BuildRequires: taglib-devel >= 1.3.1
36 BuildRequires: zlib-devel
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _decoder_plugins %{_libdir}/%{name}/decoder_plugins
42 MOC is a console audio player with simple ncurses interface in
43 playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV
44 and other less popular formats supported by libsndfile. It has
45 all functions one may expect from simple audio player. Now it supports
46 net streams (shoutcast, icecast, regular HTTP, FTP) also.
49 MOC to konsolowy odtwarzacz audio z prostym interfejsem budz±cym
50 skojarzenia z playmp3list. Obs³uguje formaty MP3, Ogg, FLAC,
51 Musepack, Speex, WAV oraz inne mniej popularne formaty wspierane przez
52 bibliotekê libsndfile. Ma wszystkie funkcje, których mo¿na spodziewaæ
53 siê w prostym odtwarzaczu audio. Teraz tak¿e obs³uguje strumienie
54 sieciowe (shoutcast, icecast, HTTP, FTP).
57 Summary: MP3 decoder for MoC - Music on Console
58 Summary(pl): Dekoder MP3 dla MOC
59 Group: Applications/Sound
60 Requires: %{name} = %{version}-%{release}
61 Provides: %{name}-input = %{version}-%{release}
64 This package contains the MP3 decoder.
65 After install you should reload MOC player.
67 %description mp3 -l pl
68 Ten pakiet zawiera dekodowanie formatu MP3.
69 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
72 Summary: Musepack (MPC) decoder for MoC - Music on Console
73 Summary(pl): Dekoder Musepack (MPC) dla MOC
74 Group: Applications/Sound
75 Requires: %{name} = %{version}-%{release}
76 Provides: %{name}-input = %{version}-%{release}
79 This package contains the Musepack (MPC) decoder.
80 After install you should reload MOC player.
82 %description musepack -l pl
83 Ten pakiet zawiera dekodowanie formatu Musepack (MPC).
84 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
87 Summary: Ogg decoder for MoC - Music on Console
88 Summary(pl): Dekoder Ogg dla MOC
89 Group: Applications/Sound
90 Requires: %{name} = %{version}-%{release}
91 Provides: %{name}-input = %{version}-%{release}
94 This package contains the Ogg decoder.
95 After install you should reload MOC player.
97 %description ogg -l pl
98 Ten pakiet zawiera dekodowanie formatu Ogg.
99 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
102 Summary: FLAC decoder for MoC - Music on Console
103 Summary(pl): Dekoder FLAC dla MOC
104 Group: Applications/Sound
105 Requires: %{name} = %{version}-%{release}
106 Provides: %{name}-input = %{version}-%{release}
109 This package contains the FLAC decoder.
110 After install you should reload MOC player.
112 %description flac -l pl
113 Ten pakiet zawiera dekodowanie formatu FLAC.
114 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
117 Summary: ffmpeg decoder for MoC - Music on Console
118 Summary(pl): Dekoder ffmpeg dla MOC
119 Group: Applications/Sound
120 Requires: %{name} = %{version}-%{release}
121 Provides: %{name}-input = %{version}-%{release}
124 This package contains module to decode WMA (and others)
126 After install you should reload MOC player.
128 %description ffmpeg -l pl
129 Ten pakiet zawiera modu³ dekoduj±cy pliki w formacie WMA (i nie tylko)
130 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
133 Summary: Decoder of the sndfile formats for MoC - Music on Console
134 Summary(pl): Dekoder plików WAV/AIFF
135 Group: Applications/Sound
136 Requires: %{name} = %{version}-%{release}
137 Provides: %{name}-input = %{version}-%{release}
140 This package contains the decoders of sndfile.
141 After install you should reload MOC player.
143 %description sndfile -l pl
144 Ten pakiet zapewnia dekodowanie plików WAV/AIFF.
145 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
148 Summary: Speex decoder for MoC - Music on Console
149 Summary(pl): Dekoder formatu Speex dla MOC
150 Group: Applications/Sound
151 Requires: %{name} = %{version}-%{release}
152 Provides: %{name}-input = %{version}-%{release}
155 This package contains the Speex decoder.
156 After install you should reload MOC player.
158 %description speex -l pl
159 Ten pakiet zapewnia dekodowanie formatu Speex.
160 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
164 %{?with_home_etc:%patch0 -p1}
168 CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
179 rm -rf $RPM_BUILD_ROOT
180 install -d $RPM_BUILD_ROOT
183 DESTDIR=$RPM_BUILD_ROOT
185 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
186 rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
189 rm -rf $RPM_BUILD_ROOT
192 %defattr(644,root,root,755)
193 %doc AUTHORS NEWS README THANKS TODO *.example
194 %attr(755,root,root) %{_bindir}/*
196 %dir %{_libdir}/moc/decoder_plugins
198 %{_mandir}/man1/mocp*
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
209 %defattr(664,root,root,755)
210 %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*