3 # _without_x - without X11 subpackage
4 # _without_pvm - [temporarily disabled by default] without PVM support
6 Summary: Persistence of Vision Ray Tracer
7 Summary(pl): Persistence of Vision Ray Tracer
11 License: distributable
12 Group: Applications/Graphics
13 Source0: ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
14 Patch0: %{name}-legal.patch
15 Patch1: %{name}-types.patch
16 # pvm support not yet available - http://pvmpov.sourceforge.net/
17 URL: http://www.povray.org/
18 BuildRequires: libjpeg-devel
19 BuildRequires: libpng-devel >= 1.0.8
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtiff-devel
22 BuildRequires: zlib-devel
23 %{!?_without_x:BuildRequires:XFree86-devel}
24 #%{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _libdir %{_datadir}
30 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
31 photo-realistic images using a rendering technique called ray-tracing.
32 It reads in a text file containing information describing the objects
33 and lighting in a scene and generates an image of that scene from the
34 view point of a camera also described in the text file. Ray-tracing is
35 not a fast process by any means, but it produces very high quality
36 images with realistic reflections, shading, perspective and other
40 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
41 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
42 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
43 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
44 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
45 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
46 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
47 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
50 Summary: X Window povray executable
51 Summary(pl): povray pod X Window
52 Group: Applications/Graphics
53 Requires: %{name} = %{version}
56 The Persistence of Vision(tm) Ray-Tracer X Window executable.
58 %description X11 -l pl
59 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
63 Summary: PVM/unix povray executable
64 Group: Applications/Graphics
65 Requires: %{name} = %{version}
68 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
70 %description X11 -l pl
71 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
75 Summary: PVM/xwin povray executable
76 Group: Applications/Graphics
77 Requires: %{name} = %{version}
80 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
82 %description X11 -l pl
83 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
93 --x-includes=%{_prefix}/X11R6/include \
94 --x-libraries=%{_prefix}/X11R6/lib
96 install src/povray x-povray
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_prefix}/X11R6/bin}
108 DESTDIR=$RPM_BUILD_ROOT
110 install x-povray $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
111 install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
112 ln -sf %{_sysconfdir}/povray.ini $RPM_BUILD_ROOT%{_datadir}/povray-*/povray.ini
115 rm -rf $RPM_BUILD_ROOT
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README* povlegal.doc *.txt doc/html
120 %attr(755,root,root) %{_bindir}/povray
123 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.ini
125 %if %{!?_without_x:1}%{?_without_x:0}
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_prefix}/X11R6/bin/x-povray
131 #%if %{!?_without_pvm:1}%{?_without_pvm:0}
133 #%defattr(644,root,root,755)
134 #%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/pvmpov
136 #%if %{!?_without_x:1}%{?_without_x:0}
138 #%defattr(644,root,root,755)
139 #%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/x-pvmpov