%bcond_with pvm # - with PVM support
%bcond_with svga # - with svgalib support (doesn't work on many platforms)
#
+%define rel 2
%define beta beta.5
Summary: Persistence of Vision Ray Tracer
Summary(pl.UTF-8): Persistence of Vision Ray Tracer
Name: povray
Version: 3.7.1
-Release: 0.%{beta}.1
+Release: 0.%{beta}.%{rel}
Epoch: 1
License: AGPLv3+
Group: Applications/Graphics
Source0: https://github.com/POV-Ray/povray/archive/v%{version}-%{beta}/%{name}-%{version}-%{beta}.tar.gz
# Source0-md5: eeff460742acdaa84ebbc7e7e5135981
+Patch0: x32.patch
URL: http://www.povray.org/
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: boost-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel >= 1.4.0
BuildRequires: libstdc++-devel
%prep
%setup -q -n %{name}-%{version}-%{beta}
+%ifarch x32
+%patch0 -p1
+%endif
%build
cd unix
--- /dev/null
+--- povray-3.7.1-beta.5/unix/config/ax_boost_base.m4~ 2017-03-25 14:56:03.000000000 +0100
++++ povray-3.7.1-beta.5/unix/config/ax_boost_base.m4 2017-04-13 10:17:17.072940712 +0200
+@@ -93,7 +93,7 @@
+ ax_arch=`uname -m`
+ case $ax_arch in
+ x86_64|ppc64|s390x|sparc64|aarch64)
+- libsubdirs="lib64 lib lib64"
++ libsubdirs="libx32 lib64 lib lib64"
+ ;;
+ esac
+