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