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