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