]> git.pld-linux.org Git - packages/moc.git/blob - moc.spec
- ver. 2.4.3 (NFY)
[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:        0.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:  7b760a9c05d3f50781d06ed2d83aaee8
14 Patch0:         %{name}-home_etc.patch
15 Patch1:         %{name}-flac.patch
16 URL:            http://moc.daper.net/
17 BuildRequires:  a52dec-libs-devel
18 BuildRequires:  alsa-lib-devel
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  curl-devel
22 BuildRequires:  ffmpeg-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:  speex-devel
36 BuildRequires:  taglib-devel >= 1.3.1
37 BuildRequires:  zlib-devel
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         _decoder_plugins        %{_libdir}/%{name}/decoder_plugins
41
42 %description
43 MOC is a console audio player with simple ncurses interface in
44 playmp3list style. It supports MP3, Ogg, FLAC, Musepack, Speex, WAV
45 and other less popular formats supported by libsndfile. It has all
46 functions one may expect from simple audio player. Now it supports net
47 streams (shoutcast, icecast, regular HTTP, FTP) also.
48
49 %description -l pl.UTF-8
50 MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym
51 skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack,
52 Speex, WAV oraz inne mniej popularne formaty wspierane przez
53 bibliotekę libsndfile. Ma wszystkie funkcje, których można spodziewać
54 się w prostym odtwarzaczu audio. Teraz także obsługuje strumienie
55 sieciowe (shoutcast, icecast, HTTP, FTP).
56
57 %package mp3
58 Summary:        MP3 decoder for MoC - Music on Console
59 Summary(pl.UTF-8):      Dekoder MP3 dla MOC
60 Group:          Applications/Sound
61 Requires:       %{name} = %{version}-%{release}
62 Provides:       %{name}-input = %{version}-%{release}
63
64 %description mp3
65 This package contains the MP3 decoder. After install you should reload
66 MOC player.
67
68 %description mp3 -l pl.UTF-8
69 Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy
70 uruchomić ponownie MOC.
71
72 %package musepack
73 Summary:        Musepack (MPC) decoder for MoC - Music on Console
74 Summary(pl.UTF-8):      Dekoder Musepack (MPC) dla MOC
75 Group:          Applications/Sound
76 Requires:       %{name} = %{version}-%{release}
77 Provides:       %{name}-input = %{version}-%{release}
78
79 %description musepack
80 This package contains the Musepack (MPC) decoder. After install you
81 should reload MOC player.
82
83 %description musepack -l pl.UTF-8
84 Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po
85 zainstalowaniu należy uruchomić ponownie MOC.
86
87 %package ogg
88 Summary:        Ogg decoder for MoC - Music on Console
89 Summary(pl.UTF-8):      Dekoder Ogg dla MOC
90 Group:          Applications/Sound
91 Requires:       %{name} = %{version}-%{release}
92 Provides:       %{name}-input = %{version}-%{release}
93
94 %description ogg
95 This package contains the Ogg decoder. After install you should reload
96 MOC player.
97
98 %description ogg -l pl.UTF-8
99 Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy
100 uruchomić ponownie MOC.
101
102 %package flac
103 Summary:        FLAC decoder for MoC - Music on Console
104 Summary(pl.UTF-8):      Dekoder FLAC dla MOC
105 Group:          Applications/Sound
106 Requires:       %{name} = %{version}-%{release}
107 Provides:       %{name}-input = %{version}-%{release}
108
109 %description flac
110 This package contains the FLAC decoder. After install you should
111 reload MOC player.
112
113 %description flac -l pl.UTF-8
114 Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy
115 uruchomić ponownie MOC.
116
117 %package ffmpeg
118 Summary:        ffmpeg decoder for MoC - Music on Console
119 Summary(pl.UTF-8):      Dekoder ffmpeg dla MOC
120 Group:          Applications/Sound
121 Requires:       %{name} = %{version}-%{release}
122 Provides:       %{name}-input = %{version}-%{release}
123
124 %description ffmpeg
125 This package contains module to decode WMA (and others) files. After
126 install you should reload MOC player.
127
128 %description ffmpeg -l pl.UTF-8
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.UTF-8):      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. After install you
141 should reload MOC player.
142
143 %description sndfile -l pl.UTF-8
144 Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu
145 należy uruchomić ponownie MOC.
146
147 %package speex
148 Summary:        Speex decoder for MoC - Music on Console
149 Summary(pl.UTF-8):      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. After install you should
156 reload MOC player.
157
158 %description speex -l pl.UTF-8
159 Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu
160 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(644,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 0.081469 seconds and 4 git commands to generate.