]> git.pld-linux.org Git - packages/moc.git/blob - moc.spec
- Source0-md5 sum updated
[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:  8808082848e90eeec5415baaec7e98ad
14 Patch0:         %{name}-home_etc.patch
15 URL:            http://moc.daper.net/
16 BuildRequires:  a52dec-libs-devel
17 BuildRequires:  alsa-lib-devel
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  curl-devel
21 BuildRequires:  ffmpeg-devel
22 BuildRequires:  flac-devel >= 1.1.3
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:  speex-devel
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 all
45 functions one may expect from simple audio player. Now it supports net
46 streams (shoutcast, icecast, regular HTTP, FTP) also.
47
48 %description -l pl.UTF-8
49 MOC to konsolowy odtwarzacz audio z prostym interfejsem budzącym
50 skojarzenia z playmp3list. Obsługuje formaty MP3, Ogg, FLAC, Musepack,
51 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.UTF-8):      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. After install you should reload
65 MOC player.
66
67 %description mp3 -l pl.UTF-8
68 Ten pakiet zawiera dekodowanie formatu MP3. Po zainstalowaniu należy
69 uruchomić ponownie MOC.
70
71 %package musepack
72 Summary:        Musepack (MPC) decoder for MoC - Music on Console
73 Summary(pl.UTF-8):      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. After install you
80 should reload MOC player.
81
82 %description musepack -l pl.UTF-8
83 Ten pakiet zawiera dekodowanie formatu Musepack (MPC). Po
84 zainstalowaniu należy uruchomić ponownie MOC.
85
86 %package ogg
87 Summary:        Ogg decoder for MoC - Music on Console
88 Summary(pl.UTF-8):      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. After install you should reload
95 MOC player.
96
97 %description ogg -l pl.UTF-8
98 Ten pakiet zawiera dekodowanie formatu Ogg. Po zainstalowaniu należy
99 uruchomić ponownie MOC.
100
101 %package flac
102 Summary:        FLAC decoder for MoC - Music on Console
103 Summary(pl.UTF-8):      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. After install you should
110 reload MOC player.
111
112 %description flac -l pl.UTF-8
113 Ten pakiet zawiera dekodowanie formatu FLAC. Po zainstalowaniu należy
114 uruchomić ponownie MOC.
115
116 %package ffmpeg
117 Summary:        ffmpeg decoder for MoC - Music on Console
118 Summary(pl.UTF-8):      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) files. After
125 install you should reload MOC player.
126
127 %description ffmpeg -l pl.UTF-8
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.UTF-8):      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. After install you
140 should reload MOC player.
141
142 %description sndfile -l pl.UTF-8
143 Ten pakiet zapewnia dekodowanie plików WAV/AIFF. Po zainstalowaniu
144 należy uruchomić ponownie MOC.
145
146 %package speex
147 Summary:        Speex decoder for MoC - Music on Console
148 Summary(pl.UTF-8):      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. After install you should
155 reload MOC player.
156
157 %description speex -l pl.UTF-8
158 Ten pakiet zapewnia dekodowanie formatu Speex. Po zainstalowaniu
159 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 %{__libtoolize}
169 %{__aclocal} -I m4
170 %{__autoconf}
171 %{__automake}
172 %configure \
173         --disable-debug
174
175 %{__make}
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT
180
181 %{__make} install \
182         DESTDIR=$RPM_BUILD_ROOT
183
184 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
185 rm -f $RPM_BUILD_ROOT%{_decoder_plugins}/lib*.la
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %files
191 %defattr(644,root,root,755)
192 %doc AUTHORS NEWS README THANKS TODO *.example
193 %attr(755,root,root) %{_bindir}/*
194 %dir %{_libdir}/moc
195 %dir %{_libdir}/moc/decoder_plugins
196 %{_datadir}/%{name}
197 %{_mandir}/man1/mocp*
198
199 %files musepack
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_decoder_plugins}/libmusepack_decoder.so*
202
203 %files flac
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_decoder_plugins}/libflac_decoder.so*
206
207 %files ffmpeg
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_decoder_plugins}/libffmpeg_decoder.so
210
211 %files mp3
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_decoder_plugins}/libmp3_decoder.so*
214
215 %files ogg
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_decoder_plugins}/libvorbis_decoder.so*
218
219 %files sndfile
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_decoder_plugins}/libsndfile_formats_decoder.so*
222
223 %files speex
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_decoder_plugins}/libspeex_decoder.so*
This page took 0.508193 seconds and 4 git commands to generate.