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 Patch0: %{name}-legal.patch
24 URL: http://www.povray.org/
25 BuildRequires: libjpeg-devel
26 BuildRequires: libpng-devel >= 1.0.8
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtiff-devel
29 BuildRequires: zlib-devel
30 %{!?_without_x:BuildRequires:XFree86-devel}
31 %{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _libdir %{_datadir}
35 %define _pvmarch %(/usr/bin/pvmgetarch)
36 %define _pvmroot /usr/lib/pvm3/
39 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
40 photo-realistic images using a rendering technique called ray-tracing.
41 It reads in a text file containing information describing the objects
42 and lighting in a scene and generates an image of that scene from the
43 view point of a camera also described in the text file. Ray-tracing is
44 not a fast process by any means, but it produces very high quality
45 images with realistic reflections, shading, perspective and other
49 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
50 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
51 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
52 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
53 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
54 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
55 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
56 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
59 Summary: X Window povray executable
60 Summary(pl): povray pod X Window
61 Group: Applications/Graphics
62 Requires: %{name} = %{version}
65 The Persistence of Vision(tm) Ray-Tracer X Window executable.
67 %description X11 -l pl
68 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
72 Summary: PVM/unix povray executable
73 Summary(pl): Plik wykonywalny povray dla PVM/unix
74 Group: Applications/Graphics
75 Requires: %{name} = %{version}
78 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
80 %description X11 -l pl
81 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
85 Summary: PVM/xwin povray executable
86 Summary(pl): Plik wykonywalny povray dla PVM/xwin
87 Group: Applications/Graphics
88 Requires: %{name} = %{version}
91 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
93 %description X11 -l pl
94 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
104 %if %{!?_without_pvm:%{!?_without_x:1}%{?_without_x:0}}%{?_without_pvm:0}
107 --with-pvm-arch=%{_pvmarch} \
108 --x-includes=%{_prefix}/X11R6/include \
109 --x-libraries=%{_prefix}/X11R6/lib
111 install src/povray x-pvmpov
114 %if %{!?_without_pvm:1}%{?_without_pvm:0}
119 --with-pvm-arch=%{_pvmarch} \
122 install src/povray pvmpov
125 %if %{!?_without_x:1}%{?_without_x:0}
127 --x-includes=%{_prefix}/X11R6/include \
128 --x-libraries=%{_prefix}/X11R6/lib
130 install src/povray x-povray
140 rm -rf $RPM_BUILD_ROOT
141 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_prefix}/X11R6/bin} \
142 $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
145 DESTDIR=$RPM_BUILD_ROOT
147 %if %{!?_without_x:1}%{?_without_x:0}
148 install x-povray $RPM_BUILD_ROOT%{_bindir}
151 %if %{!?_without_pvm:%{!?_without_x:1}%{?_without_x:0}}%{?_without_pvm:0}
152 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
153 ln -s %{_binir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
156 %if %{!?_without_pvm:1}%{?_without_pvm:0}
157 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
158 ln -s %{_binir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
161 install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
162 install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
163 ln -sf %{_sysconfdir}/povray.ini $RPM_BUILD_ROOT%{_datadir}/povray-3.5/povray.ini
166 rm -rf $RPM_BUILD_ROOT
169 %defattr(644,root,root,755)
170 %doc AUTHORS ChangeLog NEWS README* povlegal.doc *.txt doc/html
171 %attr(755,root,root) %{_bindir}/povray
174 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
176 %if %{!?_without_x:1}%{?_without_x:0}
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/x-povray
182 %if %{!?_without_pvm:1}%{?_without_pvm:0}
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
186 %attr(755,root,root) %{_bindir}/pvmpov
189 %if %{!?_without_pvm:%{!?_without_x:1}%{?_without_x:0}}%{?_without_pvm:0}
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
193 %attr(755,root,root) %{_bindir}/x-pvmpov