LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-31-2013, 11:53 AM   #16
mattallmill
Member
 
Registered: Nov 2009
Location: 127.0.0.1
Distribution: Slackware
Posts: 151

Rep: Reputation: 18

kikinovak -

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.

Regards,

Matt
 
Old 07-31-2013, 11:57 AM   #17
sardinha
Member
 
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 43

Rep: Reputation: 9
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.

If you can't get help here, I suggest you to ask or search for help in openoffice forum: http://forum.openoffice.org/en/forum/viewforum.php?f=16
 
Old 08-04-2013, 07:01 AM   #18
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 71

Rep: Reputation: 6
Thank you (again) kikinovak

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.
 
Old 08-04-2013, 09:10 AM   #19
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,409

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
Glad I can help. If anyone finds out why the language packs don't work, I'd be very grateful.
 
Old 08-05-2013, 05:07 AM   #20
lopuh
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
Here we are. Works fine for me.

openoffice-langpack.SlackBuild
Code:
#!/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
 
2 members found this post helpful.
Old 08-05-2013, 10:33 AM   #21
sardinha
Member
 
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 43

Rep: Reputation: 9
kikinovak,

lopuh is right, I tested the script shown by him, and it's working here (x86_64 KDE Slackware Current).

Check out the differences in the code:
Code:
# diff -U 3 -dHrN -- openoffice-langpack.SlackBuild.orig openoffice-langpack.SlackBuild
--- openoffice-langpack.SlackBuild.orig 2013-07-29 09:56:26.000000000 +0100
+++ openoffice-langpack.SlackBuild      2013-08-05 16:28:56.435417527 +0100
@@ -24,9 +24,9 @@
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=openoffice-langpack
-VERSION=${VERSION:-4.0.0}       
+VERSION=${VERSION:-4.0.0}
 BUILD=${BUILD:-1}
-TAG=${TAG:-_microlinux}
+TAG=${TAG:-_microlinux}
 
 # Automatically determine the architecture we're building on:
 if [ -z "$ARCH" ]; then
@@ -39,13 +39,14 @@
 fi
 
 CWD=$(pwd)
-TMP=${TMP:-/tmp/microlinux}
+TMP=${TMP:-/tmp/microlinux}
 PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+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
 
@@ -68,11 +69,11 @@
 
 echo $TARNAME
 
-if [ ! -r $TARNAME ] ; then
-  wget -c http://$MIRROR/$VERSION/binaries/$OOLANG/$TARNAME
-fi
+#if [ ! -r $TARNAME ] ; then
+#  wget -c http://$MIRROR/$VERSION/binaries/$OOLANG/$TARNAME
+#fi
 
-md5sum -c $TARNAME.md5
+#md5sum -c $TARNAME.md5
 
 # Ignore this - it's just to get the toplevel directory name of the
 # extracted tarball archive
@@ -96,9 +97,13 @@
 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 share ; do
+for i in readmes ; do
   mv $PKG/opt/openoffice4/$i \
     $PKG/usr/doc/$PRGNAM-${VERSION}_${PKG_LANG}/$i ;
 done
@@ -107,12 +112,8 @@
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-chown -R root:root .
-find . -type d -exec chmod 755 {} \;
-chmod -R u+rw,go+r-w,a-s .
 /sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-${VERSION}_${PKG_LANG}-$ARCH-$BUILD$TAG.txz
 
 # Cleanup
-cd $TMP
-rm -rf $OOLANG $PKG
-
+#cd $TMP
+#rm -rf $OOLANG $PKG
 
1 members found this post helpful.
Old 08-06-2013, 12:25 AM   #22
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,409

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
That solved the problem! Thanks very much, folks!

Code:
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.

Last edited by kikinovak; 08-06-2013 at 12:28 AM.
 
1 members found this post helpful.
Old 10-22-2013, 05:05 AM   #23
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,409

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
Hello everybody,

I just uploaded packages for Apache Open Office 4.0.1 to my package repo.

http://www.microlinux.fr/slackware

You'll find them in the MLWS-* subdirectories. Take a peek in slackware{64}/xap.

So far I have language packs for french and german. If you need some other language, let me know.

Cheers,

Niki

Edit: I changed the naming schemes for the language packs. From now on, there will be no more conflicts if you install more than one language.

Some more edit: I tweaked the menu entries for better KDE integration. Xfce users will have to wait a bit for MLED-14.1 packages in the days to come.

Last edited by kikinovak; 10-22-2013 at 05:09 AM.
 
Old 10-22-2013, 06:55 AM   #24
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,631

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Not that it really matters but you could do 'bsdtar xf $FILE', instead of 'rpm2cpio < $FILE | cpio -imdv'.
 
Old 10-24-2013, 12:39 PM   #25
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 624

Rep: Reputation: 55
Are you able to install Open and Libre Office side by side? I have an issue with printing in Libre that i want to test in OO.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackpkg install-new / new pkgs in mirror / kdei pkgs ahlr Slackware 4 07-01-2013 04:33 AM
[SOLVED] slackpkg says no pkgs to update after installing 14.0, but there are pkgs in /patches integrale16 Slackware 5 02-26-2013 03:48 PM
[SOLVED] Where Are Yasts downloaded PKGS Kept browser Suse/Novell 2 02-08-2010 10:55 AM
Where Are The PKGS from Urpmi Kept browser Mandriva 3 11-22-2007 04:47 AM
Missing pkgs in testing Dasc Debian 3 11-24-2005 02:01 PM


All times are GMT -5. The time now is 11:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration