+#
+# Conditional build:
+%bcond_with python23 # build for python 2.3
+
Summary: Multi-platform word processor
Summary(pl): Wieloplatformowy procesor tekstu
Name: abiword
Version: 2.0.14
-Release: 3
+Release: 4
Epoch: 1
License: GPL
Group: X11/Applications
Patch0: %{name}-desktop.patch
Patch1: %{name}-home_etc.patch
Patch2: %{name}-gucharmap.patch
+Patch3: %{name}-python24.patch
URL: http://www.abisource.com/
BuildRequires: ImageMagick-c++-devel >= 5.4.0
BuildRequires: aiksaurus-gtk-devel >= 1.0
BuildRequires: nautilus-devel >= 2.0
BuildRequires: ots-devel >= 0.4.1
BuildRequires: psiconv-devel
+%if %{with python23}
BuildRequires: python-devel >= 1:2.3
+BuildRequires: python-devel < 1:2.4
+%else
+BuildRequires: python-devel >= 1:2.4
+%endif
BuildRequires: wv-devel >= 1.0.0
BuildRequires: xft-devel >= 2.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%if %{without python23}
+%patch3 -p1
+%endif
%build
cd abi