2 # - patch for s#/usr/local#/usr# in povray.ini
5 %bcond_without x # - without X11 subpackage
6 %bcond_with pvm # - with PVM support
7 %bcond_with svga # - with svgalib support (doesn't work on many platforms)
9 %define _src_pov_ver 3.6.1
11 Summary: Persistence of Vision Ray Tracer
12 Summary(pl): Persistence of Vision Ray Tracer
17 License: distributable
18 Group: Applications/Graphics
19 Source0: http://www.povray.org/ftp/pub/povray/Official/Unix/%{name}-%{_src_pov_ver}.tar.bz2
20 # Source0-md5: b5789bb7eeaed0809c5c82d0efda571d
21 # based on sources from CVS at http://pvmpov.sourceforge.net/
22 # Source0: %{name}-%{version}-%{snap}.tar.gz
23 Patch0: %{name}-legal.patch
24 Patch1: %{name}-64bit.patch
25 Patch2: %{name}-X-libs.patch
26 Patch3: %{name}-lib64.patch
27 Patch4: %{name}-no_svgalib.patch
28 URL: http://www.povray.org/
29 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
30 BuildRequires: autoconf
31 BuildRequires: automake
32 BuildRequires: libjpeg-devel
33 BuildRequires: libpng-devel >= 1.0.8
34 BuildRequires: libstdc++-devel
35 BuildRequires: libtiff-devel
36 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
37 %{?with_svga:BuildRequires: svgalib-devel}
38 BuildRequires: zlib-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _pvmarch %(/usr/bin/pvmgetarch)
43 %define _pvmroot /usr/%{_lib}/pvm3
47 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
48 photo-realistic images using a rendering technique called ray-tracing.
49 It reads in a text file containing information describing the objects
50 and lighting in a scene and generates an image of that scene from the
51 view point of a camera also described in the text file. Ray-tracing is
52 not a fast process by any means, but it produces very high quality
53 images with realistic reflections, shading, perspective and other
57 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
58 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
59 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
60 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
61 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
62 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
63 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
64 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
67 Summary: X Window povray executable
68 Summary(pl): povray pod X Window
69 Group: Applications/Graphics
70 Requires: %{name} = %{version}
73 The Persistence of Vision(tm) Ray-Tracer X Window executable.
75 %description X11 -l pl
76 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
80 Summary: PVM/unix povray executable
81 Summary(pl): Plik wykonywalny povray dla PVM/unix
82 Group: Applications/Graphics
83 Requires: %{name} = %{version}
86 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
88 %description pvm -l pl
89 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
93 Summary: PVM/xwin povray executable
94 Summary(pl): Plik wykonywalny povray dla PVM/xwin
95 Group: Applications/Graphics
96 Requires: %{name} = %{version}
99 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
101 %description pvm-X11 -l pl
102 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
109 %if "%{_lib}" == "lib64"
120 COMPILED_BY="xx";export COMPILED_BY;
121 %if %{with x} && %{with pvm}
123 --libdir=%{_datadir} \
125 --with-pvm-arch=%{_pvmarch} \
126 --with-pvm-libs=%{_libdir} \
127 --x-includes=/usr/X11R6/include \
128 --x-libraries=/usr/X11R6/%{_lib}
130 install unix/povray x-pvmpov
137 --libdir=%{_datadir} \
139 --with-pvm-arch=%{_pvmarch} \
140 --with-pvm-libs=%{_libdir} \
143 install unix/povray pvmpov
148 --libdir=%{_datadir} \
149 --x-includes=/usr/X11R6/include \
150 --x-libraries=/usr/X11R6/%{_lib}
152 install unix/povray x-povray
157 --libdir=%{_datadir} \
163 rm -rf $RPM_BUILD_ROOT
164 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin} \
165 $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
168 DESTDIR=$RPM_BUILD_ROOT
171 install x-povray $RPM_BUILD_ROOT%{_bindir}
174 %if %{with x} && %{with pvm}
175 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
176 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
180 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
181 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
184 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
185 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
188 rm -rf $RPM_BUILD_ROOT
191 %defattr(644,root,root,755)
192 %doc AUTHORS ChangeLog NEWS README* doc/povlegal.doc doc/*.txt doc/html
193 %attr(755,root,root) %{_bindir}/povray
197 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{_src_pov_ver}/povray.*
198 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_bindir}/x-povray
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
210 %attr(755,root,root) %{_bindir}/pvmpov
213 %if %{with pvm} && %{with x}
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
217 %attr(755,root,root) %{_bindir}/x-pvmpov