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