base-specs/rhythmbox.spec
author sh162551
Mon, 19 Mar 2007 06:39:03 +0000
changeset 9580 fbd0d22b8f5f
parent 9531 76f32a040778
child 9607 b2356fdef8ce
permissions -rw-r--r--
2007-03-15 Irene Huang <[email protected]> * base-specs/rhythmbox.spec: added patch 02-null-title.diff * patches/rhythmbox-02-null-title.diff: Fixes bug 6532865. Set the title to default value if it is NULL.
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
9580
fbd0d22b8f5f 2007-03-15 Irene Huang <[email protected]>
sh162551
parents: 9531
diff changeset
    21
#owner:sh162551 date:2007-03-14 bugster:6529843 type:bug
fbd0d22b8f5f 2007-03-15 Irene Huang <[email protected]>
sh162551
parents: 9531
diff changeset
    22
Patch2:       rhythmbox-02-null-title.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
URL:          http://www.gnome.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Docdir:       %{_defaultdocdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define	libgnomeui_version			2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%define	gstreamer_version               	0.8.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%define gstreamer_plugins_version       	0.8.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%define gnome_desktop_version                   2.6.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires:       libgnomeui >= %{libgnomeui_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires:       gstreamer >= %{gstreamer_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires:       gstreamer-plugins >= %{gstreamer_plugins_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Requires:       gnome-desktop >= %{gnome_desktop_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Requires:       iso-codes
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
BuildRequires:  libgnomeui-devel >= %{libgnomeui_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
BuildRequires:  gstreamer-devel >= %{gstreamer_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
BuildRequires:  gstreamer-plugins-devel >= %{gstreamer_plugins_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
BuildRequires:  gnome-desktop-devel >= %{gnome_desktop_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
Rhythmbox is an integrated music management application
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%patch1 -p1
9580
fbd0d22b8f5f 2007-03-15 Irene Huang <[email protected]>
sh162551
parents: 9531
diff changeset
    49
%patch2 -p1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
  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
    58
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
if test "x$x_includes" = "x"; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
 x_includes="/usr/X11/include"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
if test "x$x_libraries" = "x"; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
 x_libraries="/usr/X11/lib"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
libtoolize --force
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
## 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
    73
##aclocal $ACLOCAL_FLAGS -I ./macros
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
aclocal -I ./macros $ACLOCAL_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
CFLAGS="$RPM_OPT_FLAGS"	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
# --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
    82
./configure \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
	--prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
	--sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
        --libdir=%{_libdir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
        --bindir=%{_bindir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
	--libexecdir=%{_libexecdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
	--mandir=%{_mandir}         \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
	--localstatedir=/var/lib    \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
	--enable-gstreamer
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
#FIXME -j is breaking the build removing for now.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
#make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
make -i install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
9531
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    99
rm $RPM_BUILD_ROOT%{_libdir}/rhythmbox/plugins/*/lib*a
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
SCHEMAS="totem.schemas totem-video-thumbnail.schemas"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
for S in $SCHEMAS; do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
        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
   109
done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%defattr (-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%{_sysconfdir}/gconf/schemas
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%{_libdir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%{_libexecdir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%{_datadir}/applications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%{_datadir}/gnome/help/totem/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
%{_datadir}/locale/*/LC_MESSAGES/*.mo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
%{_datadir}/pixmaps/*
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
%changelog
9580
fbd0d22b8f5f 2007-03-15 Irene Huang <[email protected]>
sh162551
parents: 9531
diff changeset
   123
* Wed Mar 14 2007 - [email protected]
fbd0d22b8f5f 2007-03-15 Irene Huang <[email protected]>
sh162551
parents: 9531
diff changeset
   124
- add patch rhythmbox-02-null-title.diff.
9531
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   125
* Mon Mar 12 2007 - [email protected]
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   126
- delete .la files
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Wed Feb 28 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- 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
   129
* Thu Feb 22 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- 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
   131
  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
   132
  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
   133
  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
   134
  the patch can be removed and aclocal call restored.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
* Tue Dec 19 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
- 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
   137
- 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
   138
* Wed Oct 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
- 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
   140
  to include nautilus-burn library.  Without this, rhythmbox fails
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
  to start.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
* Tue Oct 03 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
- 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
   144
* Mon Oct 02 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
- Bump to 0.9.6.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
- 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
   147
  attention.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
* Fri Sep 15 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
- Remove patch 2, no longer needed.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
* Wed Jun 21 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
- Bump to 0.9.5.
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
* Wed Apr 26 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
- Removed upstream patch rhythmbox-01-fixcompile.diff.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
* Tue Apr 25 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
- Bump to 0.9.4.1.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
* Tue Apr 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
- Bump to 0.9.4.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
* Wed Apr  5 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
- 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
   162
* Mon Mar 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
- Created