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