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