base-specs/rhythmbox.spec
author laca
Wed, 28 Feb 2007 18:57:18 +0000
changeset 9397 b16e349d18c5
child 9531 76f32a040778
permissions -rw-r--r--
the easy part of the reorg (most files moved around)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package rhythmbox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# Owner: yippi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
Name:         rhythmbox
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
License:      GPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
Group:        System/GUI/GNOME
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Version:      0.9.8
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Distribution: Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Vendor:       Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:      Rhythmbox Multimedia Player
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Source:       http://ftp.gnome.org/pub/GNOME/sources/rhythmbox/0.9/%{name}-%{version}.tar.bz2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
#owner:yippi date:2006-06-22 type:branding
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Patch1:       rhythmbox-01-nocheck.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
URL:          http://www.gnome.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Docdir:       %{_defaultdocdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
%define	libgnomeui_version			2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
%define	gstreamer_version               	0.8.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define gstreamer_plugins_version       	0.8.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%define gnome_desktop_version                   2.6.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Requires:       libgnomeui >= %{libgnomeui_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires:       gstreamer >= %{gstreamer_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires:       gstreamer-plugins >= %{gstreamer_plugins_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires:       gnome-desktop >= %{gnome_desktop_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires:       iso-codes
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
BuildRequires:  libgnomeui-devel >= %{libgnomeui_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
BuildRequires:  gstreamer-devel >= %{gstreamer_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
BuildRequires:  gstreamer-plugins-devel >= %{gstreamer_plugins_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
BuildRequires:  gnome-desktop-devel >= %{gnome_desktop_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
Rhythmbox is an integrated music management application
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
if test "x$x_includes" = "x"; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
 x_includes="/usr/X11/include"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
if test "x$x_libraries" = "x"; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
 x_libraries="/usr/X11/lib"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
libtoolize --force
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
## FIXME: Swap aclocal dir order to pick up gnome-doc-utils.m4 in 'macros'.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
##aclocal $ACLOCAL_FLAGS -I ./macros
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
aclocal -I ./macros $ACLOCAL_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
CFLAGS="$RPM_OPT_FLAGS"	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
# --with-ipod requires that gtkpod be installed or configure will fail.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
./configure \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
	--prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
	--sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
        --libdir=%{_libdir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
        --bindir=%{_bindir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
	--libexecdir=%{_libexecdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
	--mandir=%{_mandir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
	--localstatedir=/var/lib    \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
	--enable-gstreamer
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
#FIXME -j is breaking the build removing for now.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
#make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
make -i install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
SCHEMAS="totem.schemas totem-video-thumbnail.schemas"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
for S in $SCHEMAS; do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
        gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%defattr (-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%{_sysconfdir}/gconf/schemas
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%{_libdir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%{_libexecdir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%{_datadir}/applications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%{_datadir}/gnome/help/totem/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%{_datadir}/locale/*/LC_MESSAGES/*.mo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%{_datadir}/pixmaps/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
* Wed Feb 28 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
- Remove patch 02-gnome-doc-utils since g-d-u is upgrade to 0.9.x.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
* Thu Feb 22 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
- Add patch, 02-gnome-doc-utils, to create gnome-doc-utils.m4 in macros subdir.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
  This is needed because g-d-u is too old (it's blocked waiting for docbook
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
  update). The dir order in the aclocal call is also reversed to pick up the
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
  new gnome-doc-utils.m4 before the (older) system one. When g-d-u is updated
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
  the patch can be removed and aclocal call restored.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
* Tue Dec 19 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- Bump to 0.9.7. Remove upstream patch, rhythmbox-02-audiocd.diff.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
- Remove code that deletes the .la/.a files as none are generated.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
* Wed Oct 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
- Add rhythmbox-02-audiocd.diff to fix linking of audiocd plugin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
  to include nautilus-burn library.  Without this, rhythmbox fails
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
  to start.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
* Tue Oct 03 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
- Remove 'rm' line from %install as the files listed are not installed.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
* Mon Oct 02 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
- Bump to 0.9.6.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
- Remove '-f' from 'rm' calls to force failure when source changes need
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
  attention.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
* Fri Sep 15 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
- Remove patch 2, no longer needed.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
* Wed Jun 21 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
- Bump to 0.9.5.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
* Mon May 01 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
- Add patch to fix compile issue that appears when building with HAL.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
* Wed Apr 26 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
- Removed upstream patch rhythmbox-01-fixcompile.diff.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
* Tue Apr 25 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
- Bump to 0.9.4.1.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
* Tue Apr 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
- Bump to 0.9.4.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
* Wed Apr  5 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   165
- Remove --with-ipod option as gtkpod is not in build.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   167
* Mon Mar 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   168
- Created