4 # patch for s#/usr/local#/usr# in povray.ini
8 %bcond_without x # - without X11 subpackage
9 %bcond_with pvm # - with PVM support
10 %bcond_with svga # - with svgalib support (doesn't work on many platforms)
12 %define _src_pov_ver 3.6.1
14 Summary: Persistence of Vision Ray Tracer
15 Summary(pl): Persistence of Vision Ray Tracer
20 License: distributable
21 Group: Applications/Graphics
22 Source0: http://www.povray.org/ftp/pub/povray/Official/Unix/%{name}-%{_src_pov_ver}.tar.bz2
23 # Source0-md5: b5789bb7eeaed0809c5c82d0efda571d
24 # based on sources from CVS at http://pvmpov.sourceforge.net/
25 # Source0: %{name}-%{version}-%{snap}.tar.gz
26 Patch0: %{name}-legal.patch
27 Patch1: %{name}-64bit.patch
28 Patch2: %{name}-X-libs.patch
29 Patch3: %{name}-lib64.patch
30 Patch4: %{name}-no_svgalib.patch
31 URL: http://www.povray.org/
32 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
33 BuildRequires: autoconf
34 BuildRequires: automake
35 BuildRequires: libjpeg-devel
36 BuildRequires: libpng-devel >= 1.0.8
37 BuildRequires: libstdc++-devel
38 BuildRequires: libtiff-devel
39 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
40 %{?with_svga:BuildRequires: svgalib-devel}
41 BuildRequires: zlib-devel
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _pvmarch %(/usr/bin/pvmgetarch)
46 %define _pvmroot /usr/%{_lib}/pvm3
50 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
51 photo-realistic images using a rendering technique called ray-tracing.
52 It reads in a text file containing information describing the objects
53 and lighting in a scene and generates an image of that scene from the
54 view point of a camera also described in the text file. Ray-tracing is
55 not a fast process by any means, but it produces very high quality
56 images with realistic reflections, shading, perspective and other
60 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
61 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
62 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
63 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
64 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
65 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
66 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
67 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
70 Summary: X Window povray executable
71 Summary(pl): povray pod X Window
72 Group: Applications/Graphics
73 Requires: %{name} = %{version}
76 The Persistence of Vision(tm) Ray-Tracer X Window executable.
78 %description X11 -l pl
79 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
84 Summary: PVM/unix povray executable
85 Summary(pl): Plik wykonywalny povray dla PVM/unix
86 Group: Applications/Graphics
87 Requires: %{name} = %{version}
90 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
92 %description pvm -l pl
93 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
97 Summary: PVM/xwin povray executable
98 Summary(pl): Plik wykonywalny povray dla PVM/xwin
99 Group: Applications/Graphics
100 Requires: %{name} = %{version}
103 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
105 %description pvm-X11 -l pl
106 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
114 %if "%{_lib}" == "lib64"
125 COMPILED_BY="xx";export COMPILED_BY;
126 %if %{with x} && %{with pvm}
128 --libdir=%{_datadir} \
130 --with-pvm-arch=%{_pvmarch} \
131 --with-pvm-libs=%{_libdir} \
132 --x-includes=/usr/X11R6/include \
133 --x-libraries=/usr/X11R6/%{_lib}
135 install unix/povray x-pvmpov
142 --libdir=%{_datadir} \
144 --with-pvm-arch=%{_pvmarch} \
145 --with-pvm-libs=%{_libdir} \
148 install unix/povray pvmpov
153 --libdir=%{_datadir} \
154 --x-includes=/usr/X11R6/include \
155 --x-libraries=/usr/X11R6/%{_lib}
157 install unix/povray x-povray
162 --libdir=%{_datadir} \
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin} \
170 $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
173 DESTDIR=$RPM_BUILD_ROOT
176 install x-povray $RPM_BUILD_ROOT%{_bindir}
179 %if %{with x} && %{with pvm}
180 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
181 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
185 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
186 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
189 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
190 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
193 rm -rf $RPM_BUILD_ROOT
196 %defattr(644,root,root,755)
197 %doc AUTHORS ChangeLog NEWS README* doc/povlegal.doc doc/*.txt doc/html
198 %attr(755,root,root) %{_bindir}/povray
202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{_src_pov_ver}/povray.*
203 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_bindir}/x-povray
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
215 %attr(755,root,root) %{_bindir}/pvmpov
218 %if %{with pvm} && %{with x}
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
222 %attr(755,root,root) %{_bindir}/x-pvmpov