]>
Commit | Line | Data |
---|---|---|
8d75a549 | 1 | # |
948e9545 | 2 | # Conditional builds: |
8d75a549 | 3 | %bcond_without gstreamer # disable gstreamer |
d4535bda JB |
4 | %bcond_without xmms # disable xmms wrapping |
5 | # | |
3dce540f | 6 | Summary: A KDE audio player |
7 | Summary(pl): Odtwarzacz audio dla KDE | |
8 | Name: amarok | |
3fd16f2f | 9 | Version: 1.1.1 |
10 | Release: 0.1 | |
3dce540f | 11 | License: GPL |
12 | Group: X11/Applications/Multimedia | |
67b93ebf | 13 | Source0: http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2 |
3fd16f2f | 14 | # Source0-md5: 6c0cccd4c8b508a2e0c9b0f187a907cf |
567ab89c | 15 | URL: http://amarok.kde.org/ |
fc49b51e | 16 | Buildrequires: alsa-lib-devel |
3aa3d858 | 17 | Buildrequires: arts-qt-devel |
3022f84e | 18 | Buildrequires: automake |
8d75a549 | 19 | %{?with_gstreamer:BuildRequires: gstreamer-devel >= 0.8.1} |
ac33bc29 | 20 | BuildRequires: kdemultimedia-devel >= 9:3.1.93 |
3022f84e | 21 | BuildRequires: rpmbuild(macros) >= 1.129 |
43342c86 | 22 | BuildRequires: sed >= 4.0 |
3fd16f2f | 23 | BuildRequires: sqlite >= 3.0.0 |
24 | BuildRequires: taglib-devel >= 1.3 | |
dd353647 | 25 | BuildRequires: unsermake >= 040511 |
3aa3d858 | 26 | BuildRequires: xine-lib-devel |
8d75a549 | 27 | %{?with_xmms:Buildrequires: xmms-devel} |
3dce540f | 28 | Requires: kdebase-core >= 9:3.1.93 |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | A KDE audio player. | |
33 | ||
34 | %description -l pl | |
35 | Odtwarzacz audio dla KDE. | |
36 | ||
8d75a549 | 37 | %package gstreamer |
d4535bda | 38 | Summary: Plugin gstreamer |
8d75a549 | 39 | Summary(pl): Wtyczka gstreamer |
40 | Group: X11/Applications/Multimedia | |
4d1b1b41 | 41 | Requires: %{name} = %{version}-%{release} |
8d75a549 | 42 | |
43 | %description gstreamer | |
d4535bda | 44 | Plugin gstreamer. |
8d75a549 | 45 | |
46 | %description gstreamer -l pl | |
47 | Wtyczka gstreamer. | |
48 | ||
3dce540f | 49 | %prep |
67b93ebf | 50 | %setup -q -n %{name}-%{version} |
3dce540f | 51 | |
52 | %build | |
4d1b1b41 | 53 | cp -f %{_datadir}/automake/config.sub admin |
d3a55e61 | 54 | |
4d1b1b41 | 55 | export UNSERMAKE=%{_datadir}/unsermake/unsermake |
d3a55e61 | 56 | |
57 | %{__make} -f admin/Makefile.common cvs | |
58 | ||
3dce540f | 59 | %configure \ |
60 | --disable-rpath \ | |
d3a55e61 | 61 | --with-qt-libraries=%{_libdir} |
3dce540f | 62 | |
63 | %{__make} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT \ | |
bd5fd9cb | 70 | kde_htmldir=%{_kdedocdir} \ |
71 | kde_libs_htmldir=%{_kdedocdir} | |
43342c86 | 72 | |
4d1b1b41 | 73 | %find_lang amarok --all-name --with-kde |
3dce540f | 74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
08133359 | 78 | %files -f %{name}.lang |
3dce540f | 79 | %defattr(644,root,root,755) |
8d75a549 | 80 | %doc AUTHORS ChangeLog README TODO |
d4535bda | 81 | %attr(755,root,root) %{_bindir}/amarok |
3fd16f2f | 82 | %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper2} |
d3a55e61 | 83 | %attr(755,root,root) %{_bindir}/amarokapp |
3fd16f2f | 84 | %attr(755,root,root) %{_bindir}/release_amarok |
d3a55e61 | 85 | %{_libdir}/kde3/libamarok_artsengine_plugin.la |
86 | %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so | |
3dce540f | 87 | %{_libdir}/libamarokarts.la |
88 | %attr(755,root,root) %{_libdir}/libamarokarts.so | |
89 | %{_libdir}/mcop/Amarok | |
90 | %{_libdir}/mcop/amarokarts.mcopclass | |
91 | %{_libdir}/mcop/amarokarts.mcoptype | |
92 | %{_datadir}/apps/amarok | |
d3a55e61 | 93 | %{_datadir}/config.kcfg/amarok.kcfg |
3fd16f2f | 94 | %{_datadir}/config.kcfg/gstconfig.kcfg |
d3a55e61 | 95 | %{_datadir}/services/amarok_artsengine_plugin.desktop |
96 | %{_datadir}/servicetypes/amarok_plugin.desktop | |
3dce540f | 97 | %{_desktopdir}/kde/amarok.desktop |
98 | %{_iconsdir}/[!l]*/*/apps/amarok.png | |
3fd16f2f | 99 | %{_iconsdir}/crystalsvg/*/*/player_playlist_2.png |
3aa3d858 | 100 | %{_datadir}/config/* |
8d75a549 | 101 | |
102 | %if %{with gstreamer} | |
103 | %files gstreamer | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/kde3/libamarok_gstengine_plugin.la | |
106 | %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so | |
107 | %{_datadir}/services/amarok_gstengine_plugin.desktop | |
108 | %endif |