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