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