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