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