]> git.pld-linux.org Git - packages/moc.git/blame - moc.spec
- use system ltdl
[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
a345b7c9 6Summary(pl.UTF-8): Konsolowy odtwarzacz audio z prostym interfejsem ncurses
c7ccbf07 7Name: moc
6c878bb5
SS
8Version: 2.4.3
9Release: 0.1
c7ccbf07 10License: GPL
11Group: Applications/Sound
03adbdf0 12Source0: ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
ad3712db 13# Source0-md5: 8808082848e90eeec5415baaec7e98ad
c8387c7f 14Patch0: %{name}-home_etc.patch
2fa8898a 15Patch1: %{name}-ffmpeg.patch
8e1e5061 16URL: http://moc.daper.net/
c5979edd 17BuildRequires: a52dec-libs-devel
cc2ffc66 18BuildRequires: alsa-lib-devel
0c945e10
JB
19BuildRequires: autoconf
20BuildRequires: automake
e65ad672 21BuildRequires: curl-devel
f9361176 22BuildRequires: ffmpeg-devel
d75deb5b 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
54cfe0c7 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
54cfe0c7
ER
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.
c7ccbf07 48
754c2cae
JR
49%description -l pl.UTF-8
50MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym
54cfe0c7
ER
51skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack,
52Speex, WAV oraz inne mniej popularne formaty wspierane przez
754c2cae
JR
53bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać
54się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie
2fb10303 55sieciowe (shoutcast, icecast, HTTP, FTP).
c7ccbf07 56
c8387c7f
JK
57%package mp3
58Summary: MP3 decoder for MoC - Music on Console
a345b7c9 59Summary(pl.UTF-8): Dekoder MP3 dla MOC
c8387c7f 60Group: Applications/Sound
5d72a8a0
JB
61Requires: %{name} = %{version}-%{release}
62Provides: %{name}-input = %{version}-%{release}
c8387c7f
JK
63
64%description mp3
54cfe0c7
ER
65This package contains the MP3 decoder. After install you should reload
66MOC player.
c8387c7f 67
754c2cae 68%description mp3 -l pl.UTF-8
54cfe0c7
ER
69Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy
70uruchomić ponownie MOC.
c8387c7f
JK
71
72%package musepack
73Summary: Musepack (MPC) decoder for MoC - Music on Console
a345b7c9 74Summary(pl.UTF-8): Dekoder Musepack (MPC) dla MOC
c8387c7f 75Group: Applications/Sound
5d72a8a0
JB
76Requires: %{name} = %{version}-%{release}
77Provides: %{name}-input = %{version}-%{release}
c8387c7f
JK
78
79%description musepack
54cfe0c7
ER
80This package contains the Musepack (MPC) decoder. After install you
81should reload MOC player.
c8387c7f 82
754c2cae 83%description musepack -l pl.UTF-8
54cfe0c7
ER
84Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po
85zainstalowaniu należy uruchomić ponownie MOC.
c8387c7f
JK
86
87%package ogg
88Summary: Ogg decoder for MoC - Music on Console
a345b7c9 89Summary(pl.UTF-8): Dekoder Ogg dla MOC
c8387c7f 90Group: Applications/Sound
5d72a8a0
JB
91Requires: %{name} = %{version}-%{release}
92Provides: %{name}-input = %{version}-%{release}
c8387c7f
JK
93
94%description ogg
54cfe0c7
ER
95This package contains the Ogg decoder. After install you should reload
96MOC player.
c8387c7f 97
754c2cae 98%description ogg -l pl.UTF-8
54cfe0c7
ER
99Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy
100uruchomić ponownie MOC.
c8387c7f
JK
101
102%package flac
103Summary: FLAC decoder for MoC - Music on Console
a345b7c9 104Summary(pl.UTF-8): Dekoder FLAC dla MOC
c8387c7f 105Group: Applications/Sound
5d72a8a0
JB
106Requires: %{name} = %{version}-%{release}
107Provides: %{name}-input = %{version}-%{release}
c8387c7f
JK
108
109%description flac
54cfe0c7
ER
110This package contains the FLAC decoder. After install you should
111reload MOC player.
c8387c7f 112
754c2cae 113%description flac -l pl.UTF-8
54cfe0c7
ER
114Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy
115uruchomić ponownie MOC.
03adbdf0 116
f9361176
JK
117%package ffmpeg
118Summary: ffmpeg decoder for MoC - Music on Console
a345b7c9 119Summary(pl.UTF-8): Dekoder ffmpeg dla MOC
f9361176
JK
120Group: Applications/Sound
121Requires: %{name} = %{version}-%{release}
122Provides: %{name}-input = %{version}-%{release}
123
124%description ffmpeg
54cfe0c7
ER
125This package contains module to decode WMA (and others) files. After
126install you should reload MOC player.
f9361176 127
754c2cae
JR
128%description ffmpeg -l pl.UTF-8
129Ten pakiet zawiera moduł dekodujący pliki w formacie WMA (i nie tylko)
130Po zainstalowaniu należy uruchomić ponownie MOC.
c8387c7f
JK
131
132%package sndfile
133Summary: Decoder of the sndfile formats for MoC - Music on Console
a345b7c9 134Summary(pl.UTF-8): Dekoder plików WAV/AIFF
c8387c7f 135Group: Applications/Sound
5d72a8a0
JB
136Requires: %{name} = %{version}-%{release}
137Provides: %{name}-input = %{version}-%{release}
c8387c7f
JK
138
139%description sndfile
54cfe0c7
ER
140This package contains the decoders of sndfile. After install you
141should reload MOC player.
c8387c7f 142
754c2cae 143%description sndfile -l pl.UTF-8
54cfe0c7
ER
144Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu
145należy uruchomić ponownie MOC.
c8387c7f
JK
146
147%package speex
148Summary: Speex decoder for MoC - Music on Console
a345b7c9 149Summary(pl.UTF-8): Dekoder formatu Speex dla MOC
c8387c7f 150Group: Applications/Sound
5d72a8a0
JB
151Requires: %{name} = %{version}-%{release}
152Provides: %{name}-input = %{version}-%{release}
c8387c7f
JK
153
154%description speex
54cfe0c7
ER
155This package contains the Speex decoder. After install you should
156reload MOC player.
c8387c7f 157
754c2cae 158%description speex -l pl.UTF-8
54cfe0c7
ER
159Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu
160należy uruchomić ponownie MOC.
c8387c7f 161
c7ccbf07 162%prep
f9361176 163%setup -q
c8387c7f 164%{?with_home_etc:%patch0 -p1}
2fa8898a 165%patch1 -p1
c7ccbf07 166
167%build
168CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
169
ad3712db 170%{__libtoolize}
af3b8ba1 171%{__aclocal} -I m4
c7ccbf07 172%{__autoconf}
173%{__automake}
2fb10303 174%configure \
54cfe0c7 175 --disable-debug
af3b8ba1 176
c7ccbf07 177%{__make}
20e5e609 178
c7ccbf07 179%install
180rm -rf $RPM_BUILD_ROOT
181install -d $RPM_BUILD_ROOT
182
0c945e10
JB
183%{__make} install \
184 DESTDIR=$RPM_BUILD_ROOT
c7ccbf07 185
649cafba 186rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
c8387c7f 187rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
14c22435 188
c7ccbf07 189%clean
190rm -rf $RPM_BUILD_ROOT
191
192%files
193%defattr(644,root,root,755)
649cafba 194%doc AUTHORS NEWS README THANKS TODO *.example
c7ccbf07 195%attr(755,root,root) %{_bindir}/*
2fb10303 196%dir %{_libdir}/moc
5d72a8a0 197%dir %{_libdir}/moc/decoder_plugins
ab0d17ae 198%{_datadir}/%{name}
56070975 199%{_mandir}/man1/mocp*
c8387c7f
JK
200
201%files musepack
5d72a8a0
JB
202%defattr(644,root,root,755)
203%attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
c8387c7f
JK
204
205%files flac
5d72a8a0
JB
206%defattr(644,root,root,755)
207%attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
c8387c7f 208
f9361176 209%files ffmpeg
54cfe0c7 210%defattr(644,root,root,755)
f9361176
JK
211%attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
212
c8387c7f 213%files mp3
5d72a8a0
JB
214%defattr(644,root,root,755)
215%attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
c8387c7f
JK
216
217%files ogg
5d72a8a0
JB
218%defattr(644,root,root,755)
219%attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
c8387c7f
JK
220
221%files sndfile
5d72a8a0
JB
222%defattr(644,root,root,755)
223%attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
c8387c7f
JK
224
225%files speex
5d72a8a0
JB
226%defattr(644,root,root,755)
227%attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*
This page took 0.514265 seconds and 4 git commands to generate.