Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37572708
en ru br
ALT Linux repos
5.0: 3.0.1.3-alt3
4.1: 3.0.0.10-alt1.M41.1
4.0: 2.4.1.7-alt0.M40.1
3.0: 1.1.5-alt1

Group :: Office
RPM: openoffice.org

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ooobuild ooo-build
%define ooover 3.0.0.10
%define oootag ooo300-m9
%define ooodir openoffice.org
%define ooobuilddir %ooobuild-%ooover/build/%oootag
%define src_url http://download.go-oo.org

%define with_lang ru de fr uk pt-BR

%def_enable smp_build

Name: openoffice.org
Version: 3.0.0.10
Release: alt1.M41.1
Summary: OpenOffice.org office suite
License: LGPL
Group: Office
URL: http://go-oo.org/

Packager: Valery Inozemtsev <shrek at altlinux.ru>

Provides: openoffice.org2
Obsoletes: openoffice.org2 < %version-%release
Requires: java hunspell-en hyphen-en mythes-en

Requires: gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-ffmpeg

Source0: %src_url/OOO300/ooo-build-%ooover.tar.gz
Source1000: %src_url/OOO300/%oootag-artwork.tar.bz2
Source1001: %src_url/OOO300/%oootag-base.tar.bz2
Source1002: %src_url/OOO300/%oootag-bootstrap.tar.bz2
Source1003: %src_url/OOO300/%oootag-calc.tar.bz2
Source1004: %src_url/OOO300/%oootag-components.tar.bz2
Source1005: %src_url/OOO300/%oootag-filters.tar.bz2
Source1006: %src_url/OOO300/%oootag-impress.tar.bz2
Source1007: %src_url/OOO300/%oootag-l10n.tar.bz2
Source1008: %src_url/OOO300/%oootag-libs_core.tar.bz2
Source1009: %src_url/OOO300/%oootag-libs_extern_sys.tar.bz2
Source1010: %src_url/OOO300/%oootag-libs_extern.tar.bz2
Source1011: %src_url/OOO300/%oootag-libs_gui.tar.bz2
Source1012: %src_url/OOO300/%oootag-postprocess.tar.bz2
Source1013: %src_url/OOO300/%oootag-sdk.tar.bz2
Source1014: %src_url/OOO300/%oootag-extensions.tar.bz2
Source1015: %src_url/OOO300/%oootag-testing.tar.bz2
Source1016: %src_url/OOO300/%oootag-ure.tar.bz2
Source1017: %src_url/OOO300/%oootag-writer.tar.bz2
Source1018: %src_url/DEV300/scsolver.2008-10-30.tar.bz2
Source1019: %src_url/SRC680/libwps-0.1.2.tar.gz
Source1020: %src_url/SRC680/cairo-1.4.10.tar.gz
Source1021: %src_url/SRC680/biblio.tar.bz2
Source1022: %src_url/SRC680/extras-3.tar.bz2
Source1023: %src_url/SRC680/mdbtools-0.6pre1.tar.gz

Source1: soffice3.sh
Source2: %name.config
Source3: ooo-wrappers.tar.bz2
Source5: ooo-tango-icons.tar.bz2
Source6: ooo-freedesktop-menu.tar.bz2
Source7: ooo-tango-apps-res.tar.bz2
Source8: ooo-kde-templates.tar.bz2

Source10: ooointro.bmp

Source302: ooo-mimelnk-application.tar.bz2

Source500: extras_ru.tar.bz2
Source501: extras-templates.tar.bz2

Patch0: ooo-build-3.0.0.9-altlinux.diff

Patch10: openoffice.org-2.4.0.7-alt-gstreamer-url-syslocale.patch
Patch11: openoffice.org-2.4.0-alt15443-sc-crach.patch
Patch12: openoffice.org-2.4.0-alt-pyuno-link.patch
Patch13: openoffice.org-2.4.0-alt-kab-i18n.patch
Patch14: openoffice.org-2.3.0-alt-helpcontent2-default-css.patch
Patch15: openoffice.org-2.3.1.1-alt-helpcontent2-default-css.patch

Patch20: openoffice.org-3.0.0-alt-env-i-ant.patch
Patch21: openoffice.org-3.0.0-alt-sysuserconfigdir.patch
Patch22: openoffice.org-3.0.0-alt-tango-default.patch
Patch23: openoffice.org-3.0.0-alt-apache-commons.patch
Patch24: openoffice.org-3.0.0-alt-disable-old-excel-word.patch

Patch100: openoffice.org-2.4.0-infra-395-basic-environ.diff
Patch101: openoffice.org-2.4.0-infra-396-basic-curdir.diff

Patch500: openoffice.org-2.4.0-infra-397-sc_source_filter_excel_excel.diff
Patch501: openoffice.org-2.4.0-infra-398-sc_source_filter_excel_xistream.diff
Patch502: openoffice.org-2.4.0-infra-401-sw_source_filter_ww1_fltshell_cxx.diff
Patch503: openoffice.org-2.4.0-infra-402-sw_source_filter_ww1_w1class_cxx.diff
Patch504: openoffice.org-2.4.0-infra-403-sw_source_filter_ww1_w1filter.diff
Patch505: openoffice.org-2.4.0-infra-404-sw_source_filter_ww8_writerwordglue.diff
Patch506: openoffice.org-2.4.0-infra-407-sw_source_filter_ww8_wrtw8sty.diff
Patch507: openoffice.org-2.4.0-infra-408-sw_source_filter_ww8_wrtww8.diff
Patch508: openoffice.org-2.4.0-infra-409-sw_source_filter_ww8_wrtww8gr.diff
Patch509: openoffice.org-2.4.0-infra-410-sw_source_filter_ww8_ww8atr.diff
Patch510: openoffice.org-2.4.0-infra-411-sw_source_filter_ww8_ww8par5_cxx.diff
Patch511: openoffice.org-2.4.0-infra-412-sw_source_filter_ww8_ww8par6.diff
Patch512: openoffice.org-2.4.0-infra-413-sw_source_filter_ww8_ww8par_cxx.diff
Patch513: openoffice.org-2.4.0-infra-415-vcl_inc_vcl_settings.diff
Patch514: openoffice.org-2.4.0-infra-416-vcl_source_app_settings.diff
Patch515: openoffice.org-2.4.0-infra-417-sc_source_filter_excel_xistyle_cxx.diff
Patch516: openoffice.org-2.4.0-infra-418-dde-encoding.diff
Patch518: openoffice.org-3.0.0-infra-400-sw_source_filter_rtf_rtffld.diff
Patch519: openoffice.org-3.0.0-infra-405-sw_source_filter_ww8_wrtw8nds.diff
Patch520: openoffice.org-3.0.0-infra-406-sw_source_filter_ww8_wrtw8num.diff
Patch521: openoffice.org-3.0.0-infra-414-sw_source_filter_ww8_ww8scan.diff

Patch600: openoffice.org-3.0.0-alt-sw_source_filter_ww8_dump.diff
Patch601: ooo-build-3.0.0.8-alt-layout.patch

AutoReqProv: yes, noshell, nopython

BuildRequires: /proc wget
BuildRequires: java-devel >= 1.6.0 libdbus-glib-devel gst-plugins-devel postgresql-devel libsvg-devel libncursesw-devel
BuildRequires: ant boost-devel flex gcc-c++ gperf fontconfig-devel libfreetype-devel libcups-devel libGConf-devel
BuildRequires: libicu-devel libcurl-devel libexpat-devel libgtk+2-devel libjpeg-devel libneon-devel libpam0-devel
BuildRequires: libpng-devel libsane-devel libreadline-devel libwpd-devel libxslt-devel libxml2-devel libgio-devel
BuildRequires: perl-Archive-Zip perl-libnet python-dev tcsh unzip xorg-x11-devel libbonobo-devel zip zlib-devel kdelibs-devel
BuildRequires: libqt3-devel xsltproc firefox-devel libldap-devel libunixODBC-devel libdb4-devel libdb4_cxx-devel libpoppler-devel
BuildRequires: libssl-devel libnss-devel libnspr-devel libhunspell-devel libhyphen-devel libwpg-devel
#libxmlsec1-nss-devel

%description
OpenOffice.org office suite

%package kde
Summary: KDE Extensions for OpenOffice.org
Group: Office
Requires: %name = %version-%release
Provides: openoffice.org2-kde
Obsoletes: openoffice.org2-kde < %version-%release

%description kde
This pakage contains some KDE extensions for OpenOffice.org

%package gnome
Summary: GNOME Extensions for OpenOffice.org
Group: Office
Requires: %name = %version-%release
Provides: openoffice.org2-gnome
Obsoletes: openoffice.org2-gnome < %version-%release

%description gnome
This package contains some GNOME extensions for OpenOffice.org

%package langpack-ru
Summary: Language-specific files, Russian
Group: Office
Requires: %name = %version-%release hunspell-ru hyphen-ru mythes-ru
Provides: %name-ru = %version-%release
Obsoletes: %name-ru
Provides: openoffice.org2-langpack-ru
Obsoletes: openoffice.org2-langpack-ru < %version-%release

%description langpack-ru
OpenOffice.org language-specific files, Russian

%package langpack-de
Summary: Language-specific files, German
Group: Office
Requires: %name = %version-%release hunspell-de hyphen-de mythes-de
Provides: openoffice.org2-langpack-de
Obsoletes: openoffice.org2-langpack-de < %version-%release

%description langpack-de
OpenOffice.org language-specific files, German

%package langpack-fr
Summary: Language-specific files, French
Group: Office
Requires: %name = %version-%release hunspell-fr hyphen-fr mythes-fr
Provides: openoffice.org2-langpack-fr
Obsoletes: openoffice.org2-langpack-fr < %version-%release

%description langpack-fr
OpenOffice.org language-specific files, French

%package langpack-uk
Summary: Language-specific files, Ukrainian
Group: Office
Requires: %name-langpack-ru = %version-%release hunspell-uk hyphen-uk
Provides: openoffice.org2-langpack-uk
Obsoletes: openoffice.org2-langpack-uk < %version-%release

%description langpack-uk
OpenOffice.org language-specific files, Ukrainian

%package langpack-tt
Summary: Language-specific files, Tatarian
Group: Office
Requires: %name-langpack-ru = %version-%release hunspell-tt hyphen-tt

%description langpack-tt
OpenOffice.org language-specific files, Tatarian

%package langpack-pt-BR
Summary: Language-specific files, Brazil Portuguese
Group: Office
Requires: %name-langpack-ru = %version-%release hunspell-pt

%description langpack-pt-BR
OpenOffice.org language-specific files, Brazil Portuguese

%add_findprov_lib_path %_libdir/%ooodir/basis3.0/program %_libdir/%ooodir/ure/lib
%add_findreq_skiplist %_libdir/%ooodir/basis3.0/share/config/webcast/*
%set_verify_elf_method unresolved=relaxed

%undefine __libtoolize

%prep
%setup -q -n %ooobuild-%ooover

%patch0 -p1

mkdir m4
%autoreconf
./configure \
--with-distro=ALTLinux \
--disable-odk \
--disable-mono \
--with-system-libwpg \
--with-system-libwpd \
--with-lang="en-US %with_lang" \
--with-tag=%oootag \
--with-srcdir=%_sourcedir
#./download
%make

cd %_builddir/%ooobuilddir

%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p0
%patch14 -p0
%patch15 -p0

%patch20 -p1
%patch21 -p0
%patch22 -p1
%patch23 -p1
%patch24 -p0

%patch100 -p0
%patch101 -p0

%patch500 -p0
%patch501 -p0
%patch502 -p0
%patch503 -p0
%patch504 -p0
%patch505 -p0
%patch506 -p0
%patch507 -p0
%patch508 -p0
%patch509 -p0
%patch510 -p0
%patch511 -p0
%patch512 -p0
%patch513 -p0
%patch514 -p0
%patch515 -p0
%patch516 -p0
%patch518 -p0
%patch519 -p0
%patch520 -p0
%patch521 -p0

%patch600 -p0
%patch601 -p0

tar -xjf %SOURCE5 -C sysui/desktop/icons/
tar -xjf %SOURCE7 -C ooo_custom_images/tango/

tar -xjf %SOURCE500
tar -xjf %SOURCE501

# optlevel

subst "s|^\(LINKFLAGSOPTIMIZE\*\=\).*|\1-Wl,-Os|" solenv/inc/unxlng*.mk
# gcc4.1
subst "s|^\(LINKFLAGSDEFS\*=\).*|\1|" solenv/inc/unxlng*.mk

# localize prepare

find -name localize.sdf -exec chmod +w {} \;

%build
%define _optlevel s
cd %_builddir/%ooobuilddir/config_office
autoconf
%configure \
--with-vendor="ALT Linux Team" \
--disable-epm \
--disable-odk \
--disable-qadevooo \
--disable-fontooo \
--disable-mono \
--disable-gnome-vfs \
--without-fonts \
--without-afms \
--without-agfa-monotype-fonts \
--without-agg \
--without-myspell-dicts \
--enable-kde \
--enable-vba \
--enable-evolution2 \
--enable-lockdown \
--enable-opengl \
--enable-ogltrans \
--enable-dbus \
--enable-pam-link \
--enable-xrender-link \
--enable-cairo \
--enable-scsolver \
--enable-gio \
--enable-wiki-publisher \
--enable-pdfimport \
--enable-report-builder \
--with-alloc=system \
--with-vba-package-format="builtin" \
--with-openldap \
--with-system-mozilla=mozilla \
--with-system-db \
--with-system-stdlibs \
--with-system-zlib \
--with-system-jpeg \
--with-system-expat \
--with-system-libwpd \
--with-system_libwpg \
--with-system-libxml \
--with-system-python \
--with-system-libxslt \
--with-system-curl \
--with-system-boost \
--with-system-neon \
--with-system-icu \
--with-system-cairo \
--with-system-openssl \
--with-system-hunspell \
--with-system-poppler \
--with-system-sane-headers \
--with-system-xrender-headers \
--with-system-odbc-headers \
--with-system-mesa-headers \
--with-ant-home=%_datadir/java/ant \
--with-intro-bitmaps=%SOURCE10 \
--with-system-dicts \
--with-external-dict-dir=%_datadir/myspell \
--with-external-hyph-dir=%_datadir/hyphen \
--with-external-thes-dir=%_datadir/mythes \
--with-lang="en-US %with_lang"
cd ..

./bootstrap
source Linux*Env.Set.sh
unset DEFAULT_TO_ENGLISH_FOR_PACKING

%if_enabled smp_build
SMP_MFLAGS=%_smp_mflags
if [ -n "$SMP_MFLAGS" ]; then
SMP_MFLAGS=-P$[${SMP_MFLAGS/-j/}]
else
SMP_MFLAGS=""
fi

cd transex3/prj
if ! build --dlv_switch -link --all $SMP_MFLAGS -- $SMP_MFLAGS -s; then
build --dlv_switch -link --all
fi
deliver -link

for l in %with_lang; do
localize -m -x -l $l -f %_builddir/%ooobuild-%ooover/po/ooo-build-$l.sdf
done

cd ../../instsetoo_native/util
if ! build --dlv_switch -link --all $SMP_MFLAGS -- $SMP_MFLAGS -s; then
build --dlv_switch -link --all
fi
%else
dmake
%endif

%install
cd %_builddir/%ooobuilddir
source Linux*Env.Set.sh
unset DEFAULT_TO_ENGLISH_FOR_PACKING
cd %_builddir/%ooobuilddir/instsetoo_native/util
export PKGFORMATSWITCH="-format rpm -simple %buildroot%_libdir/%ooodir"
dmake openoffice_en-US

export LD_LIBRARY_PATH=%buildroot%_libdir/%ooodir/ure/lib:%buildroot%_libdir/%ooodir/basis3.0/program
%buildroot%_libdir/%ooodir/program/unopkg add --shared --log-file %_builddir/%ooobuilddir/unopkg.log \
%_builddir/%ooobuilddir/connectivity/$INPATH/lib/postgresql-sdbc-0.7.5.zip ||:
for f in `find %_builddir/%ooobuilddir/solver/ -name \*.oxt`; do
%buildroot%_libdir/%ooodir/program/unopkg add --shared --log-file %_builddir/%ooobuilddir/unopkg.log $f ||:
done

rm -f %buildroot%_libdir/%ooodir/share/extension/install/*.oxt
rm -f %buildroot%_libdir/%ooodir/share/xdg/extension.desktop

find %buildroot%_libdir/%ooodir -type d | sed "s,^,%dir ," > %_builddir/%ooobuilddir/openoffice.files
find %buildroot%_libdir/%ooodir -type f -o -type l | \
grep -v "share/psprint/driver\|cde\|kde\|kabd\|gtk\|gnome\|qstart\|gconf\|gvfs\|eggtray" >> %_builddir/%ooobuilddir/openoffice.files
subst "s|%buildroot||" %_builddir/%ooobuilddir/openoffice.files

# fixed uk_UA files

cd $SOLARVER/$INPATH/pck
for z in *_ru.zip; do
[ -f ${z/_ru.zip/_uk.zip} ] || cp $z ${z/_ru.zip/_uk.zip}
done

cd %_builddir/%ooobuilddir/instsetoo_native/util
for l in %with_lang; do
export PKGFORMATSWITCH="-format rpm -simple %buildroot%_libdir/%ooodir.$l"
dmake ooolanguagepack_$l
find %buildroot%_libdir/%ooodir.$l -type d | sed "s,^,%dir ," > %_builddir/%ooobuilddir/openoffice.$l.files
find %buildroot%_libdir/%ooodir.$l -type f -o -type l >> %_builddir/%ooobuilddir/openoffice.$l.files
cp -a %buildroot%_libdir/%ooodir.$l/* %buildroot%_libdir/%ooodir/
rm -fr %buildroot%_libdir/%ooodir.$l
subst "s,%buildroot%_libdir/%ooodir.$l,%_libdir/%ooodir," %_builddir/%ooobuilddir/openoffice.$l.files
done

# uk_UA help link to ru_RU

subst "/\/usr\/li.*\/%ooodir\/basis3.0\/help\/uk.*/d" %_builddir/%ooobuilddir/openoffice.uk.files
subst "/\/usr\/li.*\/%ooodir\/basis3.0\/presets\/config\/.*_ru\..*/d" %_builddir/%ooobuilddir/openoffice.uk.files
rm -fr %buildroot%_libdir/%ooodir/basis3.0/help/uk
ln -s ru %buildroot%_libdir/%ooodir/basis3.0/help/uk

find %_builddir/%ooobuilddir/sysui/desktop/icons/hicolor -depth -type d -name CVS -exec rm -rf {} \;
mkdir -p %buildroot%_iconsdir
cp -r %_builddir/%ooobuilddir/sysui/desktop/icons/hicolor %buildroot%_iconsdir/
for p in `find %buildroot%_iconsdir -name \*.png | grep apps`; do
mv $p ${p//apps\//apps\/ooo_}
done
find %buildroot%_iconsdir -type f -exec chmod 644 {} \;

tar -xjf %SOURCE3 -C %buildroot/
subst "s| at OOODIR at |%_libdir/%ooodir|" %buildroot%_bindir/oo*

tar -xjf %SOURCE6 -C %buildroot%_datadir/
subst "s| at OOODIR at |%_libdir/%ooodir|" %buildroot%_desktopdir/oo*

install -m755 %SOURCE1 %buildroot%_libdir/%ooodir/program/soffice
subst "s| at OOODIR at |%_libdir/%ooodir|" %buildroot%_libdir/%ooodir/program/soffice
install -pD -m644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name

rm -f %buildroot%_libdir/%ooodir/share/xdg/*.desktop
for f in %buildroot%_desktopdir/oo*.desktop; do
cp $f %buildroot%_libdir/%ooodir/share/xdg/${f//*oo/}
done
rm -f %buildroot%_desktopdir/ooprinteradmin.desktop

mkdir -p %buildroot%_datadir/mimelnk
tar -xjf %SOURCE302 -C %buildroot%_datadir/mimelnk/

mkdir -p %buildroot%_datadir/mime-info
install -m644  %_builddir/%ooobuilddir/sysui/$INPATH/misc/openoffice.org/openoffice.keys %buildroot%_datadir/mime-info/
subst 's|^\(.*icon_filename=\)openofficeorg3-\(.*\)|\1\2|' %buildroot%_datadir/mime-info/*.keys

tar -xjf %SOURCE8 -C %buildroot%_datadir/

unset RPM_PYTHON

%files -f %_builddir/%ooobuilddir/openoffice.files
%doc AUTHORS NEWS README TODO
%config(noreplace) %_sysconfdir/sysconfig/%name
%_bindir/oo*
%_libdir/%ooodir/basis3.0/share/psprint/driver/ADISTILL.PS
%_libdir/%ooodir/basis3.0/share/psprint/driver/SGENPRT.PS
%_desktopdir/*.desktop
%_iconsdir/hicolor/*/*/*.png
%_datadir/mime-info/*.keys

%files kde
%_libdir/%ooodir/program/kde*
%_libdir/%ooodir/basis3.0/program/kde*
%_libdir/%ooodir/basis3.0/program/libvclplug_kdel*.so
%_libdir/%ooodir/basis3.0/program/libkabdrv1.so
%_libdir/%ooodir/basis3.0/program/fps_kde.uno.so
%_datadir/mimelnk/application/*.desktop
%_datadir/templates/.source/*
%_datadir/templates/*.desktop

%files gnome
%_libdir/%ooodir/basis3.0/program/gnome*
%_libdir/%ooodir/basis3.0/program/fps_gnome.uno.so
%_libdir/%ooodir/basis3.0/program/gconfbe1.uno.so
%_libdir/%ooodir/basis3.0/program/libvclplug_gtkl*.so
%_libdir/%ooodir/basis3.0/program/libqstart_gtkl*.so
%_libdir/%ooodir/basis3.0/program/libeggtrayl*.so

%files langpack-ru -f %_builddir/%ooobuilddir/openoffice.ru.files

%files langpack-de -f %_builddir/%ooobuilddir/openoffice.de.files

%files langpack-fr -f %_builddir/%ooobuilddir/openoffice.fr.files

%files langpack-uk -f %_builddir/%ooobuilddir/openoffice.uk.files
%_libdir/%ooodir/basis3.0/help/uk

%files langpack-pt-BR -f %_builddir/%ooobuilddir/openoffice.pt-BR.files

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin