]> git.pld-linux.org Git - packages/moc.git/blob - moc.spec
- up to 2.4.0 stable
[packages/moc.git] / moc.spec
1 #
2 # bconds:
3 %bcond_without  home_etc    # disable HOME_ETC support
4 #
5
6 Summary:        Console audio player with simple ncurses interface
7 Summary(pl):    Konsolowy odtwarzacz audio z prostym interfejsem ncurses
8 Name:           moc
9 Version:        2.4.0
10 Release:        1
11 License:        GPL
12 Group:          Applications/Sound
13 Source0:        ftp://ftp.daper.net/pub/soft/%{name}/stable/%{name}-%{version}.tar.bz2
14 # Source0-md5:  5b31665390fb0b30d19dadec4e90abb8
15 Patch0:         %{name}-home_etc.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:  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 %package ffmpeg
112 Summary:        ffmpeg decoder for MoC - Music on Console
113 Summary(pl):    Dekoder ffmpeg dla MOC
114 Group:          Applications/Sound
115 Requires:       %{name} = %{version}-%{release}
116 Provides:       %{name}-input = %{version}-%{release}
117
118 %description ffmpeg
119 This package contains module to decode WMA (and others) 
120 files.
121 After install you should reload MOC player.
122
123 %description ffmpeg -l pl
124 Ten pakiet zawiera modu³ dekoduj±cy pliki w formacie WMA (i nie tylko)
125 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
126
127 %package sndfile
128 Summary:        Decoder of the sndfile formats for MoC - Music on Console
129 Summary(pl):    Dekoder plików WAV/AIFF
130 Group:          Applications/Sound
131 Requires:       %{name} = %{version}-%{release}
132 Provides:       %{name}-input = %{version}-%{release}
133
134 %description sndfile
135 This package contains the decoders of sndfile.
136 After install you should reload MOC player.
137
138 %description sndfile -l pl
139 Ten pakiet zapewnia dekodowanie plików WAV/AIFF.
140 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
141
142 %package speex
143 Summary:        Speex decoder for MoC - Music on Console
144 Summary(pl):    Dekoder formatu Speex dla MOC
145 Group:          Applications/Sound
146 Requires:       %{name} = %{version}-%{release}
147 Provides:       %{name}-input = %{version}-%{release}
148
149 %description speex
150 This package contains the Speex decoder.
151 After install you should reload MOC player.
152
153 %description speex -l pl
154 Ten pakiet zapewnia dekodowanie formatu Speex.
155 Po zainstalowaniu nale¿y uruchomiæ ponownie MOC.
156
157 %prep
158 %setup -q
159 %{?with_home_etc:%patch0 -p1}
160
161 %build
162 CFLAGS="-I/usr/include/ncurses %{rpmcflags}"
163
164 %{__aclocal} -I m4
165 %{__autoconf}
166 %{__automake}
167 %configure \
168         --disable-debug 
169
170 %{__make}
171
172 %install
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT
175
176 %{__make} install \
177         DESTDIR=$RPM_BUILD_ROOT
178
179 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
180 rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %files
186 %defattr(644,root,root,755)
187 %doc AUTHORS NEWS README THANKS TODO *.example
188 %attr(755,root,root) %{_bindir}/*
189 %dir %{_libdir}/moc
190 %dir %{_libdir}/moc/decoder_plugins
191 %{_datadir}/%{name}
192 %{_mandir}/man1/mocp*
193
194 %files musepack
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
197
198 %files flac
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
201
202 %files ffmpeg
203 %defattr(664,root,root,755)
204 %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
205
206 %files mp3
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
209
210 %files ogg
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
213
214 %files sndfile
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
217
218 %files speex
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*
This page took 0.069151 seconds and 3 git commands to generate.