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