SPECS: RealPlayer.spec - 10.0.7 for x86 (dont know any serious D/L...

havner havner at pld-linux.org
Sat Jul 29 05:56:01 CEST 2006


Author: havner                       Date: Sat Jul 29 03:56:01 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- 10.0.7 for x86 (dont know any serious D/L link but since its NoSource
  shouldn't really matter)
- browser-plugin mechanism

---- Files affected:
SPECS:
   RealPlayer.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: SPECS/RealPlayer.spec
diff -u SPECS/RealPlayer.spec:1.24 SPECS/RealPlayer.spec:1.25
--- SPECS/RealPlayer.spec:1.24	Mon Oct 17 23:06:14 2005
+++ SPECS/RealPlayer.spec	Sat Jul 29 05:55:55 2006
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
 #
 # Todo:
-#	- replace mozilla-* plugins with browser-plugins
 #	- add the licence agreement mechanism
 #
 %define		_name	realplay
@@ -9,18 +8,18 @@
 Summary(pl):	RealPlayer - odtwarzacz RealAudio i RealVideo
 Name:		RealPlayer
 %ifarch	%{ix86}
-%define		minor_ver	6
+%define		minor_ver	7
 %else
 %define		minor_ver	5
 %endif
 Version:	10.0.%{minor_ver}
-Release:	0.1
+Release:	1
 License:	Helix DNA Technology Binary Research Use License (not distributable, see LICENSE)
 Group:		X11/Applications/Multimedia
 # download from https://helixcommunity.org/project/showfiles.php?group_id=154
 %ifarch %{ix86}
-Source0:	https://helixcommunity.org/download.php/1589/%{name}-%{version}.776-20050929.i586.rpm
-# NoSource0-md5:	870215a8ed4f50c76bbc42212511e8e7
+Source0:	RealPlayer10GOLD.rpm
+# NoSource0-md5:	3de2e377fd6f00ea1de8f3016469fe5e
 NoSource:	0
 %endif
 %ifarch ppc
@@ -28,8 +27,9 @@
 # NoSource1-md5:	d87d35617f07ab9435341f37229dd3ae
 NoSource:	1
 %endif
-URL:		http://www.real.com/
+URL:		http://www.real.com/linux/
 BuildRequires:	cpio
+BuildRequires:	rpmbuild(macros) >= 1.312
 BuildRequires:	sed >= 4.0
 Provides:	helix-core
 Requires:	sed >= 4.0
@@ -39,37 +39,31 @@
 ExclusiveArch:	%{ix86} ppc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_plugindir	%{_libdir}/browser-plugins
+%define		browsers	mozilla, mozilla-firefox, netscape, seamonkey
+
 %description
 Streaming audio/video/flash/pix/text player.
 
 %description -l pl
 Odtwarzacz strumieni audio/video/flash/pix/tekst.
 
-%package -n mozilla-plugin-%{name}
-Summary:	RealPlayer Mozilla plugin
-Summary(pl):	Wtyczka Mozilli RealPlayer
+%package -n browser-plugin-%{name}
+Summary:	RealPlayer plugin for WWW browsers
+Summary(pl):	Wtyczka RealPlayer do przeglądarek WWW
 Group:		X11/Applications/Multimedia
-PreReq:		mozilla-embedded
 Requires:	%{name} = %{version}-%{release}
+Requires:	browser-plugins(%{_target_base_arch})
 
-%description -n mozilla-plugin-%{name}
-RealPlayer Mozilla plugin
+%description -n browser-plugin-%{name}
+RealPlayer plugin for WWW browsers.
 
-%description -n mozilla-plugin-%{name} -l pl
-Wtyczka Mozilli RealPlayer
+Supported browsers: %{browsers}.
 
-%package -n mozilla-firefox-plugin-%{name}
-Summary:	RealPlayer Mozilla Firefox plugin
-Summary(pl):	Wtyczka Mozilli Firefox RealPlayer
-Group:		X11/Applications/Multimedia
-PreReq:		mozilla-firefox
-Requires:	%{name} = %{version}-%{release}
+%description -n browser-plugin-%{name} -l pl
+Wtyczka RealPlayer dla przeglądarek WWW.
 
-%description -n mozilla-firefox-plugin-%{name}
-RealPlayer Mozilla plugin
-
-%description -n mozilla-firefox-plugin-%{name} -l pl
-Wtyczka Mozilli RealPlayer
+Obsługiwane przeglądarki: %{browsers}.
 
 %prep
 %setup -q -c -T
@@ -84,8 +78,7 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_desktopdir} \
-	$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins \
-	$RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/plugins \
+	$RPM_BUILD_ROOT%{_plugindir} \
 	$RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{_name},%{_datadir}/locale} \
 	$RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,128x128}/mimetypes \
 	$RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48,128x128}/apps
@@ -128,8 +121,7 @@
 
 cp -rf share/locale/* $RPM_BUILD_ROOT%{_datadir}/locale
 
-install mozilla/*.{so,xpt} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
-install mozilla/*.{so,xpt} $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/plugins
+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
@@ -155,10 +147,50 @@
 %post
 umask 022
 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
+%update_icon_cache hicolor
 
 %postun
 umask 022
 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+%update_icon_cache hicolor
+
+%triggerin -- mozilla-firefox
+%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins nphelix.so nphelix.xpt
+
+%triggerun -- mozilla-firefox
+%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins nphelix.so nphelix.xpt
+
+%triggerin -- mozilla
+%nsplugin_install -d %{_libdir}/mozilla/plugins nphelix.so nphelix.xpt
+
+%triggerun -- mozilla
+%nsplugin_uninstall -d %{_libdir}/mozilla/plugins nphelix.so nphelix.xpt
+
+%triggerin -- konqueror
+%nsplugin_install -d %{_libdir}/kde3/plugins/konqueror nphelix.so
+
+%triggerun -- konqueror
+%nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror nphelix.so
+
+%triggerin -- opera
+%nsplugin_install -d %{_libdir}/opera/plugins nphelix.so
+
+%triggerun -- opera
+%nsplugin_uninstall -d %{_libdir}/opera/plugins nphelix.so
+
+%triggerin -- seamonkey
+%nsplugin_install -d %{_libdir}/seamonkey/plugins nphelix.so nphelix.xpt
+
+%triggerun -- seamonkey
+%nsplugin_uninstall -d %{_libdir}/seamonkey/plugins nphelix.so nphelix.xpt
+
+# as rpm removes the old obsoleted package files after the triggers
+# above are ran, add another trigger to make the links there.
+%triggerpostun -- mozilla-firefox-plugin-macromedia-flash
+%nsplugin_install -f -d %{_libdir}/mozilla-firefox/plugins nphelix.so nphelix.xpt
+
+%triggerpostun -- mozilla-plugin-macromedia-flash
+%nsplugin_install -f -d %{_libdir}/mozilla/plugins nphelix.so nphelix.xpt
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -181,15 +213,10 @@
 %{_iconsdir}/hicolor/*/*/*.png
 %{_desktopdir}/*.desktop
 
-%files -n mozilla-plugin-%{name}
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/mozilla/plugins/*.so
-%{_libdir}/mozilla/plugins/*.xpt
-
-%files -n mozilla-firefox-plugin-%{name}
+%files -n browser-plugin-%{name}
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/mozilla-firefox/plugins/*.so
-%{_libdir}/mozilla-firefox/plugins/*.xpt
+%attr(755,root,root) %{_plugindir}/*.so
+%{_plugindir}/*.xpt
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -197,6 +224,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+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)
+- browser-plugin mechanism
+
 Revision 1.24  2005/10/17 21:06:14  djurban
 - provide helix-core
 
================================================================

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



More information about the pld-cvs-commit mailing list