SPECS (AC-branch): openoffice.org.spec - browser-plugins subpackage
glen
glen at pld-linux.org
Thu Mar 8 03:16:19 CET 2007
Author: glen Date: Thu Mar 8 02:16:19 2007 GMT
Module: SPECS Tag: AC-branch
---- Log message:
- browser-plugins subpackage
---- Files affected:
SPECS:
openoffice.org.spec (1.704.2.18 -> 1.704.2.19)
---- Diffs:
================================================================
Index: SPECS/openoffice.org.spec
diff -u SPECS/openoffice.org.spec:1.704.2.18 SPECS/openoffice.org.spec:1.704.2.19
--- SPECS/openoffice.org.spec:1.704.2.18 Tue Mar 6 03:16:36 2007
+++ SPECS/openoffice.org.spec Thu Mar 8 03:16:13 2007
@@ -187,7 +187,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
@@ -505,6 +505,18 @@
%description -n fonts-TTF-OpenSymbol -l pl
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): OpenOffice.org - interfejs w języku afrykanerskim
@@ -2266,6 +2278,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/*
@@ -2410,6 +2430,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
@@ -2803,9 +2831,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
@@ -3093,7 +3118,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
@@ -3480,6 +3504,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)
@@ -3765,6 +3797,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.704.2.19 2007/03/08 02:16:13 glen
+- browser-plugins subpackage
+
Revision 1.704.2.18 2007/03/06 02:16:36 glen
- HEAD merge
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/openoffice.org.spec?r1=1.704.2.18&r2=1.704.2.19&f=u
More information about the pld-cvs-commit
mailing list