]>
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 SS |
8 | Version: 2.4.3 |
9 | Release: 0.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 |
8e1e5061 | 15 | URL: http://moc.daper.net/ |
c5979edd | 16 | BuildRequires: a52dec-libs-devel |
cc2ffc66 | 17 | BuildRequires: alsa-lib-devel |
0c945e10 JB |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
e65ad672 | 20 | BuildRequires: curl-devel |
f9361176 | 21 | BuildRequires: ffmpeg-devel |
d75deb5b | 22 | BuildRequires: flac-devel >= 1.1.3 |
c7ccbf07 | 23 | BuildRequires: libao-devel |
af3b8ba1 | 24 | BuildRequires: libid3tag-devel |
2fb10303 | 25 | BuildRequires: libltdl-devel |
38905600 | 26 | BuildRequires: libmad-devel |
e65ad672 JW |
27 | BuildRequires: libmpcdec-devel >= 1.2 |
28 | BuildRequires: libsamplerate-devel | |
cb9be878 | 29 | BuildRequires: libsndfile-devel |
649cafba | 30 | BuildRequires: libtool |
c7ccbf07 | 31 | BuildRequires: libvorbis-devel |
c7ccbf07 | 32 | BuildRequires: ncurses-devel |
739c4f67 | 33 | BuildRequires: pkgconfig |
54cfe0c7 | 34 | BuildRequires: speex-devel |
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 |
54cfe0c7 ER |
44 | and other less popular formats supported by libsndfile. It has all |
45 | functions one may expect from simple audio player. Now it supports net | |
46 | 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 | |
54cfe0c7 ER |
50 | skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack, |
51 | 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 | |
54cfe0c7 ER |
64 | This package contains the MP3 decoder. After install you should reload |
65 | MOC player. | |
c8387c7f | 66 | |
754c2cae | 67 | %description mp3 -l pl.UTF-8 |
54cfe0c7 ER |
68 | Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy |
69 | 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 | |
54cfe0c7 ER |
79 | This package contains the Musepack (MPC) decoder. After install you |
80 | should reload MOC player. | |
c8387c7f | 81 | |
754c2cae | 82 | %description musepack -l pl.UTF-8 |
54cfe0c7 ER |
83 | Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po |
84 | 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 | |
54cfe0c7 ER |
94 | This package contains the Ogg decoder. After install you should reload |
95 | MOC player. | |
c8387c7f | 96 | |
754c2cae | 97 | %description ogg -l pl.UTF-8 |
54cfe0c7 ER |
98 | Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy |
99 | 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 | |
54cfe0c7 ER |
109 | This package contains the FLAC decoder. After install you should |
110 | reload MOC player. | |
c8387c7f | 111 | |
754c2cae | 112 | %description flac -l pl.UTF-8 |
54cfe0c7 ER |
113 | Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy |
114 | 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 | |
54cfe0c7 ER |
124 | This package contains module to decode WMA (and others) files. After |
125 | install you should reload MOC player. | |
f9361176 | 126 | |
754c2cae JR |
127 | %description ffmpeg -l pl.UTF-8 |
128 | Ten pakiet zawiera moduł dekodujący pliki w formacie WMA (i nie tylko) | |
129 | Po zainstalowaniu należy uruchomić ponownie MOC. | |
c8387c7f JK |
130 | |
131 | %package sndfile | |
132 | Summary: Decoder of the sndfile formats for MoC - Music on Console | |
a345b7c9 | 133 | Summary(pl.UTF-8): Dekoder plików WAV/AIFF |
c8387c7f | 134 | Group: Applications/Sound |
5d72a8a0 JB |
135 | Requires: %{name} = %{version}-%{release} |
136 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
137 | |
138 | %description sndfile | |
54cfe0c7 ER |
139 | This package contains the decoders of sndfile. After install you |
140 | should reload MOC player. | |
c8387c7f | 141 | |
754c2cae | 142 | %description sndfile -l pl.UTF-8 |
54cfe0c7 ER |
143 | Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu |
144 | należy uruchomić ponownie MOC. | |
c8387c7f JK |
145 | |
146 | %package speex | |
147 | Summary: Speex decoder for MoC - Music on Console | |
a345b7c9 | 148 | Summary(pl.UTF-8): Dekoder formatu Speex dla MOC |
c8387c7f | 149 | Group: Applications/Sound |
5d72a8a0 JB |
150 | Requires: %{name} = %{version}-%{release} |
151 | Provides: %{name}-input = %{version}-%{release} | |
c8387c7f JK |
152 | |
153 | %description speex | |
54cfe0c7 ER |
154 | This package contains the Speex decoder. After install you should |
155 | reload MOC player. | |
c8387c7f | 156 | |
754c2cae | 157 | %description speex -l pl.UTF-8 |
54cfe0c7 ER |
158 | Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu |
159 | należy uruchomić ponownie MOC. | |
c8387c7f | 160 | |
c7ccbf07 | 161 | %prep |
f9361176 | 162 | %setup -q |
c8387c7f | 163 | %{?with_home_etc:%patch0 -p1} |
c7ccbf07 | 164 | |
165 | %build | |
166 | CFLAGS="-I/usr/include/ncurses %{rpmcflags}" | |
167 | ||
ad3712db | 168 | %{__libtoolize} |
af3b8ba1 | 169 | %{__aclocal} -I m4 |
c7ccbf07 | 170 | %{__autoconf} |
171 | %{__automake} | |
2fb10303 | 172 | %configure \ |
54cfe0c7 | 173 | --disable-debug |
af3b8ba1 | 174 | |
c7ccbf07 | 175 | %{__make} |
20e5e609 | 176 | |
c7ccbf07 | 177 | %install |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | install -d $RPM_BUILD_ROOT | |
180 | ||
0c945e10 JB |
181 | %{__make} install \ |
182 | DESTDIR=$RPM_BUILD_ROOT | |
c7ccbf07 | 183 | |
649cafba | 184 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
c8387c7f | 185 | rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la |
14c22435 | 186 | |
c7ccbf07 | 187 | %clean |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %files | |
191 | %defattr(644,root,root,755) | |
649cafba | 192 | %doc AUTHORS NEWS README THANKS TODO *.example |
c7ccbf07 | 193 | %attr(755,root,root) %{_bindir}/* |
2fb10303 | 194 | %dir %{_libdir}/moc |
5d72a8a0 | 195 | %dir %{_libdir}/moc/decoder_plugins |
ab0d17ae | 196 | %{_datadir}/%{name} |
56070975 | 197 | %{_mandir}/man1/mocp* |
c8387c7f JK |
198 | |
199 | %files musepack | |
5d72a8a0 JB |
200 | %defattr(644,root,root,755) |
201 | %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so* | |
c8387c7f JK |
202 | |
203 | %files flac | |
5d72a8a0 JB |
204 | %defattr(644,root,root,755) |
205 | %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so* | |
c8387c7f | 206 | |
f9361176 | 207 | %files ffmpeg |
54cfe0c7 | 208 | %defattr(644,root,root,755) |
f9361176 JK |
209 | %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so |
210 | ||
c8387c7f | 211 | %files mp3 |
5d72a8a0 JB |
212 | %defattr(644,root,root,755) |
213 | %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so* | |
c8387c7f JK |
214 | |
215 | %files ogg | |
5d72a8a0 JB |
216 | %defattr(644,root,root,755) |
217 | %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so* | |
c8387c7f JK |
218 | |
219 | %files sndfile | |
5d72a8a0 JB |
220 | %defattr(644,root,root,755) |
221 | %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so* | |
c8387c7f JK |
222 | |
223 | %files speex | |
5d72a8a0 JB |
224 | %defattr(644,root,root,755) |
225 | %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so* |