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