]>
Commit | Line | Data |
---|---|---|
8d75a549 | 1 | # |
948e9545 | 2 | # Conditional builds: |
48801ec3 | 3 | %bcond_without arts # disable arts engine |
8d75a549 | 4 | %bcond_without gstreamer # disable gstreamer |
7dae3fc2 | 5 | %bcond_without xine # disable xine engine |
48801ec3 | 6 | %bcond_without xmms # disable xmms wrapping |
d4535bda | 7 | # |
aeff1a8d SP |
8 | |
9 | %define _beta beta1 | |
3dce540f | 10 | Summary: A KDE audio player |
11 | Summary(pl): Odtwarzacz audio dla KDE | |
12 | Name: amarok | |
aeff1a8d SP |
13 | Version: 1.2.%{_beta} |
14 | Release: 0.1 | |
3dce540f | 15 | License: GPL |
16 | Group: X11/Applications/Multimedia | |
aeff1a8d SP |
17 | Source0: http://dl.sourceforge.net/amarok/%{name}-1.2-%{_beta}.tar.bz2 |
18 | # Source0-md5: 4477bf2c90f3afe4ae343f07978e59a5 | |
567ab89c | 19 | URL: http://amarok.kde.org/ |
fc49b51e | 20 | Buildrequires: alsa-lib-devel |
3aa3d858 | 21 | Buildrequires: arts-qt-devel |
3022f84e | 22 | Buildrequires: automake |
8d75a549 | 23 | %{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.8.1} |
ac33bc29 | 24 | BuildRequires: kdemultimedia-devel >= 9:3.1.93 |
1aff4314 JB |
25 | Buildrequires: libmusicbrainz-devel |
26 | Buildrequires: libvisual-devel >= 0.1.6-1 | |
349c72b4 | 27 | BuildRequires: mysql-devel |
1aff4314 | 28 | Buildrequires: pcre-devel |
3022f84e | 29 | BuildRequires: rpmbuild(macros) >= 1.129 |
43342c86 | 30 | BuildRequires: sed >= 4.0 |
48801ec3 | 31 | BuildRequires: sqlite3-devel |
3fd16f2f | 32 | BuildRequires: taglib-devel >= 1.3 |
dd353647 | 33 | BuildRequires: unsermake >= 040511 |
7dae3fc2 | 34 | %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.0-0.rc5.0} |
8d75a549 | 35 | %{?with_xmms:Buildrequires: xmms-devel} |
7dae3fc2 | 36 | #BuildRequires: kdebindings-kjsembed-devel |
48801ec3 | 37 | Requires: %{name}-plugin = %{version}-%{release} |
3dce540f | 38 | Requires: kdebase-core >= 9:3.1.93 |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | A KDE audio player. | |
43 | ||
44 | %description -l pl | |
45 | Odtwarzacz audio dla KDE. | |
46 | ||
48801ec3 | 47 | %package arts |
48 | Summary: Plugin arts | |
49 | Summary(pl): Wtyczka arts | |
50 | Group: X11/Applications/Multimedia | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Provides: %{name}-plugin = %{version}-%{release} | |
53 | ||
54 | %description arts | |
55 | Plugin arts. | |
56 | ||
57 | %description arts -l pl | |
58 | Wtyczka arts. | |
59 | ||
8d75a549 | 60 | %package gstreamer |
d4535bda | 61 | Summary: Plugin gstreamer |
8d75a549 | 62 | Summary(pl): Wtyczka gstreamer |
63 | Group: X11/Applications/Multimedia | |
4d1b1b41 | 64 | Requires: %{name} = %{version}-%{release} |
48801ec3 | 65 | Provides: %{name}-plugin = %{version}-%{release} |
8d75a549 | 66 | |
67 | %description gstreamer | |
d4535bda | 68 | Plugin gstreamer. |
8d75a549 | 69 | |
70 | %description gstreamer -l pl | |
71 | Wtyczka gstreamer. | |
72 | ||
7dae3fc2 | 73 | %package xine |
74 | Summary: Plugin xine | |
75 | Summary(pl): Wtyczka xine | |
76 | Group: X11/Applications/Multimedia | |
1aff4314 | 77 | Requires: %{name} = %{version}-%{release} |
48801ec3 | 78 | Provides: %{name}-plugin = %{version}-%{release} |
7dae3fc2 | 79 | |
80 | %description xine | |
81 | Plugin xine. | |
82 | ||
83 | %description xine -l pl | |
84 | Wtyczka xine. | |
85 | ||
3dce540f | 86 | %prep |
aeff1a8d | 87 | %setup -q -n %{name}-1.2-%{_beta} |
3dce540f | 88 | |
69409e85 | 89 | %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \ |
90 | amarok/src/amarok.desktop \ | |
91 | ||
3dce540f | 92 | %build |
4d1b1b41 | 93 | cp -f %{_datadir}/automake/config.sub admin |
d3a55e61 | 94 | |
4d1b1b41 | 95 | export UNSERMAKE=%{_datadir}/unsermake/unsermake |
d3a55e61 | 96 | |
97 | %{__make} -f admin/Makefile.common cvs | |
98 | ||
3dce540f | 99 | %configure \ |
100 | --disable-rpath \ | |
48801ec3 | 101 | %{!?with_arts:--without-arts} \ |
7dae3fc2 | 102 | %{!?with_xine:--without-xine} \ |
103 | %{!?with_gstreamer:--without-gstreamer} \ | |
f15a6325 | 104 | --with-qt-libraries=%{_libdir} \ |
105 | --without-included-sqlite | |
3dce540f | 106 | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT \ | |
bd5fd9cb | 114 | kde_htmldir=%{_kdedocdir} \ |
115 | kde_libs_htmldir=%{_kdedocdir} | |
43342c86 | 116 | |
3248aa1e | 117 | # remove bogus dir |
118 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx | |
119 | ||
4d1b1b41 | 120 | %find_lang amarok --all-name --with-kde |
3dce540f | 121 | |
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
08133359 | 125 | %files -f %{name}.lang |
3dce540f | 126 | %defattr(644,root,root,755) |
8d75a549 | 127 | %doc AUTHORS ChangeLog README TODO |
d4535bda | 128 | %attr(755,root,root) %{_bindir}/amarok |
3fd16f2f | 129 | %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2} |
d3a55e61 | 130 | %attr(755,root,root) %{_bindir}/amarokapp |
b2961d3d | 131 | #%attr(755,root,root) %{_bindir}/amarok_libvisual |
3fd16f2f | 132 | %attr(755,root,root) %{_bindir}/release_amarok |
7dae3fc2 | 133 | %{_libdir}/kde3/libamarok_void-engine_plugin.la |
134 | %attr(755,root,root) %{_libdir}/kde3/libamarok_void-engine_plugin.so | |
3dce540f | 135 | %{_datadir}/apps/amarok |
7dae3fc2 | 136 | %{_datadir}/apps/konqueror/servicemenus/amarok_append.desktop |
d3a55e61 | 137 | %{_datadir}/config.kcfg/amarok.kcfg |
7dae3fc2 | 138 | %{_datadir}/services/amarok_void-engine_plugin.desktop |
d3a55e61 | 139 | %{_datadir}/servicetypes/amarok_plugin.desktop |
3dce540f | 140 | %{_desktopdir}/kde/amarok.desktop |
7dae3fc2 | 141 | %{_iconsdir}/*/*/apps/amarok.png |
3fd16f2f | 142 | %{_iconsdir}/crystalsvg/*/*/player_playlist_2.png |
3aa3d858 | 143 | %{_datadir}/config/* |
8d75a549 | 144 | |
48801ec3 | 145 | %if %{with arts} |
146 | %files arts | |
147 | %defattr(644,root,root,755) | |
148 | %{_libdir}/kde3/libamarok_artsengine_plugin.la | |
149 | %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so | |
150 | %{_libdir}/libamarokarts.la | |
151 | %attr(755,root,root) %{_libdir}/libamarokarts.so | |
152 | %{_libdir}/mcop/Amarok | |
153 | %{_libdir}/mcop/amarokarts.mcopclass | |
154 | %{_libdir}/mcop/amarokarts.mcoptype | |
155 | %{_datadir}/services/amarok_artsengine_plugin.desktop | |
156 | %endif | |
157 | ||
8d75a549 | 158 | %if %{with gstreamer} |
159 | %files gstreamer | |
160 | %defattr(644,root,root,755) | |
161 | %{_libdir}/kde3/libamarok_gstengine_plugin.la | |
162 | %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so | |
7dae3fc2 | 163 | %{_datadir}/config.kcfg/gstconfig.kcfg |
8d75a549 | 164 | %{_datadir}/services/amarok_gstengine_plugin.desktop |
165 | %endif | |
7dae3fc2 | 166 | |
167 | %if %{with xine} | |
168 | %files xine | |
169 | %defattr(644,root,root,755) | |
170 | %{_libdir}/kde3/libamarok_xine-engine.la | |
171 | %attr(755,root,root) %{_libdir}/kde3/libamarok_xine-engine.so | |
172 | %{_datadir}/services/amarok_xine-engine.desktop | |
173 | %{_datadir}/services/amarok_xineengine_plugin.desktop | |
174 | %endif |