3 %bcond_without home_etc # disable HOME_ETC support
6 Summary: Console audio player with simple ncurses interface
7 Summary(pl): Konsolowy odtwarzacz audio z prostym interfejsem ncurses
12 Group: Applications/Sound
13 Source0: ftp://ftp.daper.net/pub/soft/%{name}/stable/%{name}-%{version}.tar.bz2
14 # Source0-md5: 5b31665390fb0b30d19dadec4e90abb8
15 Patch0: %{name}-home_etc.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: 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.
112 Summary: ffmpeg decoder for MoC - Music on Console
113 Summary(pl): Dekoder ffmpeg dla MOC
114 Group: Applications/Sound
115 Requires: %{name} = %{version}-%{release}
116 Provides: %{name}-input = %{version}-%{release}
119 This package contains module to decode WMA (and others)
121 After install you should reload MOC player.
123 %description ffmpeg -l pl
124 Ten pakiet zawiera modu³ dekoduj±cy pliki w formacie WMA (i nie tylko)
125 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
128 Summary: Decoder of the sndfile formats for MoC - Music on Console
129 Summary(pl): Dekoder plików WAV/AIFF
130 Group: Applications/Sound
131 Requires: %{name} = %{version}-%{release}
132 Provides: %{name}-input = %{version}-%{release}
135 This package contains the decoders of sndfile.
136 After install you should reload MOC player.
138 %description sndfile -l pl
139 Ten pakiet zapewnia dekodowanie plików WAV/AIFF.
140 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
143 Summary: Speex decoder for MoC - Music on Console
144 Summary(pl): Dekoder formatu Speex dla MOC
145 Group: Applications/Sound
146 Requires: %{name} = %{version}-%{release}
147 Provides: %{name}-input = %{version}-%{release}
150 This package contains the Speex decoder.
151 After install you should reload MOC player.
153 %description speex -l pl
154 Ten pakiet zapewnia dekodowanie formatu Speex.
155 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
159 %{?with_home_etc:%patch0 -p1}
162 CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT
177 DESTDIR=$RPM_BUILD_ROOT
179 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
180 rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
183 rm -rf $RPM_BUILD_ROOT
186 %defattr(644,root,root,755)
187 %doc AUTHORS NEWS README THANKS TODO *.example
188 %attr(755,root,root) %{_bindir}/*
190 %dir %{_libdir}/moc/decoder_plugins
192 %{_mandir}/man1/mocp*
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
203 %defattr(664,root,root,755)
204 %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*