3 # _with_ibm_java - uses IBM java instead SUN java
4 # _with_nest - build for nest envinronment
6 # _with_us - 01 US translation
7 # _with_pl - 48 PL translation
8 # _with_de - 49 DE translation
11 Summary: OpenOffice - powerful office suite
12 Summary(pl): OpenOffice - potê¿ny pakiet biurowy
18 Group: X11/Applications
19 #Source0: http://sf1.mirror.openoffice.org/%{version}/oo_%{version}_source.tar.bz2
20 Source0: http://sf1.mirror.openoffice.org/%{version}/OOo_%{version}_source.tar.bz2
21 Source1: ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc231.tar.Z
22 Source2: %{name}-db3.jar
23 Source3: %{name}-rsfile.txt
24 Source4: %{name}-xmlparse.sh
25 Patch0: %{name}-gcc.patch
26 Patch1: %{name}-db3.patch
27 Patch2: %{name}-mozilla.patch
28 Patch3: %{name}-nest.patch
29 Patch4: %{name}-perl.patch
30 # Start using some system libraries:
31 Patch5: %{name}-system-freetype.patch
32 Patch6: %{name}-system-getopt.patch
33 Patch7: %{name}-freetype-2.1.patch
34 # Fix broken makefiles
35 Patch8: %{name}-braindamage.patch
36 # Add jj patch for CLK_TCK -> CLOCKS_PER_SEC
37 Patch9: %{name}-clockspersec.patch
38 # Fix psprint /euro to /Euro
39 Patch10: %{name}-psprint-euro.patch
40 # Fix config_office/configure
41 Patch11: %{name}-ac.patch
42 # Hackery around zipdep
43 Patch12: %{name}-openoffice-zipdep.patch
44 # Remove GPC from linking to GPL/LGPL OO.o code!
45 Patch13: %{name}-remove-gpc.patch
46 Patch14: %{name}-fontcache-1.5.patch
47 URL: http://www.openoffice.org/
48 BuildRequires: STLport-static
49 BuildRequires: XFree86-devel
50 BuildRequires: XFree86-fonts-PEX
51 BuildRequires: XFree86-Xvfb
52 BuildRequires: db3-devel
53 BuildRequires: autoconf
54 BuildRequires: automake
57 BuildRequires: freetype-devel >= 2.1
58 BuildRequires: freetype-static
59 %{?!_with_nest:BuildRequires: gcc <= 3.0.0}
60 %{?_with_nest:BuildRequires: gcc2}
61 %{?!_with_nest:BuildRequires: gcc-c++ <= 3.0.0}
62 %{?_with_nest:BuildRequires: gcc2-c++}
63 %{?_with_ibm_java:BuildRequires: ibm-java-sdk}
64 %{?!_with_ibm_java:BuildRequires: jdk = 1.3.1_03}
65 %{?!_with_nest:BuildRequires: libstdc++-devel <= 3.0.0}
66 %{?_with_nest:BuildRequires: libstdc++2-devel}
67 BuildRequires: pam-devel
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 %define _prefix /usr/X11R6
77 OpenOffice.org is an open-source project sponsored by Sun Microsystems
78 and hosted by CollabNet. In October of 2000, Sun released the source
79 code of its popular StarOfficeTM productivity suite under open-source
80 licenses. The aim of the OpenOffice.org project is to create, using
81 open-source methods, the next generation of open-network productivity
82 services, including the establishment of open, XML-based standards for
83 office productivity file formats and language-independent bindings to
86 Features of OpenOffice.org include:
87 - Downloadable source code,
89 - Infrastructure for community involvement, including guidelines and
93 OpenOffice.org jest projektem open-source sponsorowanym przez Sun
94 Microsystems i przechowywanym przez CollabNet. W pa¼dzierniku 2000
95 roku Sun udostêpni³ kod ¼ród³owy popularnego pakietu biurowego
96 StarOfficeTM na zasadach licencji open-source. G³ównym celem
97 OpenOffice.org jest stworzenie sieciowego pakietu biurowego nastêpnej
98 generacji, wykorzystuj±c open-source'owe metody pracy.
100 Do zalet OpenOffice.org mo¿na zaliczyæ:
101 - dostêpny ca³y czas kod ¼ród³owy,
103 - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
106 %setup -q -n oo_1.0_src
110 %if%{?_with_nest:1}%{!?_with_nest:0}
125 install %{SOURCE1} external
126 cd external; tar fxz %{SOURCE1}; cp -fr gpc231/* gpc
132 %{?!_with_ibm_java:JAVA_HOME="/usr/lib/jdk1.3.1_03"}
133 %{?_with_ibm_java:JAVA_HOME="/usr/lib/IBMJava2-13"}
135 --with-jdk-home=$JAVA_HOME \
136 --with-stlport4-home=/usr \
149 install -d solver/641/unxlngi3.pro/bin
150 install %{SOURCE2} solver/641/unxlngi3.pro/bin/db.jar
154 source LinuxIntelEnv.Set
161 rm -rf $RPM_BUILD_ROOT
165 source LinuxIntelEnv.Set
174 while [ -f /tmp/.X$i-lock ]; do
178 /usr/X11R6/bin/Xvfb :$i &
182 # preparing to start installator
183 cp -f %{SOURCE3} $RPM_BUILD_DIR/oo_%{oo_ver}_src/install.rs.in
184 sed -e "s,@DESTDIR@,$RPM_BUILD_ROOT/usr/X11R6/lib/openoffice," \
185 -e "s,@LOGFILE@,$RPM_BUILD_DIR/oo_%{oo_ver}_src/install.log," \
186 install.rs.in > install.rs
188 # starting installator
189 %{?_with_us:DISPLAY=":$i" instsetoo/unxlngi3.pro/01/normal/setup -R:$RPM_BUILD_DIR/oo_%{oo_ver}_src/install.rs}
190 %{?_with_pl:DISPLAY=":$i" instsetoo/unxlngi3.pro/48/normal/setup -R:$RPM_BUILD_DIR/oo_%{oo_ver}_src/install.rs}
191 %{?_with_de:DISPLAY=":$i" instsetoo/unxlngi3.pro/49/normal/setup -R:$RPM_BUILD_DIR/oo_%{oo_ver}_src/install.rs}
197 rm -rf $RPM_BUILD_ROOT
200 %defattr(644,root,root,755)