SPECS: openoffice.org.spec - browser-plugins subpackage

glen glen at pld-linux.org
Thu Mar 8 03:18:06 CET 2007


Author: glen                         Date: Thu Mar  8 02:18:06 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- browser-plugins subpackage

---- Files affected:
SPECS:
   openoffice.org.spec (1.719 -> 1.720) 

---- Diffs:

================================================================
Index: SPECS/openoffice.org.spec
diff -u SPECS/openoffice.org.spec:1.719 SPECS/openoffice.org.spec:1.720
--- SPECS/openoffice.org.spec:1.719	Thu Mar  8 01:40:11 2007
+++ SPECS/openoffice.org.spec	Thu Mar  8 03:18:01 2007
@@ -72,7 +72,7 @@
 %endif
 
 %define		ver		2.1.0
-%define		_rel		0.21
+%define		_rel		0.22
 %define		subver		680
 %define		snap		OOE680
 %define		snap2		SRC680
@@ -190,7 +190,7 @@
 BuildRequires:	python-devel >= 2.2
 BuildRequires:	python-modules >= 2.2
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.300
+BuildRequires:	rpmbuild(macros) >= 1.357
 BuildRequires:	sablotron-devel
 BuildRequires:	sane-backends-devel
 BuildRequires:	sed >= 4.0
@@ -515,6 +515,18 @@
 %description -n fonts-TTF-OpenSymbol -l pl.UTF-8
 Fonty TrueType OpenSymbol.
 
+%package -n browser-plugin-%{name}
+Summary:	OpenOffice.org plugin for WWW browsers
+Group:		X11/Applications
+Requires:	%{name}-core = %{epoch}:%{version}-%{release}
+Requires:	browser-plugins >= 2.0
+Requires:	browser-plugins(%{_target_base_arch})
+
+%description -n browser-plugin-%{name}
+OpenOffice.org plugin for WWW browsers.
+
+This plugin allows browsers to display OOo documents inline.
+
 %package i18n-af
 Summary:	OpenOffice.org - interface in Afrikaans language
 Summary(pl.UTF-8):	OpenOffice.org - interfejs w języku afrykanerskim
@@ -2280,6 +2292,14 @@
 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/dictionary.lst
 %endif
 
+%if %{with mozilla}
+install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libnpsoplugin.so $RPM_BUILD_ROOT%{_browserpluginsdir}
+# this is for options -> browser plugin -> enable to work
+# altho in PLD Linux browser-plugins archidecture takes care of that
+ln -s %{_browserpluginsdir}/libnpsoplugin.so $RPM_BUILD_ROOT%{_libdir}/%{name}/program
+%endif
+
 # is below comment true?
 # OOo should not install the Vera fonts, they are Required: now
 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
@@ -2424,6 +2444,14 @@
 %postun -n fonts-TTF-OpenSymbol
 fontpostinst TTF
 
+%post -n browser-plugin-%{name}
+%update_browser_plugins
+
+%postun -n browser-plugin-%{name}
+if [ "$1" = 0 ]; then
+	%update_browser_plugins
+fi
+
 # NOTE:
 # you may find build/*_list.txt useful to help you package files to packages
 
@@ -2817,9 +2845,6 @@
 %attr(755,root,root) %{_libdir}/%{name}/program/soffice
 %attr(755,root,root) %{_libdir}/%{name}/program/spadmin
 %attr(755,root,root) %{_libdir}/%{name}/program/open-url
-%if %{with mozilla}
-%attr(755,root,root) %{_libdir}/%{name}/program/nsplugin
-%endif
 %attr(755,root,root) %{_libdir}/%{name}/program/gengal
 %attr(755,root,root) %{_libdir}/%{name}/program/configimport
 %attr(755,root,root) %{_libdir}/%{name}/program/sbase
@@ -3107,7 +3132,6 @@
 %attr(755,root,root) %{_libdir}/%{name}/program/libmdb680*.so
 %attr(755,root,root) %{_libdir}/%{name}/program/libmdbimpl680*.so
 %attr(755,root,root) %{_libdir}/%{name}/program/libmysql2.so
-%attr(755,root,root) %{_libdir}/%{name}/program/libnpsoplugin.so
 %attr(755,root,root) %{_libdir}/%{name}/program/libodbc2.so
 %attr(755,root,root) %{_libdir}/%{name}/program/libodbcbase2.so
 %attr(755,root,root) %{_libdir}/%{name}/program/liboffacc680*.so
@@ -3494,6 +3518,14 @@
 # samples there
 %{_libdir}/%{name}/share/Scripts/python
 
+%if %{with mozilla}
+%files -n browser-plugin-%{name}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/program/nsplugin
+%attr(755,root,root) %{_browserpluginsdir}/libnpsoplugin.so
+%{_libdir}/%{name}/program/libnpsoplugin.so
+%endif
+
 %if %{with i18n}
 %files i18n-af -f af.lang
 %defattr(644,root,root,755)
@@ -3779,6 +3811,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.720  2007/03/08 02:18:01  glen
+- browser-plugins subpackage
+
 Revision 1.719  2007/03/08 00:40:11  glen
 - skip dictionaries install if system dicts are used
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/openoffice.org.spec?r1=1.719&r2=1.720&f=u



More information about the pld-cvs-commit mailing list