]> git.pld-linux.org Git - packages/moc.git/blob - moc.spec
- added ffmpeg bcond
[packages/moc.git] / moc.spec
1 #
2 # bconds:
3 %bcond_without  home_etc    # disable HOME_ETC support
4 %bcond_without  ffmpeg      # disable ffmpeg
5 #
6 Summary:        Console audio player with simple ncurses interface
7 Summary(hu.UTF-8):      Konzolos audiólejátszó egyszerű ncurses felülettel
8 Summary(pl.UTF-8):      Konsolowy odtwarzacz audio z prostym interfejsem ncurses
9 Name:           moc
10 Version:        2.4.4
11 Release:        8
12 License:        GPL
13 Group:          Applications/Sound
14 Source0:        ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
15 # Source0-md5:  647c770a5542a4ae5437386807a89796
16 Patch0:         %{name}-home_etc.patch
17 Patch1:         ncurses-tinfo.patch
18 URL:            http://moc.daper.net/
19 BuildRequires:  a52dec-libs-devel
20 BuildRequires:  alsa-lib-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  curl-devel
24 %{?with_ffmpeg:BuildRequires:   ffmpeg-devel >= 0.4.9-4.20080822.1}
25 BuildRequires:  flac-devel >= 1.1.3
26 BuildRequires:  libao-devel
27 BuildRequires:  libid3tag-devel
28 BuildRequires:  libltdl-devel
29 BuildRequires:  libmad-devel
30 BuildRequires:  libmpcdec-devel >= 1.2
31 BuildRequires:  libsamplerate-devel
32 BuildRequires:  libsndfile-devel
33 BuildRequires:  libtool
34 BuildRequires:  libvorbis-devel
35 BuildRequires:  ncurses-devel
36 BuildRequires:  pkgconfig
37 BuildRequires:  speex-devel
38 BuildRequires:  taglib-devel >= 1.3.1
39 BuildRequires:  zlib-devel
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %define         _decoder_plugins        %{_libdir}/%{name}/decoder_plugins
43
44 %description
45 MOC is a console audio player with simple ncurses interface in
46 playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV
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.
50
51 %description -l hu.UTF-8
52 MOC egy konzolos audió lejátszó egyszerű ncurses felülettel
53 playmp3list stílusban. MP3, Ogg, FLAC, Musepack, Speex, WAV és egyéb
54 kevésbé elterjedt formátumokat támogat a libsndfile segítségével.
55 Minden funkció megtalálható a programban, amelyet egy egyszerű audió
56 lejátszótól elvárható. A hálózati streameket (shoutcast, icecast,
57 általános HTTP, FTP) is támogatja.
58
59 %description -l pl.UTF-8
60 MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym
61 skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack,
62 Speex, WAV oraz inne mniej popularne formaty wspierane przez
63 bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać
64 się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie
65 sieciowe (shoutcast, icecast, HTTP, FTP).
66
67 %package mp3
68 Summary:        MP3 decoder for MoC - Music on Console
69 Summary(hu.UTF-8):      MP3 formátum támogatása MoC-hoz
70 Summary(pl.UTF-8):      Dekoder MP3 dla MOC
71 Group:          Applications/Sound
72 Requires:       %{name} = %{version}-%{release}
73 Provides:       %{name}-input = %{version}-%{release}
74
75 %description mp3
76 This package contains the MP3 decoder. After install you should reload
77 MOC player.
78
79 %description mp3 -l hu.UTF-8
80 Ez a csomag az MP3 dekódert tartalmazza. A telepítés után a MOC
81 lejátsztót újra kell indítani.
82
83 %description mp3 -l pl.UTF-8
84 Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy
85 uruchomić ponownie MOC.
86
87 %package musepack
88 Summary:        Musepack (MPC) decoder for MoC - Music on Console
89 Summary(hu.UTF-8):      Musepack (MPC) dekóder MoC-hoz
90 Summary(pl.UTF-8):      Dekoder Musepack (MPC) dla MOC
91 Group:          Applications/Sound
92 Requires:       %{name} = %{version}-%{release}
93 Provides:       %{name}-input = %{version}-%{release}
94
95 %description musepack
96 This package contains the Musepack (MPC) decoder. After install you
97 should reload MOC player.
98
99 %description musepack -l hu.UTF-8
100 Ez a csomag a Musepack (MPC) dekódert tartalmazza. A telepítés után a
101 MOC lejátsztót újra kell indítani.
102
103 %description musepack -l pl.UTF-8
104 Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po
105 zainstalowaniu należy uruchomić ponownie MOC.
106
107 %package ogg
108 Summary:        Ogg decoder for MoC - Music on Console
109 Summary(hu.UTF-8):      Ogg dekóder MOC-hoz
110 Summary(pl.UTF-8):      Dekoder Ogg dla MOC
111 Group:          Applications/Sound
112 Requires:       %{name} = %{version}-%{release}
113 Provides:       %{name}-input = %{version}-%{release}
114
115 %description ogg
116 This package contains the Ogg decoder. After install you should reload
117 MOC player.
118
119 %description ogg -l hu.UTF-8
120 Ez a csomag az Ogg dekódert tartalmazza. A telepítés után a MOC
121 lejátsztót újra kell indítani.
122
123 %description ogg -l pl.UTF-8
124 Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy
125 uruchomić ponownie MOC.
126
127 %package flac
128 Summary:        FLAC decoder for MoC - Music on Console
129 Summary(hu.UTF-8):      FLAC dekóder MOC-hoz
130 Summary(pl.UTF-8):      Dekoder FLAC dla MOC
131 Group:          Applications/Sound
132 Requires:       %{name} = %{version}-%{release}
133 Provides:       %{name}-input = %{version}-%{release}
134
135 %description flac
136 This package contains the FLAC decoder. After install you should
137 reload MOC player.
138
139 %description flac -l hu.UTF-8
140 Ez a csomag az FLAC dekódert tartalmazza. A telepítés után a MOC
141 lejátsztót újra kell indítani.
142
143 %description flac -l pl.UTF-8
144 Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy
145 uruchomić ponownie MOC.
146
147 %package ffmpeg
148 Summary:        ffmpeg decoder for MoC - Music on Console
149 Summary(hu.UTF-8):      ffmpeg dekóder MOC-hoz
150 Summary(pl.UTF-8):      Dekoder ffmpeg dla MOC
151 Group:          Applications/Sound
152 Requires:       %{name} = %{version}-%{release}
153 Provides:       %{name}-input = %{version}-%{release}
154
155 %description ffmpeg
156 This package contains module to decode WMA (and others) files. After
157 install you should reload MOC player.
158
159 %description ffmpeg -l hu.UTF-8
160 Ez a csomag az ffmpeg dekódert tartalmazza. A telepítés után a MOC
161 lejátsztót újra kell indítani.
162
163 %description ffmpeg -l pl.UTF-8
164 Ten pakiet zawiera moduł dekodujący pliki w formacie WMA (i nie tylko)
165 Po zainstalowaniu należy uruchomić ponownie MOC.
166
167 %package sndfile
168 Summary:        Decoder of the sndfile formats for MoC - Music on Console
169 Summary(hu.UTF-8):      sndfile dekóder MOC-hoz
170 Summary(pl.UTF-8):      Dekoder plików WAV/AIFF
171 Group:          Applications/Sound
172 Requires:       %{name} = %{version}-%{release}
173 Provides:       %{name}-input = %{version}-%{release}
174
175 %description sndfile
176 This package contains the decoders of sndfile. After install you
177 should reload MOC player.
178
179 %description sndfile -l hu.UTF-8
180 Ez a csomag az sndfile dekódert tartalmazza. A telepítés után a MOC
181 lejátsztót újra kell indítani.
182
183 %description sndfile -l pl.UTF-8
184 Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu
185 należy uruchomić ponownie MOC.
186
187 %package speex
188 Summary:        Speex decoder for MoC - Music on Console
189 Summary(hu.UTF-8):      Speex dekóder MOC-hoz
190 Summary(pl.UTF-8):      Dekoder formatu Speex dla MOC
191 Group:          Applications/Sound
192 Requires:       %{name} = %{version}-%{release}
193 Provides:       %{name}-input = %{version}-%{release}
194
195 %description speex
196 This package contains the Speex decoder. After install you should
197 reload MOC player.
198
199 %description speex -l hu.UTF-8
200 Ez a csomag az speex dekódert tartalmazza. A telepítés után a MOC
201 lejátsztót újra kell indítani.
202
203 %description speex -l pl.UTF-8
204 Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu
205 należy uruchomić ponownie MOC.
206
207 %prep
208 %setup -q
209 %{?with_home_etc:%patch0 -p1}
210 %patch1 -p1
211
212
213 rm -rf libltdl
214 %{__sed} -i -e '/SUBDIRS/ s/libltdl//' Makefile.am
215 %{__sed} -i -e '
216         /LT_CONFIG_LTDL_DIR/d
217         /LT_INIT/d
218         /LTDL_INIT/d
219         /AC_CONFIG_AUX_DIR/d
220         /AC_CONFIG_MACRO_DIR/d
221 ' configure.in
222
223 %build
224 CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
225
226 %{__libtoolize}
227 %{__aclocal} -I m4
228 %{__autoconf}
229 %{__automake}
230 %configure \
231         %{!?with_ffmpeg:--without-ffmpeg} \
232         --disable-debug
233
234 %{__make} \
235         LIBLTDL=-lltdl
236
237 %install
238 rm -rf $RPM_BUILD_ROOT
239 install -d $RPM_BUILD_ROOT
240
241 %{__make} install \
242         DESTDIR=$RPM_BUILD_ROOT
243
244 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
245 rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
246
247 %clean
248 rm -rf $RPM_BUILD_ROOT
249
250 %files
251 %defattr(644,root,root,755)
252 %doc AUTHORS NEWS README THANKS TODO *.example
253 %attr(755,root,root) %{_bindir}/*
254 %dir %{_libdir}/moc
255 %dir %{_libdir}/moc/decoder_plugins
256 %{_datadir}/%{name}
257 %{_mandir}/man1/mocp*
258
259 %files musepack
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
262
263 %files flac
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
266
267 %if %{with ffmpeg}
268 %files ffmpeg
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
271 %endif
272
273 %files mp3
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
276
277 %files ogg
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
280
281 %files sndfile
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
284
285 %files speex
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*
This page took 0.183796 seconds and 3 git commands to generate.