%define oname rhythmbox %define name %{oname}0.7 %define rel 1 %define version 0.7.0 %define build_plf 0 %{?_with_plf: %{expand: %%global build_plf 1}} %define enable_dashboard 0 %{?_with_dashboard: %global enable_dashboard 1} %if %build_plf %define release %{rel}plf %else %define release %{rel}mdk %endif %define gstreamer 0.7.4 %define gstname gstreamer0.7 %define __libtoolize true %define build_xine 0 %define xinever 1-0.rc0 %{?_with_xine: %{expand: %%global build_xine 1}} %{?_without_xine: %{expand: %%global build_xine 0}} Name: %name Summary: Music Management Application Version: %version Release: %release License: GPL Group: Sound Source: %{oname}-%{version}.tar.bz2 Source1: %oname-32.png Source2: %oname-16.png URL: http://www.rhythmbox.org BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libgnomeui2-devel BuildRequires: libglade2.0-devel BuildRequires: libid3tag-devel BuildRequires: libvorbis-devel #BuildRequires: libmusicbrainz-devel BuildRequires: libflac-devel BuildRequires: scrollkeeper %if %build_xine BuildRequires: libxine-devel >= %xinever Requires: xine-plugins >= %xinever %else BuildRequires: gstreamer-plugins-devel >= %gstreamer Conflicts: %oname Requires: %gstname-audiosink >= %gstreamer Requires: %gstname-gnomevfs >= %gstreamer Requires: %gstname-audio-effects >= %gstreamer Requires: %gstname-mad >= %gstreamer Requires: %gstname-flac >= %gstreamer Requires: %gstname-vorbis >= %gstreamer %endif %if %build_plf BuildRequires: libfaad2-devel Requires: %gstname-faad >= %gstreamer Requires: %gstname-quicktime >= %gstreamer %endif Provides: net-rhythmbox Obsoletes: net-rhythmbox Prereq: scrollkeeper Prereq: GConf2 >= 2.3.3 Prereq: yelp %description Music Management application with support for ripping audio-cd's, playback of Ogg Vorbis and Mp3 and burning of CD-Rs. %if %build_xine This package uses the Xine engine instead of the default GStreamer backend. %endif %prep %setup -q -n %oname-%version #cd help/C # remove xml headers #perl -pi -e 's/^\<\?xml.*//' authors.xml legal.xml quick-reference.xml user-guide.xml %build # gw the mp4 headers need config.h touch config.h export CC="gcc -I." %configure2_5x \ %if %build_xine --enable-xine \ %endif %if %enable_dashboard --enable-dashboard \ %endif %make WARN_CFLAGS="" %install rm -rf %{buildroot} GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std %find_lang %oname --with-gnome mkdir -p $RPM_BUILD_ROOT%{_menudir} cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): command="%{_bindir}/rhythmbox" icon="%name.png" longtitle="Music Management Application" title="Rhythmbox" needs="x11" section="Multimedia/Sound" startup_notify="true" EOF mkdir -p %buildroot/{%_liconsdir,%_iconsdir,%_miconsdir} install -m 644 data/%oname.png %buildroot/%_liconsdir/%name.png install -m 644 %SOURCE1 %buildroot/%_iconsdir/%name.png install -m 644 %SOURCE2 %buildroot/%_miconsdir/%name.png rm -f %buildroot%_libdir/bonobo/librb-nautilus-context-menu.a # create cache files touch $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{oname}/C/%oname.html %clean rm -rf %{buildroot} %post %update_menus GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/rhythmbox.schemas > /dev/null if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q; fi touch %{_datadir}/gnome/help/%{oname}/C/%{oname}.html if [ -x %{_bindir}/yelp-pregenerate ]; then %{_bindir}/yelp-pregenerate %{_datadir}/gnome/help/%{oname}/*/%oname.xml > /dev/null; fi %preun if [ $1 -eq 0 ]; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/rhythmbox.schemas > /dev/null fi %postun %{clean_menus} if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q; fi %files -f %oname.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog README NEWS %config(noreplace) %{_sysconfdir}/gconf/schemas/rhythmbox.schemas %{_bindir}/rhythmbox %{_datadir}/application-registry/rhythmbox.applications %{_datadir}/applications/rhythmbox.desktop %{_datadir}/gnome-2.0/ui/* %{_datadir}/pixmaps/rhythmbox.png %{_datadir}/rhythmbox/ %{_datadir}/mime-info/rhythmbox.keys %_datadir/omf/rhythmbox/ %ghost %{_datadir}/gnome/help/%{oname}/C/%{oname}.html %_datadir/idl/Rhythmbox.idl %_libdir/bonobo/servers/* %_libdir/bonobo/librb-nautilus-context-menu.so %_libdir/bonobo/librb-nautilus-context-menu.la %_libdir/pkgconfig/rhythmbox.pc %_menudir/%name %_liconsdir/%name.png %_iconsdir/%name.png %_miconsdir/%name.png %changelog * Tue Feb 10 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.0-1mdk - always require gstreamer0.7 - put developer's version in an extra package - new version * Fri Feb 6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.5-2mdk - rebuild * Thu Jan 22 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.5-1mdk - drop merged patch - new version * Mon Jan 19 2004 Abel Cheung <deaddog@deaddog.org> 0.6.4-2mdk - Add missing prereq and schemas uninstall rule - Musicbrainz support already removed - Patch0: Enhanced dashboard integration patch from mailing list - Allows optionally output dashboard clue packet (--with dashboard) * Fri Jan 9 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.4-1mdk - add mp4 support with the --with plf option - new version * Tue Dec 30 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-2mdk - support gstreamer 0.7 builds * Mon Dec 22 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-1mdk - new version * Thu Dec 18 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.2-1mdk - replace patch by perl command - new version * Mon Nov 24 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.1-1mdk - patch: fix docs - new version * Wed Nov 12 2003 Götz Waschk <waschk@linux-mandrake.com> 0.6.0-1mdk - new version * Thu Oct 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.88-1mdk - remove rpmlint warning - new version * Sun Sep 7 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.3-1mdk - add mime stuff - drop the patch (not needed anymore) - new version * Sun Aug 31 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.2-2mdk - add a --with xine switch to the spec file - update description - switch back to the gstreamer backend, it became much better * Fri Aug 29 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.2-1mdk - add the docs - patch xine backend to build with rc0a - new version * Wed Aug 20 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.1-2mdk - fix buildrequires - use xine instead of gstreamer * Tue Aug 19 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.1-1mdk - reenable mmkeys - new version * Mon Aug 18 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-2mdk - disable mmkeys ( http://bugzilla.gnome.org/show_bug.cgi?id=120096 ) * Sun Aug 17 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-1mdk - add missing files - fix deps - drop ORBit workaround - drop patch - obsolete net-rhythmbox - new version * Tue Jul 15 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-11mdk - patch syntax error - fix build with new ORBit * Fri Jun 6 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-10mdk - fix build with new gcc 3.3 * Fri May 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-9mdk - fix directory ownership - remove obsolete buildrequires * Thu Apr 10 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 0.4.1-8mdk - Recompiled against latest musicbrainz * Wed Mar 12 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-7mdk - fix buildrequires * Mon Feb 3 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-6mdk - rebuild for new gstreamer * Thu Jan 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-5mdk - rebuild against latest gstreamer * Thu Jan 16 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-4mdk - rebuild against latest ssl * Wed Jan 8 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-3mdk - requires gstreamer-audiosink instead of forcing gstreamer-oss - rebuild against latest gstreamer * Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-2mdk - rebuild * Thu Dec 12 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 0.4.1-1mdk - Release 0.4.1 - Remove patch0 (merged upstream) * Wed Dec 11 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.0-2mdk - rebuild for new gstreamer * Fri Nov 22 2002 Götz Waschk <waschk@linux-mandrake.com> 0.4.0-1mdk - adjust file list - remove obsolete buildrequires - buildrequires liblirc-devel - requires latest monkey-media - new version * Tue Nov 5 2002 Götz Waschk <waschk@linux-mandrake.com> 0.3.0-2mdk - rebuild with the new gstreamer * Thu Aug 8 2002 Götz Waschk <waschk@linux-mandrake.com> 0.3.0-1mdk - 0.3.0 - buildrequires libmonkey-media-devel - patch away Werror to make it compile * Thu Jul 03 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.2.1-3mdk - buildrequires libmad0-devel * Wed Jul 3 2002 Götz Waschk <waschk@linux-mandrake.com> 0.2.1-2mdk - fix schema installation - fix requires * Tue Jul 2 2002 Götz Waschk <waschk@linux-mandrake.com> 0.2.1-1mdk - mdk adaption * Mon Mar 18 2002 Jorn Baayen <jorn@nl.linux.org> - removed bonobo dependency * Sat Mar 02 2002 Christian Schaller <Uraeus@linuxrising.org> - created new spec file