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