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