Compare commits

...

2 Commits
master ... sme9

Author SHA1 Message Date
Daniel Berteaud 41a2fd6563 update spec file 2013-11-12 19:03:50 +01:00
Daniel Berteaud 6e6dc8682a Adjust for OpenOffice.org -> LibreOffice change in EL6, also support x86_64 2013-11-12 19:02:59 +01:00
2 changed files with 23 additions and 13 deletions

View File

@ -26,16 +26,22 @@ if [ "$NET" == "enabled" ]; then
LISTEN=$(/sbin/e-smith/db configuration get LocalIP)
fi
if [ -e "/usr/lib64/libreoffice/program/soffice.bin" ]; then
BIN="/usr/lib64/libreoffice/program/soffice.bin";
else
BIN="/usr/lib/libreoffice/program/soffice.bin"
fi
exec 2>&1
HOME=/var/cache/ooo exec \
/usr/local/bin/setuidgid www \
/usr/lib/openoffice.org3/program/soffice.bin \
-headless \
-invisible \
-nocrashreport \
-nodefault \
-nofirststartwizard \
-nologo -norestore \
-accept="socket,host=$LISTEN,port=$PORT;urp;StarOffice.ComponentContext"
$BIN \
--headless \
--invisible \
--nocrashreport \
--nodefault \
--nofirststartwizard \
--nologo --norestore \
--accept="socket,host=$LISTEN,port=$PORT;urp;StarOffice.ComponentContext"

View File

@ -1,4 +1,4 @@
%define version 0.2.0
%define version 0.2.1
%define release 1
%define name smeserver-ooo-headless
@ -16,10 +16,10 @@ BuildArchitectures: noarch
BuildRequires: e-smith-devtools
Requires: e-smith-base >= 5.2.0
Requires: openoffice.org-headless
Requires: openoffice.org-writer
Requires: openoffice.org-impress
Requires: openoffice.org-calc
Requires: libreoffice-headless
Requires: libreoffice-writer
Requires: libreoffice-impress
Requires: libreoffice-calc
Requires: unoconv
%description
@ -28,6 +28,10 @@ office document to PDF. It can be used by web applications
to create preview of office documents
%changelog
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.2.1-1
- Update dependencies and startup script for LibreOffice
- support x86_64
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.2.0-1
- Import in GIT