4 # patch for s#/usr/local#/usr# in povray.ini
9 # _without_x - without X11 subpackage
10 # _without_pvm - without PVM support
13 Summary: Persistence of Vision Ray Tracer
14 Summary(pl): Persistence of Vision Ray Tracer
18 License: distributable
19 Group: Applications/Graphics
20 #Source0: ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
21 # based on sources from CVS at http://pvmpov.sourceforge.net/
22 Source0: %{name}-%{version}-%{snap}.tar.gz
23 Source1: %{name}-%{version}.md5sum
24 Patch0: %{name}-legal.patch
25 Patch1: %{name}-types.patch
26 URL: http://www.povray.org/
27 BuildRequires: libjpeg-devel
28 BuildRequires: libpng-devel >= 1.0.8
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtiff-devel
31 BuildRequires: zlib-devel
32 %{!?_without_x:BuildRequires:XFree86-devel}
33 #%{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _libdir %{_datadir}
37 %define _pvmarch %(/usr/bin/pvmgetarch)
38 %define _pvmroot /usr/lib/pvm3/
41 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
42 photo-realistic images using a rendering technique called ray-tracing.
43 It reads in a text file containing information describing the objects
44 and lighting in a scene and generates an image of that scene from the
45 view point of a camera also described in the text file. Ray-tracing is
46 not a fast process by any means, but it produces very high quality
47 images with realistic reflections, shading, perspective and other
51 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
52 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
53 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
54 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
55 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
56 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
57 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
58 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
61 Summary: X Window povray executable
62 Summary(pl): povray pod X Window
63 Group: Applications/Graphics
64 Requires: %{name} = %{version}
67 The Persistence of Vision(tm) Ray-Tracer X Window executable.
69 %description X11 -l pl
70 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
74 Summary: PVM/unix povray executable
75 Summary(pl): Plik wykonywalny povray dla PVM/unix
76 Group: Applications/Graphics
77 Requires: %{name} = %{version}
80 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
82 %description X11 -l pl
83 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
87 Summary: PVM/xwin povray executable
88 Summary(pl): Plik wykonywalny povray dla PVM/xwin
89 Group: Applications/Graphics
90 Requires: %{name} = %{version}
93 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
95 %description X11 -l pl
96 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
101 #md5sum -c %{name}-%{version}.md5sum
113 %if %{!?_without_pvm:%{!?_without_x:1}%{?_without_x:0}}%{?_without_pvm:0}
116 --with-pvm-arch=%{_pvmarch} \
117 --x-includes=%{_prefix}/X11R6/include \
118 --x-libraries=%{_prefix}/X11R6/lib
120 install src/povray x-pvmpov
123 %if %{!?_without_pvm:1}%{?_without_pvm:0}
128 --with-pvm-arch=%{_pvmarch} \
131 install src/povray pvmpov
134 %if %{!?_without_x:1}%{?_without_x:0}
136 --x-includes=%{_prefix}/X11R6/include \
137 --x-libraries=%{_prefix}/X11R6/lib
139 install src/povray x-povray
149 rm -rf $RPM_BUILD_ROOT
150 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_prefix}/X11R6/bin} \
151 $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
154 DESTDIR=$RPM_BUILD_ROOT
156 %if %{!?_without_x:1}%{?_without_x:0}
157 install x-povray $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
160 %if %{!?_without_pvm:%{!?_without_x:1}%{?_without_x:0}}%{?_without_pvm:0}
161 install x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
164 %if %{!?_without_pvm:1}%{?_without_pvm:0}
165 install pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
168 install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
169 install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
170 ln -sf %{_sysconfdir}/povray.ini $RPM_BUILD_ROOT%{_datadir}/povray-3.5/povray.ini
173 rm -rf $RPM_BUILD_ROOT
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog NEWS README* povlegal.doc *.txt doc/html
178 %attr(755,root,root) %{_bindir}/povray
181 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
183 %if %{!?_without_x:1}%{?_without_x:0}
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_prefix}/X11R6/bin/x-povray
189 %if %{!?_without_pvm:1}%{?_without_pvm:0}
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
195 %if %{!?_without_pvm:%{!?_without_x:1}%{?_without_x:0}}%{?_without_pvm:0}
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov