# Conditional build:
%bcond_with java # Java support
+%bcond_with vfs # Enable GNOME VFS and Evolution 2 support
%define ver 1.1
%define rel 3
Summary(pl): OpenOffice - potê¿ny pakiet biurowy
Name: openoffice
Version: %{fullver}
-Release: 1
+Release: 1%{?with_vfs:vfs}
Epoch: 1
License: GPL/LGPL
Group: X11/Applications
Patch0: %{name}-rh-disable-spellcheck-all-langs.patch
# PLD-specific, they ooo-build people don't like it
Patch1: %{name}-files.patch
+# Enable VFS support during build
+Patch2: %{name}-vfs.patch
URL: http://www.openoffice.org/
BuildRequires: ImageMagick
BuildRequires: db-cxx-devel
BuildRequires: db-devel
BuildRequires: /usr/bin/getopt
+%if %{with vfs}
+BuildRequires: gnome-vfs2
+%endif
%if %{with java}
BuildRequires: db-java >= 4.2.52-4
BuildRequires: jar
%patch0 -p1
%patch1 -p1
+%if %{with vfs}
+%patch2 -p1
+%endif
+
install -d src
# sources, icons, KDE_icons
ln -sf %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} src