%bcond_with lpthreadhack Name: xmms Version: 1.2.11 Release: 40%{?dist} Epoch: 1 Summary: The X MultiMedia System, a media player Group: Applications/Multimedia License: GPLv2 URL: http://www.xmms.org/ Source0: http://www.xmms.org/files/1.2.x/%{name}-%{version}.tar.bz2 Source1: xmms.sh Source2: xmms.xpm Source3: xmms.desktop Patch0: %{name}-1.2.11-dso.patch # http://cvs.xmms.org/cvsweb.cgi/xmms/General/joystick/joy.c.diff?r1=1.8&r2=1.9 Patch1: %{name}-1.2.6-audio.patch Patch2: %{name}-1.2.6-lazy.patch Patch3: %{name}-1.2.8-default-skin.patch Patch5: %{name}-1.2.11-arts.patch Patch6: %{name}-1.2.11-alsalib.patch Patch7: %{name}-cd-mountpoint.patch # Patch8 on top of patch4 Patch8: %{name}-1.2.11-multidevel.patch Patch9: %{name}-play.patch # From xmms-crossfade-0.3.14/patches/ adapted from 1.2.10 to 1.2.11 Patch12: %{name}-1.2.11-is_quitting.patch Patch14: %{name}-1.2.10-configfile-safe-write.patch Patch15: %{name}-1.2.10-reposition.patch Patch16: %{name}-1.2.11-ubuntu-CVE-2007-0653.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk+-devel BuildRequires: esound-devel BuildRequires: arts-devel BuildRequires: alsa-lib-devel BuildRequires: libogg-devel BuildRequires: libvorbis-devel BuildRequires: mikmod-devel BuildRequires: gettext-devel BuildRequires: zlib-devel BuildRequires: libGL-devel BuildRequires: libXt-devel BuildRequires: libSM-devel BuildRequires: libXxf86vm-devel BuildRequires: desktop-file-utils Requires: unzip gtk2 at-spi Requires(post): desktop-file-utils >= 0.9 Requires(postun): desktop-file-utils >= 0.9 # Skin packages can require this from xmms and all GUI compatible players Provides: xmms-gui %description XMMS is a multimedia (Ogg Vorbis, CDs) player for the X Window System with an interface similar to Winamp's. XMMS supports playlists and streaming content and has a configurable interface. %package libs Summary: XMMS engine and core plugins Group: System Environment/Libraries %description libs The X MultiMedia System player engine and core plugins. %package esd Summary: EsounD output plugin for XMMS Group: System Environment/Libraries Requires: %{name}-libs = %{epoch}:%{version}-%{release} %description esd EsounD output plugin for the X MultiMedia System. %package devel Summary: Files required for XMMS plug-in development Group: Development/Libraries Requires: %{name}-libs = %{epoch}:%{version}-%{release} Requires: gtk+-devel Requires: pkgconfig %description devel Files needed for building plug-ins for the X MultiMedia System. %prep %setup -q %patch0 -p1 -b .dso # Set default output plugin to ALSA %patch1 -p1 -b .audio # Use RTLD_LAZY, not RTLD_NOW %patch2 -p1 -b .lazy # Change the default skin %patch3 -p1 -b .default-skin # Link arts dynamically and detect its presence for choosing output plugin %patch5 -p1 -b .arts # Don't link *everything* against alsa-lib %patch6 -p1 -b .alsalib # Use something that's more likely to work as the default cdrom mountpoint %patch7 -p0 -b .cd-mountpoint # Avoid multilib devel conflicts %patch8 -p1 -b .multidevel # Fix for crossfade >= 0.3.14 to work properly %patch12 -p1 -b .crossfade # Randomize playlists better %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch9 -p1 -b .playonclick # Avoid standard rpaths on lib64 archs, --disable-rpath doesn't do it perl -pi -e 's|/usr/lib|%{_libdir}|g' configure */configure for f in AUTHORS ChangeLog README ; do iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f ; mv $f.utf8 $f done %build %configure xmms.pc \ --disable-dependency-tracking \ --enable-kanji \ --enable-texthack \ --enable-ipv6 \ --with-pic \ --disable-static %if %{with lpthreadhack} %ifarch x86_64 find . -name Makefile | xargs perl -pi -e s/-lpthread//g # old libtool, x86_64 %endif %endif make # smp_flags removed due to build issues %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} install -dm 755 %{buildroot}%{_datadir}/xmms/Skins find %{buildroot} -name "*.la" | xargs rm -f # On FC5 x86_64, some get created even though we pass --disable-static rm -f %{buildroot}%{_libdir}/xmms/*/*.a # https://bugzilla.redhat.com/213172 for bin in xmms wmxmms ; do install -Dpm 755 %{buildroot}%{_bindir}/$bin \ %{buildroot}%{_libexecdir}/$bin sed -e "s|/usr/libexec/xmms|%{_libexecdir}/$bin|" %{SOURCE1} > \ %{buildroot}%{_bindir}/$bin chmod 755 %{buildroot}%{_bindir}/$bin done # Desktop menu entry desktop-file-install --vendor "" --dir=%{buildroot}%{_datadir}/applications %{SOURCE3} # Desktop menu icon install -Dpm 644 %{SOURCE2} \ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/xmms.xpm install -Dpm 644 xmms.pc %{buildroot}%{_libdir}/pkgconfig/xmms.pc %find_lang %{name} %clean rm -rf %{buildroot} %post gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database -q || : %post libs -p /sbin/ldconfig %postun gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database -q || : %postun libs -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING FAQ NEWS TODO README %{_bindir}/xmms %{_bindir}/wmxmms %{_libexecdir}/xmms %{_libexecdir}/wmxmms %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*x*/apps/xmms.xpm %{_datadir}/xmms/ %{_mandir}/man1/*xmms.1* %files libs %defattr(-,root,root,-) %doc COPYING %{_libdir}/libxmms.so.* %dir %{_libdir}/xmms/ %{_libdir}/xmms/Effect/ %{_libdir}/xmms/General/ %{_libdir}/xmms/Input/ %dir %{_libdir}/xmms/Output/ %{_libdir}/xmms/Output/libALSA.so %{_libdir}/xmms/Output/libOSS.so %{_libdir}/xmms/Output/libdisk_writer.so %{_libdir}/xmms/Visualization/ %files esd %defattr(-,root,root,-) %{_libdir}/xmms/Output/libesdout.so %files devel %defattr(-,root,root,-) %{_bindir}/xmms-config %{_includedir}/xmms/ %{_libdir}/libxmms.so %{_datadir}/aclocal/xmms.m4 %{_libdir}/pkgconfig/xmms.pc %changelog * Tue Jun 01 2010 Paulo Roma - 1:1.2.11-40 - Added --vendor option to desktop-file-utils call for rhel5. * Wed May 26 2010 Paulo Roma - 1:1.2.11-39 - Applied dso patch. - Include xmms.desktop, taken from redhat-audio-player.desktop. - Removed Place Holder plugin from RedHat. * Thu Dec 03 2009 Paulo Roma - 1:1.2.11-38 - Using the full source. - Providing xmms-gui. - Applied missing patches fom Fedora. * Tue Dec 02 2008 Paulo Roma - 1:1.2.11-37 - Recreated patches 5 (arts) and 6 (alsa) for xmms-1.2.11 * Sat Jan 12 2008 Axel Thimm - 1:1.2.11-36.99_8 - Update to 1.2.11. * Fri Apr 13 2007 Paul F. Johnson 1:1.2.10-36 - add back in the .pc file * Sun Apr 01 2007 Paul F. Johnson 1:1.2.10-35 - added CVE fix for buffer problem * Sat Mar 10 2007 Paul F. Johnson 1:1.2.10-34 - built from cvs tarball (amended to remove mp3) * Fri Jan 19 2007 Paul F. Johnson 1:1.2.10-32 - removed R xmms in libs * Thu Jan 18 2007 Paul F. Johnson 1:1.2.10-31 - fixes for repositioning on mode change and .xmms file * Mon Jan 1 2007 Paul F. Johnson 1:1.2.10-30 - new package owner - added R to libs package - rebuild * Mon Nov 6 2006 Ville Skyttä - 1:1.2.10-29 - Work around incompatibilities with the Composite X extension (#213172). - Apply upstream playlist randomization improvements (#188603). * Mon Aug 28 2006 Ville Skyttä - 1:1.2.10-28 - Rebuild. * Wed Jun 21 2006 Ville Skyttä - 1:1.2.10-27 - Split EsounD output plugin into -esd subpackage, don't filter dependencies. - Make menu entry symlink relative. - Re-enable parallel make. * Wed Jun 7 2006 Jeremy Katz - 1:1.2.10-26 - don't use parallel make to try to stop the build hang * Thu May 25 2006 Ville Skyttä - 1:1.2.10-25 - Avoid multilib conflicts in -devel, introducing xmms.pc. - Include license text in -libs. * Tue May 23 2006 Ville Skyttä - 1:1.2.10-24 - Apply upstream fix for joystick plugin crashes. * Thu Apr 6 2006 Ville Skyttä - 1:1.2.10-23 - Split library and plugins to xmms-libs (#184606). - ALSA is ubiquitous, don't filter dependencies to it. - Avoid standard rpaths on lib64 archs. - Tighten versioned -devel dependency to -libs. - Drop no longer needed Obsoletes. - Install icon to %%{_datadir}/icons. - Convert docs to UTF-8. - Specfile rewrite/cleanup. - Drop bogus Source0 URL. - Don't use %%exclude. * Thu Mar 2 2006 Matthias Saou 1:1.2.10-22 - Remove /usr/lib64/xmms/General/libsong_change.a (fix for FC5 x86_64...). * Mon Feb 13 2006 Matthias Saou 1:1.2.10-21 - Remove gtk libs from xmms-config output, as they are only really needed for static linking, which we no longer support (#182267). - Disable static in %%configure instead of excluding the built file. - Add conditional modular X build requirements. * Mon Feb 13 2006 Matthias Saou 1:1.2.10-20 - Spec file cleanup. - Include crossfade 0.3.9 patch. - Remove very old x11amp obsoletes. - Exclude static libraries, update devel summary and description for it. - List all plugins directories in order to be aware of breakage if the libtool problem ever happens again. - Fix post/postun scriplets. - Remove xmms_logo.xpm and xmms_mini.xpm, they should be unused. - Add libXt-devel to fullfill the "checking for X..." configure check. - Add gettext-devel to make more configure checks happy. * Wed Dec 28 2005 Hans de Goede 1:1.2.10-19 - Remove -lpthread from all LDFLAGS as this confuses the old libtool used by xmms on x86_64 (FE-bug #175493) - Add missing modular Xorg BuildReqs, this (re)enables session managment support and the openGL plugins. * Tue Dec 20 2005 Matthias Saou 1:1.2.10-18.1 - Update gcc4 patch to include fix for xmms.org bug #1730, fixes FC5 build. * Sat May 28 2005 Matthias Saou 1:1.2.10-18 - Build with explicit --with-pic to fix compilation of flac plugin on x86_64. * Thu May 5 2005 Matthias Saou 1:1.2.10-17 - Don't have scriplets fail if update-desktop-database returns an error. * Sat Apr 30 2005 Ville Skyttä - 1:1.2.10-16 - Use /media/cdrecorder as the default CDROM mountpoint for the CD audio plugin, it's more likely to work nowadays than /mnt/cdrom. - Drop no longer needed skins tarball. - Build with dependency tracking disabled. * Fri Apr 15 2005 Matthias Saou 1:1.2.10-15 - Change main icon from xpm to png (smaller, more consistent). - Split off the aRts plugin. - Split off the skins at last, as noarch (#65614). - Remove generic INSTALL instructions. - Remove autoconf and automake build reqs, as they're no longer called. - Remove unneeded glib2-devel build req. * Wed Apr 6 2005 Seth Vidal 1:1.2.10-14 - put back conflict * Wed Apr 6 2005 Seth Vidal 1:1.2.10-13 - clean up spec file a bit. - remove everything except for the last 2 yrs of changelog entries. - make things match Fedora Extras Packaging Guidelines more * Wed Apr 6 2005 Seth Vidal 1:1.2.10-12 - Apply patch from David Hill RH bz: 152138 * Thu Mar 24 2005 David Hill 1:1.2.10-12 - Add gcc4 patch * Wed Jan 05 2005 Colin Walters 1:1.2.10-11 - Change BR on mikmod to mikmod-devel (138057) * Tue Nov 23 2004 Colin Walters 1:1.2.10-10 - Add xmms-alsa-backport.patch (bug 140565, John Haxby) * Wed Oct 13 2004 Colin Walters 1:1.2.10-9 - Correct update-desktop-database correction for postun * Wed Oct 13 2004 Colin Walters 1:1.2.10-8 - Call update-desktop-database on correct directory * Mon Oct 04 2004 Colin Walters 1:1.2.10-7 - PreReq desktop-file-utils 0.9 - Run update-desktop-database * Sun Aug 15 2004 Tim Waugh 1:1.2.10-6 - Fixed another underquoted m4 definition. * Thu Jul 15 2004 Tim Waugh 1:1.2.10-5 - Fixed warnings in shipped m4 file. * Tue Jun 15 2004 Elliot Lee - rebuilt * Mon May 31 2004 Warren Togami 1:1.2.10-3.p - #124701 -devel req gtk+-devel * Thu Mar 11 2004 Bill Nottingham 1:1.2.10-2.p - update to 1.2.10 - fix buildreqs (#114857) - switch default output plugin to ALSA * Tue Mar 02 2004 Elliot Lee - rebuilt * Mon Feb 23 2004 Than Ngo 1:1.2.9-5.p - enable arts plugin, it should work with arts-1.2.0-1.5 or newer. * Sat Feb 14 2004 Than Ngo 1:1.2.9-4.p - disable xmms-1.2.8-arts.patch * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Jan 28 2004 Bill Nottingham 1:1.2.9-2.p - enable ipv6 (#105774) * Wed Jan 28 2004 Bill Nottingham 1:1.2.9-1.p - update to 1.2.9 * Fri Dec 12 2003 Bill Nottingham 1:1.2.8-4.p - rebuild, pick up alsa plugin * Wed Oct 22 2003 Bill Nottingham 1:1.2.8-3.p - fix dependency blacklisting (corollary of #100917) * Mon Oct 13 2003 Than Ngo 1:1.2.8-2.p - workaround to fix arts crash * Mon Sep 8 2003 Bill Nottingham 1:1.2.8-1.p - update to 1.2.8 - clean out now-upstream stuff (Welsh po file, other patches) - switch to Håvard's arts plugin, tweak it's default buffer size - don't explicitly require trademarked skin name (#84554) * Mon Jun 30 2003 Bill Nottingham 1:1.2.7-23.p - add welsh po file (#98244) * Sun Jun 8 2003 Tim Powers 1:1.2.7-22.1.p - built for RHEL * Wed Jun 04 2003 Elliot Lee - rebuilt * Tue Jun 3 2003 Jeff Johnson - add explicit epoch's where needed.