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