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