File povray.spec of Package povray
#
# spec file for package povray (Version 3.6.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: povray
BuildRequires: gcc-c++ libpng-devel libtiff-devel xorg-x11-devel
License: POV-Ray License Agreement
Group: Productivity/Graphics/Visualization/Raytracers
AutoReqProv: on
Version: 3.6.1
Release: 181
Summary: Ray Tracer
Url: http://www.povray.org
Source: povray-3.6.tar.bz2
Patch1: povray-%{version}-ini.patch
Patch2: povray-%{version}-maxlib.patch
Patch3: povray-%{version}-fix.patch
Patch4: povray-%{version}-wronglibdetect.patch
Patch5: povray-%{version}-libpng14.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Persistence of Vision Ray tracer creates three-dimensional,
photo-realistic images using a rendering technique called ray tracing.
It reads in a text file containing information describing the objects
and lighting in a scene and generates an image of that scene from the
view point of a camera also described in the text file. Ray tracing is
not a fast process by any means, (the generation of a complex image can
take several hours) but it produces very high quality images with
realistic reflections, shading, perspective, and other effects.
Authors:
--------
Steve Anger <sanger@hookup.net>
Dieter Bayer <100255.3074@compuserve.com>
Chris Cason <Chris.Cason@oaks.com.au>
Andreas Dilger <adilger@enel.ucalgary.ca>
Alexander Enzmann <xander@mitre.com>
Dan Farmer <74431.1075@compuserve.com>
Lutz Kretzschmar <100023.2006@compuserve.com>
Mike Miller <70353.100@compuserve.com>
Joel NewKirk <102627.1152@compuserve.com>
Anton Raves <100022.2603@compuserve.com>
Tim Rowley <trowley@geom.umn.edu>
Eduard Schwan <71513.2161@compuserve.com>
Zsolt Szalavari <zsolt@cg.tuwien.ac.at>
Timothy Wegner <twegner@phoenix.net>
Chris Young <76702.1655@compuserve.com>
%prep
%setup -q
%patch1
%patch2
%patch3
%patch4
%patch5 -p1
rm -rf libraries
%build
autoreconf -fiv
%ifarch %arm
# work around ICE
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -O1"
%endif
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-multichar" CFLAGS="$CXXFLAGS"\
%configure COMPILED_BY="SUSE LINUX Products GmbH, Nuernberg, Germany" \
--disable-optimiz
make %{?jobs:-j %jobs}
perl -pi -e 's,^DEFAULT_DIR=.*,DEFAULT_DIR=/usr,' scripts/*
perl -pi -e 's,^SYSCONFDIR=.*,SYSCONFDIR=/etc,' scripts/*
%install
make DESTDIR=$RPM_BUILD_ROOT \
povdocdir=%{_defaultdocdir}/%{name} \
install
# htmldir=%{_defaultdocdir}/%{name}/html \
# imagesdir=%{_defaultdocdir}/%{name}/html/images \
# vfaqdir=%{_defaultdocdir}/%{name}/html/images/vfaq \
mkdir -p $RPM_BUILD_ROOT/etc
install -m 644 povray.conf $RPM_BUILD_ROOT/etc
%files
%defattr(-,root,root)
%config /etc/*
/usr/bin/povray
/usr/share/povray-3.6
%{_mandir}/man*/*
%doc %{_defaultdocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%changelog