Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
xmms
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
xmms.spec
@@ -50,14 +50,22 @@ Patch47: %{name}-%{version}-vorbis.patch Provides: alsa-xmms Obsoletes: alsa-xmms -BuildRequires: libjack-devel arts-devel esound-devel gtk-devel imlib-devel libjpeg-devel libmikmod libxml-devel orbit-devel update-desktop-files -%if %suse_version > 1000 +BuildRequires: libjack-devel arts-devel esound-devel imlib-devel libjpeg-devel +%if 0%{?suse_version} > 1000 BuildRequires: libdrm-devel %endif -%if %suse_version > 1020 +%if 0%{?suse_version} > 1020 BuildRequires: libmikmod-devel %endif +%if 0%{?suse_version} +BuildRequires: update-desktop-files libxml-devel libmikmod gtk-devel orbit-devel +%endif + +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +BuildRequires: libxml2-devel gtk+-devel ORBit2-devel +%endif + %description Xmms is a media player for the X Window System that supports Winamp skins and that has a sophisticated plugin system that allows for easy @@ -186,24 +194,36 @@ rm $RPM_BUILD_ROOT/usr/%_lib/xmms/Output/libesdout.{la,so} %endif %find_lang %name +%if 0%{?suse_version} %suse_update_desktop_file -i xmms AudioVideo Player +%endif install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/applications/ install -m 0644 %SOURCE5 $RPM_BUILD_ROOT/usr/share/applications/ %if %suse_version > 1020 install -m 0644 -D %SOURCE7 $RPM_BUILD_ROOT/usr/share/pixmaps/xmms.png %endif +%if 0%{?suse_version} #%suse_update_desktop_file -i xmms_audio_cd AudioVideo Player %suse_update_desktop_file -i xmms_audio_cd X-SuSE-CD Player +%endif mkdir -p $RPM_BUILD_ROOT/media/xmms_audio_cd %clean rm -rf $RPM_BUILD_ROOT %post +%if 0%{?suse_version} %run_ldconfig +%else +/sbin/ldconfig +%endif %postun +%if 0%{?suse_version} %run_ldconfig +%else +/sbin/ldconfig +%endif %files %defattr(-,root,root) @@ -242,7 +262,9 @@ /usr/%_lib/xmms/General/libsong_change.so %dir /usr/%_lib/xmms/Input /usr/%_lib/xmms/Input/libcdaudio.so +%if 0%{?suse_version} /usr/%_lib/xmms/Input/libmikmod.so +%endif /usr/%_lib/xmms/Input/libtonegen.so /usr/%_lib/xmms/Input/libwav.so /usr/%_lib/xmms/Input/libvorbis.so @@ -271,7 +293,9 @@ /usr/%_lib/xmms/General/libjoy.la /usr/%_lib/xmms/General/libsong_change.la /usr/%_lib/xmms/Input/libcdaudio.la +%if 0%{?suse_version} /usr/%_lib/xmms/Input/libmikmod.la +%endif /usr/%_lib/xmms/Input/libtonegen.la /usr/%_lib/xmms/Input/libwav.la /usr/%_lib/xmms/Input/libvorbis.la