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