SPECS: RealPlayer.spec - merged some changes from realplayer.spec

qboosh qboosh at pld-linux.org
Sat Aug 19 13:04:05 CEST 2006


Author: qboosh                       Date: Sat Aug 19 11:04:05 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- merged some changes from realplayer.spec

---- Files affected:
SPECS:
   RealPlayer.spec (1.30 -> 1.31) 

---- Diffs:

================================================================
Index: SPECS/RealPlayer.spec
diff -u SPECS/RealPlayer.spec:1.30 SPECS/RealPlayer.spec:1.31
--- SPECS/RealPlayer.spec:1.30	Sun Jul 30 21:11:41 2006
+++ SPECS/RealPlayer.spec	Sat Aug 19 13:03:59 2006
@@ -2,7 +2,10 @@
 # TODO:
 #	- add the licence agreement mechanism
 #	- check if this works in opera/konqueror
-#   - merge with realplayer.spec
+#   - check if realplayer-desktop.patch (from realplayer.spec) is needed
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
 #
 %define		_name	realplay
 Summary:	RealPlayer - RealAudio and RealVideo player
@@ -28,26 +31,45 @@
 # NoSource1-md5:	d87d35617f07ab9435341f37229dd3ae
 NoSource:	1
 %endif
+Patch0:		realplayer-desktop.patch
 URL:		http://www.real.com/linux/
 BuildRequires:	cpio
 BuildRequires:	rpmbuild(macros) >= 1.312
 BuildRequires:	sed >= 4.0
-Provides:	helix-core
+%if %{with autodeps}
+BuildRequires:	atk
+BuildRequires:	glib2
+BuildRequires:	gtk+2
+BuildRequires:	libgcc
+BuildRequires:	libstdc++
+BuildRequires:	pango
+%endif
 Requires:	sed >= 4.0
+Provides:	helix-core
 Obsoletes:	G2player
 Obsoletes:	RealPlayer-gnome
-Conflicts:	realplayer
+Obsoletes:	realplayer
 ExclusiveArch:	%{ix86} ppc
+ExcludeArch:	i386 i486
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_plugindir	%{_libdir}/browser-plugins
 %define		browsers	mozilla, mozilla-firefox, netscape, seamonkey
+%define		_noautocompressdoc  LICENSE README
 
 %description
 Streaming audio/video/flash/pix/text player.
+%ifarch ppc
+
+WARNING: this package is vulnerable - see CVE-2006-0323!
+%endif
 
 %description -l pl
 Odtwarzacz strumieni audio/video/flash/pix/tekst.
+%ifarch ppc
+
+UWAGA: ten pakiet jest niebezpieczny - szczegóły w CVE-2006-0323!
+%endif
 
 %package -n browser-plugin-%{name}
 Summary:	RealPlayer plugin for WWW browsers
@@ -121,11 +143,19 @@
 cd -
 
 cp -rf share/locale/* $RPM_BUILD_ROOT%{_datadir}/locale
+# from realplayer.spec - does it work???
+#cd share/locale
+#for LC in *; do
+#	install -d $RPM_BUILD_ROOT%{_datadir}/locale/${LC}/LC_MESSAGES
+#	cp -a ${LC}/player.mo $RPM_BUILD_ROOT%{_datadir}/locale/${LC}/LC_MESSAGES/realplay.mo
+#	cp -a ${LC}/widget.mo $RPM_BUILD_ROOT%{_datadir}/locale/${LC}/LC_MESSAGES/libgtkhx.mo
+#done
+#cd ../..
 
 install mozilla/*.{so,xpt} $RPM_BUILD_ROOT%{_plugindir}
 
 install realplay* $RPM_BUILD_ROOT%{_libdir}/%{_name}
-ln -sf ../lib/%{_name}/realplay $RPM_BUILD_ROOT%{_bindir}/realplay
+ln -sf ../%{_lib}/%{_name}/realplay $RPM_BUILD_ROOT%{_bindir}/realplay
 
 install share/realplay.desktop $RPM_BUILD_ROOT%{_desktopdir}
 
@@ -135,6 +165,10 @@
 install share/default/* $RPM_BUILD_ROOT%{_libdir}/%{_name}/share/default
 install share/*.html $RPM_BUILD_ROOT%{_libdir}/%{_name}/share
 install share/*.css $RPM_BUILD_ROOT%{_libdir}/%{_name}/share
+rm -rf docs
+install -d docs
+ln -s %{_libdir}/%{_name}/README docs
+ln -s %{_libdir}/%{_name}/LICENSE docs
 
 %{__sed} -i -e 's&#[ \t]*HELIX_LIBS[ \t]*=.*$&HELIX_LIBS=%{_libdir}/%{_name} ; export HELIX_LIBS&' \
 	$RPM_BUILD_ROOT%{_libdir}/realplay/realplay
@@ -195,7 +229,7 @@
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc LICENSE README 
+%doc docs/{LICENSE,README}
 %attr(755,root,root) %{_bindir}/realplay
 %dir %{_libdir}/%{_name}
 %dir %{_libdir}/%{_name}/codecs
@@ -208,9 +242,9 @@
 %attr(755,root,root) %{_libdir}/%{_name}/plugins/*.so*
 %attr(755,root,root) %{_libdir}/%{_name}/realplay
 %attr(755,root,root) %{_libdir}/%{_name}/realplay.bin
-
 %{_libdir}/%{_name}/share
-
+%{_libdir}/%{_name}/LICENSE
+%{_libdir}/%{_name}/README
 %{_iconsdir}/hicolor/*/*/*.png
 %{_desktopdir}/*.desktop
 
@@ -225,6 +259,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.31  2006/08/19 11:03:59  qboosh
+- merged some changes from realplayer.spec
+
 Revision 1.30  2006/07/30 19:11:41  glen
 - blah, messed it up (RealPlayer.spec/realplayer.spec needs merge)
 
@@ -244,6 +281,7 @@
 Revision 1.25  2006/07/29 03:55:55  havner
 - 10.0.7 for x86 (dont know any serious D/L link but since its NoSource
   shouldn't really matter)
+[fixes CVE-2006-0323]
 - browser-plugin mechanism
 
 Revision 1.24  2005/10/17 21:06:14  djurban
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/RealPlayer.spec?r1=1.30&r2=1.31&f=u



More information about the pld-cvs-commit mailing list