author | laca |
Mon, 12 Mar 2007 18:37:19 +0000 | |
changeset 9531 | 76f32a040778 |
parent 9499 | d80853dff9e3 |
child 9780 | 21510eb397b1 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-media-player |
|
3 |
# |
|
4 |
# includes module(s): totem |
|
5 |
# |
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc. |
|
7 |
# This file and all modifications and additions to the pristine |
|
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: yippi |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%define makeinstall make install DESTDIR=$RPM_BUILD_ROOT |
|
15 |
%use totem = totem.spec |
|
16 |
%use rhythmbox = rhythmbox.spec |
|
17 |
||
18 |
Name: SUNWgnome-media-player |
|
19 |
Summary: GNOME media player |
|
20 |
Version: %{default_pkg_version} |
|
21 |
Source: %{name}-manpages-0.1.tar.gz |
|
22 |
SUNW_BaseDir: %{_prefix} |
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 |
||
25 |
%include default-depend.inc |
|
26 |
BuildRequires: SUNWgnome-media-devel |
|
27 |
BuildRequires: SUNWxorg-headers |
|
28 |
BuildRequires: SUNWgnome-panel-devel |
|
29 |
BuildRequires: SUNWiso-codes-devel |
|
30 |
BuildRequires: SUNWgnome-file-mgr |
|
31 |
BuildRequires: SUNWdbus-devel |
|
32 |
BuildRequires: SUNWgnome-config-devel |
|
33 |
BuildRequires: SUNWgnome-media-devel |
|
34 |
BuildRequires: SUNWgnome-vfs-devel |
|
35 |
BuildRequires: SUNWgnome-component-devel |
|
36 |
BuildRequires: SUNWgnome-cd-burner-devel |
|
37 |
BuildRequires: SUNWPython-devel |
|
38 |
BuildRequires: SUNWevolution-libs-devel |
|
39 |
BuildRequires: SUNWlibpopt-devel |
|
40 |
BuildRequires: SUNWmusicbrainz-devel |
|
41 |
BuildRequires: SUNWgnome-media-apps-devel |
|
42 |
BuildRequires: SUNWfirefox-devel |
|
43 |
Requires: SUNWgnome-libs |
|
44 |
Requires: SUNWgnome-base-libs |
|
45 |
Requires: SUNWgnome-file-mgr |
|
46 |
Requires: SUNWxwrtl |
|
47 |
Requires: SUNWxorg-clientlibs |
|
48 |
Requires: SUNWgnome-panel |
|
49 |
Requires: SUNWiso-codes |
|
50 |
Requires: SUNWdbus |
|
51 |
Requires: SUNWgnome-config |
|
52 |
Requires: SUNWgnome-media |
|
53 |
Requires: SUNWgnome-vfs |
|
54 |
Requires: SUNWlibms |
|
55 |
Requires: SUNWlxml |
|
56 |
Requires: SUNWgnome-component |
|
57 |
Requires: SUNWgnome-cd-burner |
|
58 |
Requires: SUNWpostrun |
|
59 |
Requires: SUNWPython |
|
60 |
Requires: SUNWevolution-libs |
|
61 |
Requires: SUNWlibpopt |
|
62 |
Requires: SUNWmusicbrainz |
|
63 |
Requires: SUNWgnome-media-apps |
|
64 |
Requires: SUNWfirefox |
|
65 |
Requires: SUNWhal |
|
66 |
||
67 |
%package root |
|
68 |
Summary: %{summary} - / filesystem |
|
69 |
SUNW_BaseDir: / |
|
70 |
%include default-depend.inc |
|
71 |
Requires: SUNWpostrun-root |
|
72 |
Requires: SUNWgnome-config |
|
73 |
||
74 |
%package devel |
|
75 |
Summary: %{summary} - development files |
|
76 |
SUNW_BaseDir: %{_basedir} |
|
77 |
%include default-depend.inc |
|
78 |
||
79 |
%if %build_l10n |
|
80 |
%package l10n |
|
81 |
Summary: %{summary} - l10n files |
|
82 |
SUNW_BaseDir: %{_basedir} |
|
83 |
%include default-depend.inc |
|
84 |
Requires: %{name} |
|
85 |
%endif |
|
86 |
||
87 |
%prep |
|
88 |
rm -rf %name-%version |
|
89 |
mkdir %name-%version |
|
90 |
%totem.prep -d %name-%version |
|
91 |
%rhythmbox.prep -d %name-%version |
|
92 |
cd %{_builddir}/%name-%version |
|
93 |
gzcat %SOURCE0 | tar xf - |
|
94 |
||
95 |
%build |
|
96 |
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig:/usr/lib/pkgconfig |
|
97 |
export MSGFMT="/usr/bin/msgfmt" |
|
98 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
99 |
export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int |
|
100 |
export CFLAGS="%optflags -D__EXTENSIONS__ -I%{_includedir} -I/usr/X11/include" |
|
9407
9710394232c6
* SUNWgnome-media-player.spec: Remove -I%{_includedir}/mps from
halton
parents:
9397
diff
changeset
|
101 |
export CXXFLAGS="%cxx_optflags -features=extensions" |
9397 | 102 |
export RPM_OPT_FLAGS="$CFLAGS" |
103 |
export LDFLAGS="-z ignore -Bdirect -z combreloc -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lX11" |
|
104 |
||
105 |
%ifarch sparc |
|
106 |
export x_includes="/usr/openwin/include" |
|
107 |
export x_libraries="/usr/openwin/lib" |
|
108 |
%endif |
|
109 |
||
110 |
%totem.build -d %name-%version |
|
111 |
||
112 |
export PKG_CONFIG_PATH=../totem-%{totem.version} |
|
113 |
%rhythmbox.build -d %name-%version |
|
114 |
||
115 |
%install |
|
116 |
rm -rf $RPM_BUILD_ROOT |
|
117 |
%totem.install -d %name-%version |
|
118 |
%rhythmbox.install -d %name-%version |
|
119 |
cd %{_builddir}/%name-%version/sun-manpages |
|
120 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
121 |
||
122 |
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|
123 |
rm $RPM_BUILD_ROOT%{_libdir}/lib*.a |
|
124 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/lib*.la |
|
125 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/lib*.a |
|
9499 | 126 |
rm $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/lib*.la |
127 |
rm $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/lib*.a |
|
9397 | 128 |
|
129 |
# Remove scrollkeeper files installed by rhythmbox before packaging. |
|
130 |
# |
|
131 |
rm -rf $RPM_BUILD_ROOT/var |
|
132 |
||
133 |
%if %build_l10n |
|
134 |
%else |
|
135 |
# REMOVE l10n FILES |
|
136 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
137 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
138 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
139 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf |
|
140 |
%endif |
|
141 |
||
142 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
143 |
||
144 |
%clean |
|
145 |
rm -rf $RPM_BUILD_ROOT |
|
146 |
||
147 |
%post |
|
148 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
149 |
echo '/usr/bin/update-desktop-database' |
|
150 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
151 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
152 |
echo '/usr/bin/scrollkeeper-update' |
|
153 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
154 |
||
155 |
%postun |
|
156 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
157 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
158 |
echo '/usr/bin/update-desktop-database' |
|
159 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
160 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
161 |
echo '/usr/bin/scrollkeeper-update' |
|
162 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
163 |
||
164 |
%post root |
|
165 |
( echo 'test -x /usr/bin/gconftool-2 || {'; |
|
166 |
echo ' echo "ERROR: gconftool-2 not found"'; |
|
167 |
echo ' exit 0'; |
|
168 |
echo '}'; |
|
169 |
echo 'umask 0022'; |
|
170 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults'; |
|
171 |
echo 'export GCONF_CONFIG_SOURCE'; |
|
172 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas' |
|
173 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait |
|
174 |
||
175 |
%preun root |
|
176 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
177 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
178 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
179 |
echo ' exit 0'; |
|
180 |
echo '}'; |
|
181 |
echo 'umask 0022'; |
|
182 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
183 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
184 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
185 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
186 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
187 |
echo 'schemas="$SDIR/rhythmbox.schemas'; |
|
188 |
echo ' $SDIR/totem-handlers.schemas'; |
|
189 |
echo ' $SDIR/totem-video-thumbnail.schemas'; |
|
190 |
echo ' $SDIR/totem.schemas"'; |
|
191 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
192 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
193 |
||
194 |
%files |
|
195 |
%defattr (-, root, bin) |
|
196 |
%dir %attr (0755, root, bin) %{_bindir} |
|
197 |
%{_bindir}/* |
|
198 |
%dir %attr (0755, root, bin) %{_libdir} |
|
199 |
%{_libdir}/lib*.so* |
|
200 |
%{_libdir}/nautilus/extensions-1.0/lib*.so* |
|
9499 | 201 |
%{_libdir}/mozilla/plugins |
9397 | 202 |
%{_libdir}/rhythmbox |
203 |
%{_libdir}/rhythmbox-metadata |
|
9499 | 204 |
%{_libdir}/totem-plugin-viewer |
9397 | 205 |
%dir %attr (0755, root, sys) %{_datadir} |
206 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
207 |
%{_datadir}/applications/* |
|
208 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1 |
|
209 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services |
|
210 |
%{_datadir}/dbus-1/services/org.gnome.Rhythmbox.service |
|
211 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
212 |
%{_datadir}/gnome/help/rhythmbox/C |
|
213 |
%{_datadir}/gnome/help/totem/C |
|
214 |
%attr (-, root, other) %{_datadir}/icons |
|
215 |
%{_datadir}/omf/rhythmbox/*-C.omf |
|
216 |
%{_datadir}/omf/totem/*-C.omf |
|
217 |
%{_datadir}/rhythmbox |
|
218 |
%{_datadir}/totem |
|
219 |
%dir %attr(0755, root, bin) %{_mandir} |
|
220 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
221 |
%{_mandir}/*/* |
|
222 |
||
223 |
%files root |
|
224 |
%defattr(0755, root, sys) |
|
225 |
%attr(0755, root, sys) %dir %{_sysconfdir} |
|
226 |
%{_sysconfdir}/gconf/schemas/rhythmbox.schemas |
|
227 |
%{_sysconfdir}/gconf/schemas/totem-handlers.schemas |
|
228 |
%{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas |
|
229 |
%{_sysconfdir}/gconf/schemas/totem.schemas |
|
230 |
||
231 |
%files devel |
|
232 |
%defattr (-, root, bin) |
|
233 |
%dir %attr (0755, root, bin) %dir %{_libdir} |
|
234 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
235 |
%{_libdir}/pkgconfig/* |
|
236 |
%dir %attr (0755, root, bin) %dir %{_includedir} |
|
237 |
%{_includedir}/* |
|
238 |
%dir %attr (0755, root, sys) %{_datadir} |
|
239 |
%{_datadir}/gtk-doc |
|
240 |
||
241 |
%if %build_l10n |
|
242 |
%files l10n |
|
243 |
%defattr (-, root, bin) |
|
244 |
%dir %attr (0755, root, sys) %{_datadir} |
|
245 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
246 |
%attr (-, root, other) %{_datadir}/locale |
|
247 |
%{_datadir}/gnome/help/*/[a-z]* |
|
248 |
%{_datadir}/omf/*/*-[a-z]*.omf |
|
249 |
%endif |
|
250 |
||
251 |
%changelog |
|
9531 | 252 |
* Mon Mar 12 2007 - [email protected] |
253 |
- delete rhythmbox .la files in rhythmbox.spec |
|
9407
9710394232c6
* SUNWgnome-media-player.spec: Remove -I%{_includedir}/mps from
halton
parents:
9397
diff
changeset
|
254 |
* Thu Mar 01 2007 - [email protected] |
9710394232c6
* SUNWgnome-media-player.spec: Remove -I%{_includedir}/mps from
halton
parents:
9397
diff
changeset
|
255 |
- Remove -I%{_includedir}/mps from CXXFLAGS because it is |
9710394232c6
* SUNWgnome-media-player.spec: Remove -I%{_includedir}/mps from
halton
parents:
9397
diff
changeset
|
256 |
in /usr/lib/pkgconfig/firefox-xpcom.pc |
9397 | 257 |
* Wed Feb 28 2007 - [email protected] |
258 |
- Add -I%{_includedir}/mps into CXXFLAGS to fix build error. |
|
259 |
* Thu Feb 22 2007 - [email protected] |
|
260 |
- Add '-features=extensions' to CXXFLAGS because __func__ is used in new totem |
|
261 |
tarball. |
|
262 |
* Mon Feb 12 2007 - [email protected] |
|
263 |
- Remove '-I/usr/include/mps' from CFLAGS/CXXFLAGS. Make change to |
|
264 |
firefox-xpcom.pc file instead. |
|
265 |
* Thu Nov 30 2006 - [email protected] |
|
266 |
- Remove duplicate 'BuildRequires: SUNWfirefox-devel' line. |
|
267 |
* Mon Nov 20 2006 - [email protected] |
|
268 |
- s/Requires: SUNWfirefox-devel/Requires: SUNWfirefox/, fixes 6495619 |
|
269 |
* Fri Oct 20 2006 - [email protected] |
|
270 |
- Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51. |
|
271 |
* Fri Oct 13 2006 - [email protected] |
|
272 |
- Delete .a and .la files. |
|
273 |
* Mon Oct 02 2006 - [email protected] |
|
274 |
- Remove application-registry and mime-info dirs from %files as they are no |
|
275 |
longer installed. |
|
276 |
* Mon Sep 18 2006 - [email protected] |
|
277 |
- Add SUNWhalh BuildRequires. |
|
278 |
* Fri Sep 08 2006 - [email protected] |
|
279 |
- Remove "rm" of _mandir during %install, add man page tarball for rhythmbox.1 |
|
280 |
Deliver totem.1, totem-video-thumbnailer.1 from community, and manp |
|
281 |
* Thu Aug 17 2006 - [email protected] |
|
282 |
- Add the mozilla/plugins dir and totem-mozilla-viewer. |
|
283 |
- Add Build/Requires SUNWfirefox/-devel for the xpidl compiler. |
|
284 |
* Wed Aug 16 2006 - [email protected] |
|
285 |
- Remove empty mozilla/plugins dir in %install. |
|
286 |
* Sat Aug 12 2006 - [email protected] |
|
287 |
- change datadir/icons permissions back to root:other since it's a stable |
|
288 |
interface and wasn't supposed to be changed |
|
289 |
* Fri Aug 11 2006 - [email protected] |
|
290 |
- Change SUNWhal-devel ref to SUNWhal as the former does not exist. |
|
291 |
* Tue Aug 08 2006 - [email protected] |
|
292 |
- Update Build/Requires after check-deps.pl run. |
|
293 |
* Fri Jul 14 2006 - [email protected] |
|
294 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
295 |
part of 6448317 |
|
296 |
* Thu Jun 29 2006 - [email protected] |
|
297 |
- update postrun scripts |
|
298 |
* Wed Jun 21 2006 - [email protected] |
|
299 |
- Fix packaging. |
|
300 |
* Sun Jun 11 2006 - [email protected] |
|
301 |
- change group from other to bin/sys |
|
302 |
* Thu May 25 2006 - [email protected] |
|
303 |
- use post/preun scripts to install schemas into the merged gconf files |
|
304 |
* Fri May 12 2006 - [email protected] |
|
305 |
- Small update to dependency list after check-deps.pl run. |
|
306 |
* Wed May 10 2006 - [email protected] |
|
307 |
- merge -share pkg(s) into the base pkg(s) |
|
308 |
* Thu Mar 2 2006 - [email protected] |
|
309 |
- Remove locale dir from l10n package - no files installed there. |
|
310 |
* Mon Feb 20 2006 - [email protected] |
|
311 |
- Update Build/Requires after running check-deps.pl script. |
|
312 |
* Sat Dec 3 2005 - [email protected] |
|
313 |
- add %post script that runs update-desktop-database |
|
314 |
* Tue Nov 29 2005 - [email protected] |
|
315 |
- remove javahelp stuff |
|
316 |
* Fri Sep 30 2005 - [email protected] |
|
317 |
- Fix l10n packaging. |
|
318 |
* Tue Sep 27 2005 - [email protected] |
|
319 |
- Move back to default prefix instead of /usr/demo/jds, since we have |
|
320 |
decided to support this application. |
|
321 |
* Wed Jan 19 2005 - [email protected] |
|
322 |
- Deliver javahelp files for totem #6197736 |
|
323 |
* Mon Dec 13 2004 - [email protected] |
|
324 |
- Move to /usr/sfw to implement ARC decision. |
|
325 |
* Sun Nov 14 2004 - [email protected] |
|
326 |
- move to /usr/demo/jds |
|
327 |
* Sat Oct 02 2004 - [email protected] |
|
328 |
- added %pkgbuild_postprocess |
|
329 |
* Fri Oct 01 2004 - [email protected] |
|
330 |
- Added l10n package |
|
331 |
- Added '--x-libraries' option in configure to fix bug 5081938 |
|
332 |
* Sat Sep 11 2004 - [email protected] |
|
333 |
- Set LDFLAGS so Xrandr and Xrender can be found. |
|
334 |
* Mon Aug 23 2004 - [email protected] |
|
335 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
336 |
* Fri Jul 23 2004 - [email protected] |
|
337 |
- Add SUNWgnome-media-devel as build requirement. |
|
338 |
* Thu Jul 15 2004 - [email protected] |
|
339 |
- Created. |