e11e910945c5ee7285020df65d419997f2991d60
[packages/deadbeef.git] / deadbeef.spec
1 Summary:        Ultimate Music Player
2 Name:           deadbeef
3 Version:        0.5.1
4 Release:        2
5 License:        GPL v2 and LGPL v2.1
6 Group:          X11/Applications/Multimedia
7 Source0:        http://downloads.sourceforge.net/deadbeef/%{name}-%{version}.tar.bz2
8 # Source0-md5:  be8359d1bd9cf7679cf2ca748996e726
9 Patch0:         lm-missing-symbols.patch
10 Patch1:         %{name}-ffmpeg-0.8.patch
11 URL:            http://deadbeef.sourceforge.net/
12 BuildRequires:  alsa-lib-devel
13 BuildRequires:  automake >= 1.11
14 BuildRequires:  curl-devel
15 BuildRequires:  dbus-devel
16 BuildRequires:  ffmpeg-devel >= 0.8
17 BuildRequires:  gettext-devel
18 BuildRequires:  gtk+2-devel >= 2.12
19 BuildRequires:  imlib2-devel
20 BuildRequires:  intltool >= 0.40.0
21 BuildRequires:  libcddb-devel
22 BuildRequires:  libcdio-devel
23 BuildRequires:  libmad-devel
24 BuildRequires:  libsamplerate-devel
25 BuildRequires:  libsndfile-devel
26 BuildRequires:  libvorbis-devel
27 BuildRequires:  pakchois-devel
28 BuildRequires:  pkgconfig
29 BuildRequires:  pulseaudio-devel
30 BuildRequires:  wavpack-devel
31 Requires(post,postun):  desktop-file-utils
32 Requires(post,postun):  gtk-update-icon-cache
33 Requires:       hicolor-icon-theme
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 DeaDBeeF (as in 0xDEADBEEF) is an audio player for GNU/Linux systems
38 with X11 (though now it also runs in plain console without X, in
39 FreeBSD, and in OpenSolaris).
40
41 %package plugin-aac
42 Summary:        AAC plugin
43 Group:          X11/Applications/Multimedia
44
45 %description plugin-aac
46 AAC player.
47
48 %package plugin-alsa
49 Summary:        ALSA plugin
50 Group:          X11/Applications/Multimedia
51
52 %description plugin-alsa
53 ALSA output plugin.
54
55 %package plugin-artwork
56 Summary:        Artwork plugin
57 Group:          X11/Applications/Multimedia
58
59 %description plugin-artwork
60 Album artwork.
61
62 %package plugin-cdda
63 Summary:        CD Audio plugin
64 Group:          X11/Applications/Multimedia
65
66 %description plugin-cdda
67 Audio CD player.
68
69 %package plugin-ffmpeg
70 Summary:        FFMPEG plugin
71 Group:          X11/Applications/Multimedia
72
73 %description plugin-ffmpeg
74 FFMPEG audio player.
75
76 %package plugin-flac
77 Summary:        FLAC plugin
78 Group:          X11/Applications/Multimedia
79
80 %description plugin-flac
81 FLAC decoder.
82
83 %package plugin-gtkui
84 Summary:        GTKui plugin
85 Group:          X11/Applications/Multimedia
86
87 %description plugin-gtkui
88 Standard GTK2 user interface.
89
90 %package plugin-hotkeys
91 Summary:        Hotkeys plugin
92 Group:          X11/Applications/Multimedia
93
94 %description plugin-hotkeys
95 Global hotkeys support.
96
97 %package plugin-lastfm
98 Summary:        last.fm plugin
99 Group:          X11/Applications/Multimedia
100
101 %description plugin-lastfm
102 last.fm scrobbler.
103
104 %package plugin-mad
105 Summary:        Mad plugin
106 Group:          X11/Applications/Multimedia
107
108 %description plugin-mad
109 MPEG decoder.
110
111 %package plugin-notify
112 Summary:        Notify plugin
113 Group:          X11/Applications/Multimedia
114
115 %description plugin-notify
116 OSD notify.
117
118 %package plugin-oss
119 Summary:        OSS plugin
120 Group:          X11/Applications/Multimedia
121
122 %description plugin-oss
123 OSS output plugin.
124
125 %package plugin-pulse
126 Summary:        PulseAudio plugin
127 Group:          X11/Applications/Multimedia
128
129 %description plugin-pulse
130 PulseAudio output plugin.
131
132 %package plugin-resampler
133 Summary:        Resampler plugin
134 Group:          X11/Applications/Multimedia
135
136 %description plugin-resampler
137 Resampler (Secret Rabit Code).
138
139 %package plugin-sndfile
140 Summary:        WAV/PCM plugin
141 Group:          X11/Applications/Multimedia
142
143 %description plugin-sndfile
144 WAV/PCM/aiff player.
145
146 %package plugin-vorbis
147 Summary:        OggVorbis plugin
148 Group:          X11/Applications/Multimedia
149
150 %description plugin-vorbis
151 OggVorbis decoder.
152
153 %package plugin-wavpack
154 Summary:        WavPack plugin
155 Group:          X11/Applications/Multimedia
156
157 %description plugin-wavpack
158 WavPack decoder.
159
160 %prep
161 %setup -q
162 %patch0 -p1
163 %patch1 -p1
164
165 %build
166 %{__automake}
167 %configure \
168         --enable-gtkui \
169         --docdir=%{_docdir}/%{name}-%{version}
170 %{__make}
171
172 %install
173 rm -rf $RPM_BUILD_ROOT
174
175 %{__make} install \
176         DESTDIR=$RPM_BUILD_ROOT
177
178 #remove *.la *.a libraries and *.h files
179 %{__rm} $RPM_BUILD_ROOT%{_libdir}/deadbeef/*.{a,la}
180 %{__rm} $RPM_BUILD_ROOT%{_includedir}/deadbeef/*.h
181
182 %find_lang %{name}
183
184 %clean
185 rm -rf $RPM_BUILD_ROOT
186
187 %post
188 %update_desktop_database_post
189 %update_icon_cache hicolor
190
191 %postun
192 %update_desktop_database_postun
193 %update_icon_cache hicolor
194
195 %files -f %{name}.lang
196 %defattr(644,root,root,755)
197 %doc AUTHORS ChangeLog NEWS README about.txt help.txt
198 %attr(755,root,root) %{_bindir}/deadbeef
199 %{_desktopdir}/deadbeef.desktop
200 %{_iconsdir}/hicolor/*/apps/deadbeef.png
201 %{_iconsdir}/hicolor/*/apps/deadbeef.svg
202 %{_datadir}/deadbeef
203 %dir %{_libdir}/deadbeef
204 %attr(755,root,root)%{_libdir}/deadbeef/adplug.so*
205 %attr(755,root,root)%{_libdir}/deadbeef/converter.so*
206 %attr(755,root,root)%{_libdir}/deadbeef/dca.so*
207 %attr(755,root,root)%{_libdir}/deadbeef/ffap.so*
208 %attr(755,root,root)%{_libdir}/deadbeef/gme.so*
209 %attr(755,root,root)%{_libdir}/deadbeef/m3u.so*
210 %attr(755,root,root)%{_libdir}/deadbeef/mms.so*
211 %attr(755,root,root)%{_libdir}/deadbeef/musepack.so*
212 %attr(755,root,root)%{_libdir}/deadbeef/nullout.so*
213 %attr(755,root,root)%{_libdir}/deadbeef/shellexec.so*
214 %attr(755,root,root)%{_libdir}/deadbeef/sid.so*
215 %attr(755,root,root)%{_libdir}/deadbeef/supereq.so*
216 %attr(755,root,root)%{_libdir}/deadbeef/tta.so*
217 %attr(755,root,root)%{_libdir}/deadbeef/vfs_curl.so*
218 %attr(755,root,root)%{_libdir}/deadbeef/vtx.so*
219 %attr(755,root,root)%{_libdir}/deadbeef/wildmidi.so*
220 %dir %{_libdir}/deadbeef/convpresets
221 %{_libdir}/deadbeef/convpresets/*
222
223 %files plugin-aac
224 %defattr(644,root,root,755)
225 %attr(755,root,root)%{_libdir}/deadbeef/aac.so*
226
227 %files plugin-alsa
228 %defattr(644,root,root,755)
229 %attr(755,root,root)%{_libdir}/deadbeef/alsa.so*
230
231 %files plugin-artwork
232 %defattr(644,root,root,755)
233 %attr(755,root,root)%{_libdir}/deadbeef/artwork.so*
234
235 %files plugin-cdda
236 %defattr(644,root,root,755)
237 %attr(755,root,root)%{_libdir}/deadbeef/cdda.so*
238
239 %files plugin-ffmpeg
240 %defattr(644,root,root,755)
241 %attr(755,root,root)%{_libdir}/deadbeef/ffmpeg.so*
242
243 %files plugin-flac
244 %defattr(644,root,root,755)
245 %attr(755,root,root)%{_libdir}/deadbeef/flac.so*
246
247 %files plugin-gtkui
248 %defattr(644,root,root,755)
249 %attr(755,root,root)%{_libdir}/deadbeef/ddb_gui_GTK2.so*
250 %attr(755,root,root)%{_libdir}/deadbeef/converter_gtkui.so*
251
252 %files plugin-hotkeys
253 %defattr(644,root,root,755)
254 %attr(755,root,root)%{_libdir}/deadbeef/hotkeys.so*
255
256 %files plugin-lastfm
257 %defattr(644,root,root,755)
258 %attr(755,root,root)%{_libdir}/deadbeef/lastfm.so*
259
260 %files plugin-mad
261 %defattr(644,root,root,755)
262 %attr(755,root,root)%{_libdir}/deadbeef/mpgmad.so*
263
264 %files plugin-notify
265 %defattr(644,root,root,755)
266 %attr(755,root,root)%{_libdir}/deadbeef/notify.so*
267
268 %files plugin-oss
269 %defattr(644,root,root,755)
270 %attr(755,root,root)%{_libdir}/deadbeef/oss.so*
271
272 %files plugin-pulse
273 %defattr(644,root,root,755)
274 %attr(755,root,root)%{_libdir}/deadbeef/pulse.so*
275
276 %files plugin-resampler
277 %defattr(644,root,root,755)
278 %attr(755,root,root)%{_libdir}/deadbeef/dsp_libsrc.so*
279
280 %files plugin-sndfile
281 %defattr(644,root,root,755)
282 %attr(755,root,root)%{_libdir}/deadbeef/sndfile.so*
283
284 %files plugin-vorbis
285 %defattr(644,root,root,755)
286 %attr(755,root,root)%{_libdir}/deadbeef/vorbis.so*
287
288 %files plugin-wavpack
289 %defattr(644,root,root,755)
290 %attr(755,root,root)%{_libdir}/deadbeef/wavpack.so*
This page took 0.078136 seconds and 2 git commands to generate.