Unofficial OpenOffice 4.0 slackware packages by kikinovak
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks, first of all, for putting up the Slackware package of Openoffice. I originally switched over to Libreoffice because of the Oracle ownership issues, and until yesterday hadn't bothered with reverting, assuming (which is often not a wise thing to do) that the developmental paths of both Libreoffice & Openoffice were the same. On a whim, I downloaded your package, uninstalled Libreoffice 3.6.7, and installed your package.
What a difference! I was planning on staying with the 3.6.x version because it was easy to set up a template,(Libreoffice 4.0.x totally changed the template settings, which I found perturbing) and have it used as a default. I have a Brother HL-2240, which is a Postscript printer, and both office packages treat it as a PDF, which is, of course, useless to me. Changing the printer settings counts as part of the template, and I took advantage of that to have Libreoffice (and now, Openoffice) open a session with the correct settings.
The sidebar is a smart addition; it makes many oft-used options (such as line spacing, which is important if one is typing college-level essays, which require double spacing) as easy as a click (or two) away. I don't have to do digging through menus as I did with Libreoffice to change one little setting.
Startup times are comparable, too. First-time startup is approximately 5 seconds; subsequent launches are almost immediate. Most impressive.
The short of it is that I think Openoffice 4.0.0, especially under the new management, will once again enjoy a home on my laptop. Thanks again for your work on packaging.
I tested langpack in kde envoriment with no success too, the same issue in language packs. Only the original install language appear in user interface in Tools > Options > Language Settings > Languages.
Sorry, after my tests I can't help you more in this language packs issue, as I told you before the only way I can get localized user interface was installed full package localized.
The SlackBuild worked beautifully for me. I had already downloaded the 64 bit rpm tarball and was wondering whether to extract and tediously convert each rpm (= stupid) until I stumbled upon this thread.
#!/bin/sh
# Slackware build script for openoffice-langpack
# Written by Niki Kovacs <info@microlinux.fr)
#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openoffice-langpack
VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_microlinux}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/microlinux}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# To build another language pack (like german for example) pass the according
# locale to the script: OOLANG=de ./openoffice-langpack.SlackBuild
OOLANG=${OOLANG:-fr}
PKG_LANG=${OOLANG//-/_} # Leave this alone
MIRROR=sourceforge.net/projects/openofficeorg.mirror/files
# Change source package name
if [ "$ARCH" = "x86_64" ]; then
SRCARCH="x86-64"
PKGARCH="$ARCH"
elif [ "$ARCH" = "arm" ]; then
printf "\n$ARCH is unsupported for OOo...\n\n"
exit 1
else
SRCARCH="x86"
PKGARCH="i586"
fi
set -e
# Building the final name.
TARNAME="Apache_OpenOffice_${VERSION}_Linux_${SRCARCH}_langpack-rpm_${OOLANG}.tar.gz"
echo $TARNAME
#if [ ! -r $TARNAME ] ; then
# wget -c http://$MIRROR/$VERSION/binaries/$OOLANG/$TARNAME
#fi
#md5sum -c $TARNAME.md5
# Ignore this - it's just to get the toplevel directory name of the
# extracted tarball archive
SOURCEDIR=$(tar tzf $CWD/$TARNAME 2>/dev/null | head -n 1 | tr -d \/)
# If the above operation failed for some reason, unset SOURCEDIR so that
# the "set -eu" below will cause us to bail out with an error
# Normally SOURCEDIR=en-US
[ -z $SOURCEDIR ] && unset SOURCEDIR
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$SOURCEDIR
# Extract tarball
tar xvf $CWD/$TARNAME -C $TMP
cd $TMP/$SOURCEDIR/RPMS
# Extract the files from the *.rpm
for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done
mv opt $PKG/
cd $PKG
chown -R root:root .
find . -type d -exec chmod 755 {} \;
chmod -R u+rw,go+r-w,a-s .
# Move docs to their correct locations
mkdir -p $PKG/usr/doc/$PRGNAM-${VERSION}_${PKG_LANG}
for i in readmes ; do
mv $PKG/opt/openoffice4/$i \
$PKG/usr/doc/$PRGNAM-${VERSION}_${PKG_LANG}/$i ;
done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-${VERSION}_${PKG_LANG}/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-${VERSION}_${PKG_LANG}-$ARCH-$BUILD$TAG.txz
# Cleanup
#cd $TMP
#rm -rf $OOLANG $PKG
Mon Aug 5 19:41:56 CEST 2013
testing/openoffice-4.0.0_en_US-i586-2_microlinux.txz: Added.
testing/openoffice-langpack-4.0.0_fr-i486-2_microlinux.txz: Added.
These packages work fine on Slackware 14.0. I put them in testing/ outside
the main repository to avoid a forced upgrade.
Special thanks to users lopuh and sardinha on LQ for their precious help with
the language pack.
+--------------------------+
I uploaded the corrected packages, and everything works fine now. By the way, I rebuilt the Open Office package and added a custom set of *.desktop files, since Open Office's vanilla desktop menu entries are particularly ugly and don't get the right icons when you're using a custom theme like Faenza. These custom menus work for english, french and german.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.