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