]>
Commit | Line | Data |
---|---|---|
e57b0fee ZU |
1 | Summary: Ultimate Music Player |
2 | Name: deadbeef | |
561ad530 | 3 | Version: 0.5.1 |
536d510d | 4 | Release: 0.1 |
e57b0fee ZU |
5 | License: GPL v2 and LGPL v2.1 |
6 | Group: X11/Applications/Multimedia | |
561ad530 ŁK |
7 | Source0: http://downloads.sourceforge.net/deadbeef/%{name}-%{version}.tar.bz2 |
8 | # Source0-md5: be8359d1bd9cf7679cf2ca748996e726 | |
e93e706d | 9 | Patch0: lm-missing-symbols.patch |
e57b0fee ZU |
10 | URL: http://deadbeef.sourceforge.net/ |
11 | BuildRequires: alsa-lib-devel | |
12 | BuildRequires: curl-devel | |
13 | BuildRequires: dbus-devel | |
14 | BuildRequires: ffmpeg-devel | |
561ad530 | 15 | BuildRequires: gtk+2-devel >= 2.12 |
e57b0fee ZU |
16 | BuildRequires: libcddb-devel |
17 | BuildRequires: libcdio-devel | |
18 | BuildRequires: libmad-devel | |
19 | BuildRequires: libsamplerate-devel | |
20 | BuildRequires: libsndfile-devel | |
21 | BuildRequires: pulseaudio-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define dblibdir %{_libdir}/%{name} | |
25 | ||
26 | %description | |
27 | DeaDBeeF (as in 0xDEADBEEF) is an audio player for GNU/Linux systems | |
28 | with X11 (though now it also runs in plain console without X, in | |
29 | FreeBSD, and in OpenSolaris). | |
30 | ||
31 | %package plugin-alsa | |
32 | Summary: Alsa plugin | |
33 | Group: X11/Applications/Multimedia | |
34 | ||
35 | %description plugin-alsa | |
36 | Alsa plugin. | |
37 | ||
38 | %package plugin-gtkui | |
39 | Summary: GTKui plugin | |
40 | Group: X11/Applications/Multimedia | |
41 | ||
42 | %description plugin-gtkui | |
43 | GTKui plugin. | |
44 | ||
45 | %package plugin-mad | |
46 | Summary: Mad plugin | |
47 | Group: X11/Applications/Multimedia | |
48 | ||
49 | %description plugin-mad | |
50 | Mad plugin. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
e93e706d | 54 | %patch0 -p1 |
e57b0fee ZU |
55 | |
56 | %build | |
e93e706d | 57 | %{__automake} |
536d510d KG |
58 | %configure \ |
59 | --enable-gtkui \ | |
60 | --docdir=%{_docdir}/%{name}-%{version} | |
e57b0fee ZU |
61 | %{__make} |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
536d510d KG |
69 | #rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
70 | ||
71 | #remove *.la *.a libraries and deadbeef.h | |
72 | rm -f $RPM_BUILD_ROOT%{_libdir}/deadbeef/*.a | |
73 | rm -f $RPM_BUILD_ROOT%{_libdir}/deadbeef/*.la | |
74 | rm -f $RPM_BUILD_ROOT%{_includedir}/deadbeef/deadbeef.h | |
75 | ||
76 | %find_lang %{name} | |
e57b0fee ZU |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
536d510d | 81 | %files -f %{name}.lang |
e57b0fee ZU |
82 | %defattr(644,root,root,755) |
83 | %doc AUTHORS ChangeLog NEWS README about.txt help.txt | |
84 | %dir %{dblibdir} | |
85 | %attr(755,root,root) %{_bindir}/%{name} | |
86 | %{_desktopdir}/%{name}.desktop | |
87 | %{_iconsdir}/hicolor/*/apps/deadbeef.png | |
536d510d | 88 | %{_iconsdir}/hicolor/*/apps/deadbeef.svg |
e57b0fee | 89 | %{_datadir}/deadbeef |
536d510d KG |
90 | %dir %{_libdir}/deadbeef |
91 | %attr(755,root,root)%{_libdir}/deadbeef/*.so | |
92 | %attr(755,root,root)%{_libdir}/deadbeef/*.so.0 | |
93 | %attr(755,root,root)%{_libdir}/deadbeef/*.so.0.0.0 | |
e57b0fee ZU |
94 | |
95 | %files plugin-alsa | |
96 | %defattr(644,root,root,755) | |
97 | %{dblibdir}/alsa.*so* | |
98 | ||
99 | %files plugin-gtkui | |
100 | %defattr(644,root,root,755) | |
101 | %{dblibdir}/gtkui.*so* | |
102 | ||
103 | %files plugin-mad | |
104 | %defattr(644,root,root,755) | |
105 | %{dblibdir}/mpgmad.*so* |