Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

HOWTO: Building OpenOffice.org RPM package for Single Local User

by Thomas Chung on Oct 09, 2004 (UPDATED 2004-12-31)

UPDATE 2004-12-31
Here is updated spec files for OpenOffice.org 1.1.4
Here is the tarball of OpenOffice.org 1.1.4

UPDATE 2004-10-13
Happy birthday OpenOffice.org! OpenOffice.org: Year 4.


OpenOffice.org is a free productivity suite compatible with all major office suites. It includes a word processor, a spreadsheet program, a presentation program, a drawing program and Database User Tools.

Why build a RPM package for Single Local User? Two reasons - One, you get the latest version of OpenOffice.org using the Official Installer from OpenOffice.org Project. Two, you don't have to wait for the several hours to build it from the source code. The best part is that you built it yourself without waiting and hoping for someone to build it for you.

In this article, I'll be using OpenOffice.org 1.1.3 Official Installer from OpenOffice.org Project on Fedora Core 1 as an example using a custom script to install Single Local User, which means it's not global network installer for all users.

First download following files:

- Official Installer : OOo_1.1.3_LinuxIntel_install.tar.gz
- Spec File: openoffice.org.spec
- Source 1 File: ooinstall
- Source 2 File: oo

BTW, The Official Installer is pre-compiled binary files so there is really nothing to setup and build using rpmbuild process.

Let's begin:
(Make sure you have created rpmbuild directory in your own home.)

[tchung@localhost openoffice.org]$ ls
oo  ooinstall  OOo_1.1.3_LinuxIntel_install.tar.gz  openoffice.org.spec
[tchung@localhost openoffice.org]$ cp oo ooinstall *.gz ~/rpmbuild/SOURCES/
[tchung@localhost openoffice.org]$ cp *.spec ~/rpmbuild/SPECS/
[tchung@localhost openoffice.org]$ rpmbuild -ba ~/rpmbuild/SPECS/openoffice.org.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.35557
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/openoffice.org-1.1.3-buildroot
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.35557
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY

.. omitted ..

+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: openoffice.org-1.1.3-0.FC1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/openoffice.org-1.1.3-buildroot
Wrote: /home/tchung/rpmbuild/SRPMS/openoffice.org-1.1.3-1.FC1.src.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/openoffice.org-1.1.3-1.FC1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.36127
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf /var/tmp/openoffice.org-1.1.3-buildroot
+ exit 0
[tchung@localhost openoffice.org]$

To install the RPM package,

[tchung@localhost openoffice.org]$ sudo rpm -Uvh /home/tchung/rpmbuild/RPMS/i386/openoffice.org-1.1.3-1.FC1.i386.rpm
Preparing...                ########################################### [100%]
   1:openoffice.org         ########################################### [100%]

Simply type "ooinstall" to install OpenOffice.org!

[tchung@localhost openoffice.org]$

Notice, there is a post install script message asking you to run "ooinstall" to install OpenOffie.org for Single Local User in your home directory.

[tchung@localhost openoffice.org]$ ooinstall

Installing OpenOffice.org 1.1.3..

Installation starting, please be patient ...
glibc version: 2.3.2

Initializing installation program..................

... omitted ...

Installation Completed
 
You may launch OpenOffice.org 1.1.3 from GNOME/Office menu.
 
[tchung@localhost openoffice.org]$

Here is the screenshot of GNOME/Office menu in FC1 once the installation has been completed.

You can also type a wrapper "oo" to see a list of program to launch directly:

[tchung@localhost openoffice.org]$ oo
USAGE:
oo [file|program]
         agenda
         calc
         draw
         fax
         impress
         jvmsetup
         label
         letter
         master
         math
         memo
         office
         padmin
         setup
         template
         vcard
         web
         writer
[tchung@localhost openoffice.org]$

RESOURCES:

- OpenOffice.org Announcement Archives
- OpenOffice.org 1.1 Flash Demo
- OpenOffice.org Documentation Project
- OpenOffice.org User Support/FAQ Project
- The OpenOffice.org Forum
- The OpenOffice.org Unofficial FAQ by Colin Charles
- http://www.oooauthors.org/FAQs


CHANGELOG
2004-10-10  Add command line wrapper in /usr/bin/oo (1.1.3-1.FC1)
2004-10-09  Initial RPM Build (1.1.3-0.FC1)

UPDATE 2004-10-11
Thanks to Paul Vandenberg, here is a Gnome/Office menu fix in FC2:
$ mkdir -p ~/.local/share/applications
$ cd ~/.gnome2/vfolders/applications
$ cp *.desktop ~/.local/share/applications
Now log out and log back in from Gnome session to see Gnome/Office menu in FC2

Here is the screenshot of GNOME/Office menu in FC2 with above fix.