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 URL: http://moc.daper.net/
16 BuildRequires: alsa-lib-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: curl-devel
20 BuildRequires: ffmpeg-devel
21 BuildRequires: speex-devel
22 BuildRequires: flac-devel
23 BuildRequires: libao-devel
24 BuildRequires: libid3tag-devel
25 BuildRequires: libltdl-devel
26 BuildRequires: libmad-devel
27 BuildRequires: libmpcdec-devel >= 1.2
28 BuildRequires: libsamplerate-devel
29 BuildRequires: libsndfile-devel
30 BuildRequires: libtool
31 BuildRequires: libvorbis-devel
32 BuildRequires: ncurses-devel
33 BuildRequires: pkgconfig
34 BuildRequires: taglib-devel >= 1.3.1
35 BuildRequires: zlib-devel
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _decoder_plugins %{_libdir}/%{name}/decoder_plugins
41 MOC is a console audio player with simple ncurses interface in
42 playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV
43 and other less popular formats supported by libsndfile. It has
44 all functions one may expect from simple audio player. Now it supports
45 net streams (shoutcast, icecast, regular HTTP, FTP) also.
48 MOC to konsolowy odtwarzacz audio z prostym interfejsem budz±cym
49 skojarzenia z playmp3list. Obs³uguje formaty MP3, Ogg, FLAC,
50 Musepack, Speex, WAV oraz inne mniej popularne formaty wspierane przez
51 bibliotekê libsndfile. Ma wszystkie funkcje, których mo¿na spodziewaæ
52 siê w prostym odtwarzaczu audio. Teraz tak¿e obs³uguje strumienie
53 sieciowe (shoutcast, icecast, HTTP, FTP).
56 Summary: MP3 decoder for MoC - Music on Console
57 Summary(pl): Dekoder MP3 dla MOC
58 Group: Applications/Sound
59 Requires: %{name} = %{version}-%{release}
60 Provides: %{name}-input = %{version}-%{release}
63 This package contains the MP3 decoder.
64 After install you should reload MOC player.
66 %description mp3 -l pl
67 Ten pakiet zawiera dekodowanie formatu MP3.
68 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
71 Summary: Musepack (MPC) decoder for MoC - Music on Console
72 Summary(pl): Dekoder Musepack (MPC) dla MOC
73 Group: Applications/Sound
74 Requires: %{name} = %{version}-%{release}
75 Provides: %{name}-input = %{version}-%{release}
78 This package contains the Musepack (MPC) decoder.
79 After install you should reload MOC player.
81 %description musepack -l pl
82 Ten pakiet zawiera dekodowanie formatu Musepack (MPC).
83 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
86 Summary: Ogg decoder for MoC - Music on Console
87 Summary(pl): Dekoder Ogg dla MOC
88 Group: Applications/Sound
89 Requires: %{name} = %{version}-%{release}
90 Provides: %{name}-input = %{version}-%{release}
93 This package contains the Ogg decoder.
94 After install you should reload MOC player.
96 %description ogg -l pl
97 Ten pakiet zawiera dekodowanie formatu Ogg.
98 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
101 Summary: FLAC decoder for MoC - Music on Console
102 Summary(pl): Dekoder FLAC dla MOC
103 Group: Applications/Sound
104 Requires: %{name} = %{version}-%{release}
105 Provides: %{name}-input = %{version}-%{release}
108 This package contains the FLAC decoder.
109 After install you should reload MOC player.
111 %description flac -l pl
112 Ten pakiet zawiera dekodowanie formatu FLAC.
113 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
116 Summary: ffmpeg decoder for MoC - Music on Console
117 Summary(pl): Dekoder ffmpeg dla MOC
118 Group: Applications/Sound
119 Requires: %{name} = %{version}-%{release}
120 Provides: %{name}-input = %{version}-%{release}
123 This package contains module to decode WMA (and others)
125 After install you should reload MOC player.
127 %description ffmpeg -l pl
128 Ten pakiet zawiera modu³ dekoduj±cy pliki w formacie WMA (i nie tylko)
129 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
132 Summary: Decoder of the sndfile formats for MoC - Music on Console
133 Summary(pl): Dekoder plików WAV/AIFF
134 Group: Applications/Sound
135 Requires: %{name} = %{version}-%{release}
136 Provides: %{name}-input = %{version}-%{release}
139 This package contains the decoders of sndfile.
140 After install you should reload MOC player.
142 %description sndfile -l pl
143 Ten pakiet zapewnia dekodowanie plików WAV/AIFF.
144 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
147 Summary: Speex decoder for MoC - Music on Console
148 Summary(pl): Dekoder formatu Speex dla MOC
149 Group: Applications/Sound
150 Requires: %{name} = %{version}-%{release}
151 Provides: %{name}-input = %{version}-%{release}
154 This package contains the Speex decoder.
155 After install you should reload MOC player.
157 %description speex -l pl
158 Ten pakiet zapewnia dekodowanie formatu Speex.
159 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
163 %{?with_home_etc:%patch0 -p1}
166 CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
177 rm -rf $RPM_BUILD_ROOT
178 install -d $RPM_BUILD_ROOT
181 DESTDIR=$RPM_BUILD_ROOT
183 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
184 rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
187 rm -rf $RPM_BUILD_ROOT
190 %defattr(644,root,root,755)
191 %doc AUTHORS NEWS README THANKS TODO *.example
192 %attr(755,root,root) %{_bindir}/*
194 %dir %{_libdir}/moc/decoder_plugins
196 %{_mandir}/man1/mocp*
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
207 %defattr(664,root,root,755)
208 %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*