rhythmbox.spec revision 11055
2224N/A#
2887N/A# spec file for package rhythmbox
2224N/A#
2224N/A# Copyright (c) 2005 Sun Microsystems, Inc.
2224N/A# This file and all modifications and additions to the pristine
2224N/A# package are under the same license as the package itself.
2224N/A#
2224N/A# Owner: yippi
2224N/A#
2224N/AName: rhythmbox
2224N/ALicense: GPL
2224N/AGroup: System/GUI/GNOME
2224N/AVersion: 0.11.1
2224N/ARelease: 1
2224N/ADistribution: Java Desktop System
2224N/AVendor: Sun Microsystems, Inc.
2224N/ASummary: Rhythmbox Multimedia Player
2224N/ASource: http://ftp.gnome.org/pub/GNOME/sources/rhythmbox/0.11/%{name}-%{version}.tar.bz2
2224N/A#owner:yippi date:2006-06-22 type:branding
2224N/APatch1: rhythmbox-01-nocheck.diff
2224N/A#owner:sh162551 date:2007-03-14 bugster:6532865 type:branding bugzilla:466752
2224N/APatch2: rhythmbox-02-null-title.diff
2224N/AURL: http://www.gnome.org
2224N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
2224N/ADocdir: %{_defaultdocdir}/%{name}
3232N/AAutoreqprov: on
6184N/A
2224N/A%define libgnomeui_version 2.6.0
2224N/A%define gstreamer_version 0.8.1
2224N/A%define gstreamer_plugins_version 0.8.1
2224N/A%define gnome_desktop_version 2.6.1
2224N/A
2224N/ARequires: libgnomeui >= %{libgnomeui_version}
2224N/ARequires: gstreamer >= %{gstreamer_version}
2224N/ARequires: gstreamer-plugins >= %{gstreamer_plugins_version}
2224N/ARequires: gnome-desktop >= %{gnome_desktop_version}
2224N/ARequires: iso-codes
2224N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
2224N/ABuildRequires: gstreamer-devel >= %{gstreamer_version}
2224N/ABuildRequires: gstreamer-plugins-devel >= %{gstreamer_plugins_version}
2224N/ABuildRequires: gnome-desktop-devel >= %{gnome_desktop_version}
2224N/A
2224N/A%description
2224N/ARhythmbox is an integrated music management application
2224N/A
2224N/A%prep
2224N/A%setup -q
2224N/A%patch1 -p1
6184N/A%patch2 -p1
2224N/A
2224N/A%build
2224N/A%ifos linux
2224N/Aif [ -x /usr/bin/getconf ]; then
2224N/A CPUS=`getconf _NPROCESSORS_ONLN`
2224N/Afi
2224N/A%else
2224N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
2224N/A%endif
2224N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
2224N/A CPUS=1
2224N/Afi
2224N/A
2224N/Aif test "x$x_includes" = "x"; then
2224N/A x_includes="/usr/X11/include"
2224N/Afi
2224N/A
2224N/Aif test "x$x_libraries" = "x"; then
2224N/A x_libraries="/usr/X11/lib"
2224N/Afi
2224N/A
2224N/Alibtoolize --force
2224N/A## FIXME: Swap aclocal dir order to pick up gnome-doc-utils.m4 in 'macros'.
2224N/A##aclocal $ACLOCAL_FLAGS -I ./macros
2224N/Aaclocal -I ./macros $ACLOCAL_FLAGS
2224N/Aautoheader
2224N/Aautomake -a -c -f
2224N/Aautoconf
2224N/A
2224N/ACFLAGS="$RPM_OPT_FLAGS" \
2224N/A
2224N/A# --with-ipod requires that gtkpod be installed or configure will fail.
2224N/A./configure \
2224N/A --prefix=%{_prefix} \
2224N/A --sysconfdir=%{_sysconfdir} \
2224N/A --libdir=%{_libdir} \
2224N/A --bindir=%{_bindir} \
2224N/A --libexecdir=%{_libexecdir} \
2224N/A --mandir=%{_mandir} \
2224N/A --localstatedir=/var/lib \
2224N/A --disable-daap \
2224N/A --enable-gstreamer
2224N/A#FIXME -j is breaking the build removing for now.
2224N/A#make -j $CPUS
2224N/Amake
2224N/A
2224N/A%install
2224N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
2224N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
2224N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
2224N/Arm $RPM_BUILD_ROOT%{_libdir}/rhythmbox/plugins/*/lib*a
2224N/A
2224N/A%clean
2224N/Arm -rf $RPM_BUILD_ROOT
2224N/A
2224N/A%post
2224N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
2224N/ASCHEMAS="totem.schemas totem-video-thumbnail.schemas"
2224N/Afor S in $SCHEMAS; do
2224N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
2224N/Adone
2224N/A
2224N/A%files
2224N/A%defattr (-, root, root)
2224N/A%{_bindir}/*
2224N/A%{_sysconfdir}/gconf/schemas
2224N/A%{_libdir}/*
2224N/A%{_libexecdir}/*
2224N/A%{_datadir}/applications
2224N/A%{_datadir}/gnome/help/totem/*
2224N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
2224N/A%{_datadir}/pixmaps/*
2224N/A
2224N/A%changelog
2224N/A* Mon Jul 02 2007 - damien.carbery@sun.com
2624N/A- Bump to 0.11.1.
2224N/A* Mon May 28 2007 - damien.carbery@sun.com
2224N/A- Bump to 0.11.0.
2224N/A* Mon May 28 2007 - irene.huang@sun.com
2224N/A- change patch -02-null-title to be branding
2224N/A* Fri May 25 2007 - damien.carbery@sun.com
2224N/A- Bump to 0.10.90.
2224N/A* Tue Apr 24 2007 - irene.huang@sun.com
2224N/A- Modify bug number for patch null-title.diff
2224N/A* Mon Apr 02 2007 - damien.carbery@sun.com
2224N/A- Bump to 0.10.0. Remove upstream patch, 03-wronglocking.
2224N/A* Wed Mar 22 2007 - irene.huang@sun.com
2224N/A- add patch rhythmbox-03-wronglocking.diff
2224N/A* Wed Mar 14 2007 - irene.huang@sun.com
2224N/A- add patch rhythmbox-02-null-title.diff.
6184N/A* Mon Mar 12 2007 - laca@sun.com
2224N/A- delete .la files
2224N/A* Wed Feb 28 2007 - halton.huo@sun.com
2224N/A- Remove patch 02-gnome-doc-utils since g-d-u is upgrade to 0.9.x.
2224N/A* Thu Feb 22 2007 - damien.carbery@sun.com
2224N/A- Add patch, 02-gnome-doc-utils, to create gnome-doc-utils.m4 in macros subdir.
2224N/A This is needed because g-d-u is too old (it's blocked waiting for docbook
2224N/A update). The dir order in the aclocal call is also reversed to pick up the
2224N/A new gnome-doc-utils.m4 before the (older) system one. When g-d-u is updated
2224N/A the patch can be removed and aclocal call restored.
2224N/A* Tue Dec 19 2006 - damien.carbery@sun.com
2224N/A- Bump to 0.9.7. Remove upstream patch, rhythmbox-02-audiocd.diff.
2224N/A- Remove code that deletes the .la/.a files as none are generated.
2224N/A* Wed Oct 18 2006 - brian.cameron@sun.com
2224N/A- Add rhythmbox-02-audiocd.diff to fix linking of audiocd plugin
2224N/A to include nautilus-burn library. Without this, rhythmbox fails
2224N/A to start.
2224N/A* Tue Oct 03 2006 - damien.carbery@sun.com
2224N/A- Remove 'rm' line from %install as the files listed are not installed.
2224N/A* Mon Oct 02 2006 - damien.carbery@sun.com
2224N/A- Bump to 0.9.6.
2224N/A- Remove '-f' from 'rm' calls to force failure when source changes need
2224N/A attention.
2224N/A* Fri Sep 15 2006 - brian.cameron@sun.com
2224N/A- Remove patch 2, no longer needed.
2224N/A* Wed Jun 21 2006 - brian.cameron@sun.com
2224N/A- Bump to 0.9.5.
2224N/A* Mon May 01 2006 - brian.cameron@sun.com
2224N/A- Add patch to fix compile issue that appears when building with HAL.
2224N/A* Wed Apr 26 2006 - damien.carbery@sun.com
2224N/A- Removed upstream patch rhythmbox-01-fixcompile.diff.
2224N/A* Tue Apr 25 2006 - damien.carbery@sun.com
2224N/A- Bump to 0.9.4.1.
2224N/A* Tue Apr 18 2006 - damien.carbery@sun.com
6184N/A- Bump to 0.9.4.
2224N/A* Wed Apr 5 2006 - damien.carbery@sun.com
2224N/A- Remove --with-ipod option as gtkpod is not in build.
2224N/A* Mon Mar 20 2006 - Brian.Cameron@sun.com
2224N/A- Created
2224N/A