-# TODO:
-# - patch for s#/usr/local#/usr# in povray.ini
#
# Conditional build:
%bcond_without x # - without X11 subpackage
Summary(pl): Persistence of Vision Ray Tracer
Name: povray
Version: 3.6.1
-Release: 0.1
+Release: 1
Epoch: 1
License: distributable
Group: Applications/Graphics
Patch2: %{name}-X-libs.patch
Patch3: %{name}-lib64.patch
Patch4: %{name}-no_svgalib.patch
+Patch5: %{name}-m4.patch
URL: http://www.povray.org/
BuildRequires: autoconf
BuildRequires: automake
%if !%{with svga}
##%patch4 -p1
%endif
+%patch5 -p1
%build
%{__aclocal}
%{__autoconf}
%{__automake}
-COMPILED_BY="xx";export COMPILED_BY;
+COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
%if %{with x} && %{with pvm}
%configure \
--libdir=%{_datadir} \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin} \
- $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin}
+%if %{with pvm}
+install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
+%endif
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT