]>
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 |
75be94e6 | 8 | Version: 2.4.1 |
d75deb5b | 9 | Release: 4 |
c7ccbf07 | 10 | License: GPL |
11 | Group: Applications/Sound | |
03adbdf0 | 12 | Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2 |
75be94e6 | 13 | # Source0-md5: 7b760a9c05d3f50781d06ed2d83aaee8 |
c8387c7f | 14 | Patch0: %{name}-home_etc.patch |
d75deb5b | 15 | Patch1: %{name}-flac.patch |
8e1e5061 | 16 | URL: http://moc.daper.net/ |
cc2ffc66 | 17 | BuildRequires: alsa-lib-devel |
0c945e10 JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
e65ad672 | 20 | BuildRequires: curl-devel |
f9361176 | 21 | BuildRequires: ffmpeg-devel |
3a4257b8 | 22 | BuildRequires: speex-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 |
e65ad672 | 35 | BuildRequires: taglib-devel >= 1.3.1 |
c7ccbf07 | 36 | BuildRequires: zlib-devel |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5d72a8a0 JB |
38 | |
39 | %define _decoder_plugins %{_libdir}/%{name}/decoder_plugins | |
c7ccbf07 | 40 | |
41 | %description | |
42 | MOC is a console audio player with simple ncurses interface in | |
e65ad672 | 43 | playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV |
2fb10303 JB |
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. | |
c7ccbf07 | 47 | |
754c2cae JR |
48 | %description -l pl.UTF-8 |
49 | MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym | |
50 | skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, | |
e65ad672 | 51 | Musepack, Speex, WAV oraz inne mniej popularne formaty wspierane przez |
754c2cae JR |
52 | bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać |
53 | się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie | |
2fb10303 | 54 | sieciowe (shoutcast, icecast, HTTP, FTP). |
c7ccbf07 | 55 | |
c8387c7f JK |
56 | %package mp3 |
57 | Summary: MP3 decoder for MoC - Music on Console | |
a345b7c9 | 58 | Summary(pl.UTF-8): Dekoder MP3 dla MOC |
c8387c7f | 59 | Group: Applications/Sound |
5d72a8a0 JB |
60 | Requires: %{name} = %{version}-%{release} |
61 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
62 | |
63 | %description mp3 | |
64 | This package contains the MP3 decoder. | |
65 | After install you should reload MOC player. | |
66 | ||
754c2cae | 67 | %description mp3 -l pl.UTF-8 |
5d72a8a0 | 68 | Ten pakiet zawiera dekodowanie formatu MP3. |
754c2cae | 69 | Po zainstalowaniu należy uruchomić ponownie MOC. |
c8387c7f JK |
70 | |
71 | %package musepack | |
72 | Summary: Musepack (MPC) decoder for MoC - Music on Console | |
a345b7c9 | 73 | Summary(pl.UTF-8): Dekoder Musepack (MPC) dla MOC |
c8387c7f | 74 | Group: Applications/Sound |
5d72a8a0 JB |
75 | Requires: %{name} = %{version}-%{release} |
76 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
77 | |
78 | %description musepack | |
5d72a8a0 | 79 | This package contains the Musepack (MPC) decoder. |
c8387c7f JK |
80 | After install you should reload MOC player. |
81 | ||
754c2cae | 82 | %description musepack -l pl.UTF-8 |
5d72a8a0 | 83 | Ten pakiet zawiera dekodowanie formatu Musepack (MPC). |
754c2cae | 84 | Po zainstalowaniu należy uruchomić ponownie MOC. |
c8387c7f JK |
85 | |
86 | %package ogg | |
87 | Summary: Ogg decoder for MoC - Music on Console | |
a345b7c9 | 88 | Summary(pl.UTF-8): Dekoder Ogg dla MOC |
c8387c7f | 89 | Group: Applications/Sound |
5d72a8a0 JB |
90 | Requires: %{name} = %{version}-%{release} |
91 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
92 | |
93 | %description ogg | |
5d72a8a0 | 94 | This package contains the Ogg decoder. |
c8387c7f JK |
95 | After install you should reload MOC player. |
96 | ||
754c2cae | 97 | %description ogg -l pl.UTF-8 |
5d72a8a0 | 98 | Ten pakiet zawiera dekodowanie formatu Ogg. |
754c2cae | 99 | Po zainstalowaniu należy uruchomić ponownie MOC. |
c8387c7f JK |
100 | |
101 | %package flac | |
102 | Summary: FLAC decoder for MoC - Music on Console | |
a345b7c9 | 103 | Summary(pl.UTF-8): Dekoder FLAC dla MOC |
c8387c7f | 104 | Group: Applications/Sound |
5d72a8a0 JB |
105 | Requires: %{name} = %{version}-%{release} |
106 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
107 | |
108 | %description flac | |
5d72a8a0 | 109 | This package contains the FLAC decoder. |
c8387c7f JK |
110 | After install you should reload MOC player. |
111 | ||
754c2cae | 112 | %description flac -l pl.UTF-8 |
03adbdf0 | 113 | Ten pakiet zawiera dekodowanie formatu FLAC. |
754c2cae | 114 | Po zainstalowaniu należy uruchomić ponownie MOC. |
03adbdf0 | 115 | |
f9361176 JK |
116 | %package ffmpeg |
117 | Summary: ffmpeg decoder for MoC - Music on Console | |
a345b7c9 | 118 | Summary(pl.UTF-8): Dekoder ffmpeg dla MOC |
f9361176 JK |
119 | Group: Applications/Sound |
120 | Requires: %{name} = %{version}-%{release} | |
121 | Provides: %{name}-input = %{version}-%{release} | |
122 | ||
123 | %description ffmpeg | |
124 | This package contains module to decode WMA (and others) | |
125 | files. | |
126 | After install you should reload MOC player. | |
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 | |
5d72a8a0 | 140 | This package contains the decoders of sndfile. |
c8387c7f JK |
141 | After install you should reload MOC player. |
142 | ||
754c2cae JR |
143 | %description sndfile -l pl.UTF-8 |
144 | Ten pakiet zapewnia dekodowanie plików WAV/AIFF. | |
145 | Po zainstalowaniu 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 | |
5d72a8a0 | 155 | This package contains the Speex decoder. |
c8387c7f JK |
156 | After install you should reload MOC player. |
157 | ||
754c2cae | 158 | %description speex -l pl.UTF-8 |
5d72a8a0 | 159 | Ten pakiet zapewnia dekodowanie formatu Speex. |
754c2cae | 160 | Po zainstalowaniu należy uruchomić ponownie MOC. |
c8387c7f | 161 | |
c7ccbf07 | 162 | %prep |
f9361176 | 163 | %setup -q |
c8387c7f | 164 | %{?with_home_etc:%patch0 -p1} |
d75deb5b | 165 | %patch1 -p1 |
c7ccbf07 | 166 | |
167 | %build | |
168 | CFLAGS="-I/usr/include/ncurses %{rpmcflags}" | |
169 | ||
af3b8ba1 | 170 | %{__aclocal} -I m4 |
c7ccbf07 | 171 | %{__autoconf} |
172 | %{__automake} | |
2fb10303 JB |
173 | %configure \ |
174 | --disable-debug | |
af3b8ba1 | 175 | |
c7ccbf07 | 176 | %{__make} |
20e5e609 | 177 | |
c7ccbf07 | 178 | %install |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | install -d $RPM_BUILD_ROOT | |
181 | ||
0c945e10 JB |
182 | %{__make} install \ |
183 | DESTDIR=$RPM_BUILD_ROOT | |
c7ccbf07 | 184 | |
649cafba | 185 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c8387c7f | 186 | rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la |
14c22435 | 187 | |
c7ccbf07 | 188 | %clean |
189 | rm -rf $RPM_BUILD_ROOT | |
190 | ||
191 | %files | |
192 | %defattr(644,root,root,755) | |
649cafba | 193 | %doc AUTHORS NEWS README THANKS TODO *.example |
c7ccbf07 | 194 | %attr(755,root,root) %{_bindir}/* |
2fb10303 | 195 | %dir %{_libdir}/moc |
5d72a8a0 | 196 | %dir %{_libdir}/moc/decoder_plugins |
ab0d17ae | 197 | %{_datadir}/%{name} |
56070975 | 198 | %{_mandir}/man1/mocp* |
c8387c7f JK |
199 | |
200 | %files musepack | |
5d72a8a0 JB |
201 | %defattr(644,root,root,755) |
202 | %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so* | |
c8387c7f JK |
203 | |
204 | %files flac | |
5d72a8a0 JB |
205 | %defattr(644,root,root,755) |
206 | %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so* | |
c8387c7f | 207 | |
f9361176 JK |
208 | %files ffmpeg |
209 | %defattr(664,root,root,755) | |
210 | %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so | |
211 | ||
c8387c7f | 212 | %files mp3 |
5d72a8a0 JB |
213 | %defattr(644,root,root,755) |
214 | %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so* | |
c8387c7f JK |
215 | |
216 | %files ogg | |
5d72a8a0 JB |
217 | %defattr(644,root,root,755) |
218 | %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so* | |
c8387c7f JK |
219 | |
220 | %files sndfile | |
5d72a8a0 JB |
221 | %defattr(644,root,root,755) |
222 | %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so* | |
c8387c7f JK |
223 | |
224 | %files speex | |
5d72a8a0 JB |
225 | %defattr(644,root,root,755) |
226 | %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so* |