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