]>
Commit | Line | Data |
---|---|---|
c8387c7f JK |
1 | # |
2 | # bconds: | |
3 | %bcond_without home_etc # disable HOME_ETC support | |
4 | # | |
c7ccbf07 | 5 | Summary: Console audio player with simple ncurses interface |
a345b7c9 | 6 | Summary(pl.UTF-8): Konsolowy odtwarzacz audio z prostym interfejsem ncurses |
c7ccbf07 | 7 | Name: moc |
6c878bb5 SS |
8 | Version: 2.4.3 |
9 | Release: 0.1 | |
c7ccbf07 | 10 | License: GPL |
11 | Group: Applications/Sound | |
03adbdf0 | 12 | Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2 |
ad3712db | 13 | # Source0-md5: 8808082848e90eeec5415baaec7e98ad |
c8387c7f | 14 | Patch0: %{name}-home_etc.patch |
2fa8898a | 15 | Patch1: %{name}-ffmpeg.patch |
8e1e5061 | 16 | URL: http://moc.daper.net/ |
c5979edd | 17 | BuildRequires: a52dec-libs-devel |
cc2ffc66 | 18 | BuildRequires: alsa-lib-devel |
0c945e10 JB |
19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
e65ad672 | 21 | BuildRequires: curl-devel |
f9361176 | 22 | BuildRequires: ffmpeg-devel |
d75deb5b | 23 | BuildRequires: flac-devel >= 1.1.3 |
c7ccbf07 | 24 | BuildRequires: libao-devel |
af3b8ba1 | 25 | BuildRequires: libid3tag-devel |
2fb10303 | 26 | BuildRequires: libltdl-devel |
38905600 | 27 | BuildRequires: libmad-devel |
e65ad672 JW |
28 | BuildRequires: libmpcdec-devel >= 1.2 |
29 | BuildRequires: libsamplerate-devel | |
cb9be878 | 30 | BuildRequires: libsndfile-devel |
649cafba | 31 | BuildRequires: libtool |
c7ccbf07 | 32 | BuildRequires: libvorbis-devel |
c7ccbf07 | 33 | BuildRequires: ncurses-devel |
739c4f67 | 34 | BuildRequires: pkgconfig |
54cfe0c7 | 35 | BuildRequires: speex-devel |
e65ad672 | 36 | BuildRequires: taglib-devel >= 1.3.1 |
c7ccbf07 | 37 | BuildRequires: zlib-devel |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5d72a8a0 JB |
39 | |
40 | %define _decoder_plugins %{_libdir}/%{name}/decoder_plugins | |
c7ccbf07 | 41 | |
42 | %description | |
43 | MOC is a console audio player with simple ncurses interface in | |
e65ad672 | 44 | playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV |
54cfe0c7 ER |
45 | and other less popular formats supported by libsndfile. It has all |
46 | functions one may expect from simple audio player. Now it supports net | |
47 | streams (shoutcast, icecast, regular HTTP, FTP) also. | |
c7ccbf07 | 48 | |
754c2cae JR |
49 | %description -l pl.UTF-8 |
50 | MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym | |
54cfe0c7 ER |
51 | skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack, |
52 | Speex, WAV oraz inne mniej popularne formaty wspierane przez | |
754c2cae JR |
53 | bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać |
54 | się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie | |
2fb10303 | 55 | sieciowe (shoutcast, icecast, HTTP, FTP). |
c7ccbf07 | 56 | |
c8387c7f JK |
57 | %package mp3 |
58 | Summary: MP3 decoder for MoC - Music on Console | |
a345b7c9 | 59 | Summary(pl.UTF-8): Dekoder MP3 dla MOC |
c8387c7f | 60 | Group: Applications/Sound |
5d72a8a0 JB |
61 | Requires: %{name} = %{version}-%{release} |
62 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
63 | |
64 | %description mp3 | |
54cfe0c7 ER |
65 | This package contains the MP3 decoder. After install you should reload |
66 | MOC player. | |
c8387c7f | 67 | |
754c2cae | 68 | %description mp3 -l pl.UTF-8 |
54cfe0c7 ER |
69 | Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy |
70 | uruchomić ponownie MOC. | |
c8387c7f JK |
71 | |
72 | %package musepack | |
73 | Summary: Musepack (MPC) decoder for MoC - Music on Console | |
a345b7c9 | 74 | Summary(pl.UTF-8): Dekoder Musepack (MPC) dla MOC |
c8387c7f | 75 | Group: Applications/Sound |
5d72a8a0 JB |
76 | Requires: %{name} = %{version}-%{release} |
77 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
78 | |
79 | %description musepack | |
54cfe0c7 ER |
80 | This package contains the Musepack (MPC) decoder. After install you |
81 | should reload MOC player. | |
c8387c7f | 82 | |
754c2cae | 83 | %description musepack -l pl.UTF-8 |
54cfe0c7 ER |
84 | Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po |
85 | zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
86 | |
87 | %package ogg | |
88 | Summary: Ogg decoder for MoC - Music on Console | |
a345b7c9 | 89 | Summary(pl.UTF-8): Dekoder Ogg dla MOC |
c8387c7f | 90 | Group: Applications/Sound |
5d72a8a0 JB |
91 | Requires: %{name} = %{version}-%{release} |
92 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
93 | |
94 | %description ogg | |
54cfe0c7 ER |
95 | This package contains the Ogg decoder. After install you should reload |
96 | MOC player. | |
c8387c7f | 97 | |
754c2cae | 98 | %description ogg -l pl.UTF-8 |
54cfe0c7 ER |
99 | Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy |
100 | uruchomić ponownie MOC. | |
c8387c7f JK |
101 | |
102 | %package flac | |
103 | Summary: FLAC decoder for MoC - Music on Console | |
a345b7c9 | 104 | Summary(pl.UTF-8): Dekoder FLAC dla MOC |
c8387c7f | 105 | Group: Applications/Sound |
5d72a8a0 JB |
106 | Requires: %{name} = %{version}-%{release} |
107 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
108 | |
109 | %description flac | |
54cfe0c7 ER |
110 | This package contains the FLAC decoder. After install you should |
111 | reload MOC player. | |
c8387c7f | 112 | |
754c2cae | 113 | %description flac -l pl.UTF-8 |
54cfe0c7 ER |
114 | Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy |
115 | uruchomić ponownie MOC. | |
03adbdf0 | 116 | |
f9361176 JK |
117 | %package ffmpeg |
118 | Summary: ffmpeg decoder for MoC - Music on Console | |
a345b7c9 | 119 | Summary(pl.UTF-8): Dekoder ffmpeg dla MOC |
f9361176 JK |
120 | Group: Applications/Sound |
121 | Requires: %{name} = %{version}-%{release} | |
122 | Provides: %{name}-input = %{version}-%{release} | |
123 | ||
124 | %description ffmpeg | |
54cfe0c7 ER |
125 | This package contains module to decode WMA (and others) files. After |
126 | install you should reload MOC player. | |
f9361176 | 127 | |
754c2cae JR |
128 | %description ffmpeg -l pl.UTF-8 |
129 | Ten pakiet zawiera moduł dekodujący pliki w formacie WMA (i nie tylko) | |
130 | Po zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
131 | |
132 | %package sndfile | |
133 | Summary: Decoder of the sndfile formats for MoC - Music on Console | |
a345b7c9 | 134 | Summary(pl.UTF-8): Dekoder plików WAV/AIFF |
c8387c7f | 135 | Group: Applications/Sound |
5d72a8a0 JB |
136 | Requires: %{name} = %{version}-%{release} |
137 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
138 | |
139 | %description sndfile | |
54cfe0c7 ER |
140 | This package contains the decoders of sndfile. After install you |
141 | should reload MOC player. | |
c8387c7f | 142 | |
754c2cae | 143 | %description sndfile -l pl.UTF-8 |
54cfe0c7 ER |
144 | Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu |
145 | należy uruchomić ponownie MOC. | |
c8387c7f JK |
146 | |
147 | %package speex | |
148 | Summary: Speex decoder for MoC - Music on Console | |
a345b7c9 | 149 | Summary(pl.UTF-8): Dekoder formatu Speex dla MOC |
c8387c7f | 150 | Group: Applications/Sound |
5d72a8a0 JB |
151 | Requires: %{name} = %{version}-%{release} |
152 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
153 | |
154 | %description speex | |
54cfe0c7 ER |
155 | This package contains the Speex decoder. After install you should |
156 | reload MOC player. | |
c8387c7f | 157 | |
754c2cae | 158 | %description speex -l pl.UTF-8 |
54cfe0c7 ER |
159 | Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu |
160 | należy uruchomić ponownie MOC. | |
c8387c7f | 161 | |
c7ccbf07 | 162 | %prep |
f9361176 | 163 | %setup -q |
c8387c7f | 164 | %{?with_home_etc:%patch0 -p1} |
2fa8898a | 165 | %patch1 -p1 |
c7ccbf07 | 166 | |
167 | %build | |
168 | CFLAGS="-I/usr/include/ncurses %{rpmcflags}" | |
169 | ||
ad3712db | 170 | %{__libtoolize} |
af3b8ba1 | 171 | %{__aclocal} -I m4 |
c7ccbf07 | 172 | %{__autoconf} |
173 | %{__automake} | |
2fb10303 | 174 | %configure \ |
54cfe0c7 | 175 | --disable-debug |
af3b8ba1 | 176 | |
c7ccbf07 | 177 | %{__make} |
20e5e609 | 178 | |
c7ccbf07 | 179 | %install |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | install -d $RPM_BUILD_ROOT | |
182 | ||
0c945e10 JB |
183 | %{__make} install \ |
184 | DESTDIR=$RPM_BUILD_ROOT | |
c7ccbf07 | 185 | |
649cafba | 186 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c8387c7f | 187 | rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la |
14c22435 | 188 | |
c7ccbf07 | 189 | %clean |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %files | |
193 | %defattr(644,root,root,755) | |
649cafba | 194 | %doc AUTHORS NEWS README THANKS TODO *.example |
c7ccbf07 | 195 | %attr(755,root,root) %{_bindir}/* |
2fb10303 | 196 | %dir %{_libdir}/moc |
5d72a8a0 | 197 | %dir %{_libdir}/moc/decoder_plugins |
ab0d17ae | 198 | %{_datadir}/%{name} |
56070975 | 199 | %{_mandir}/man1/mocp* |
c8387c7f JK |
200 | |
201 | %files musepack | |
5d72a8a0 JB |
202 | %defattr(644,root,root,755) |
203 | %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so* | |
c8387c7f JK |
204 | |
205 | %files flac | |
5d72a8a0 JB |
206 | %defattr(644,root,root,755) |
207 | %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so* | |
c8387c7f | 208 | |
f9361176 | 209 | %files ffmpeg |
54cfe0c7 | 210 | %defattr(644,root,root,755) |
f9361176 JK |
211 | %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so |
212 | ||
c8387c7f | 213 | %files mp3 |
5d72a8a0 JB |
214 | %defattr(644,root,root,755) |
215 | %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so* | |
c8387c7f JK |
216 | |
217 | %files ogg | |
5d72a8a0 JB |
218 | %defattr(644,root,root,755) |
219 | %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so* | |
c8387c7f JK |
220 | |
221 | %files sndfile | |
5d72a8a0 JB |
222 | %defattr(644,root,root,755) |
223 | %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so* | |
c8387c7f JK |
224 | |
225 | %files speex | |
5d72a8a0 JB |
226 | %defattr(644,root,root,755) |
227 | %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so* |