3 %bcond_without x # - without X11 subpackage
4 %bcond_with pvm # - with PVM support
5 %bcond_with svga # - with svgalib support (doesn't work on many platforms)
7 %define _src_pov_ver 3.6.1
9 Summary: Persistence of Vision Ray Tracer
10 Summary(pl.UTF-8): Persistence of Vision Ray Tracer
15 License: distributable
16 Group: Applications/Graphics
17 Source0: http://www.povray.org/ftp/pub/povray/Official/Unix/%{name}-%{_src_pov_ver}.tar.bz2
18 # Source0-md5: b5789bb7eeaed0809c5c82d0efda571d
19 # based on sources from CVS at http://pvmpov.sourceforge.net/
20 # Source0: %{name}-%{version}-%{snap}.tar.gz
21 Patch0: %{name}-legal.patch
22 Patch1: %{name}-64bit.patch
23 Patch2: %{name}-X-libs.patch
24 Patch3: %{name}-lib64.patch
25 Patch4: %{name}-no_svgalib.patch
26 Patch5: %{name}-m4.patch
27 Patch6: %{name}-png.patch
28 URL: http://www.povray.org/
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: libjpeg-devel
32 BuildRequires: libpng-devel >= 1.4.0
33 BuildRequires: libstdc++-devel
34 BuildRequires: libtiff-devel
35 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
36 %{?with_svga:BuildRequires: svgalib-devel}
37 %{?with_x:BuildRequires: xorg-lib-libX11-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
56 %description -l pl.UTF-8
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.UTF-8): povray pod X Window
69 Group: Applications/Graphics
70 Requires: %{name} = %{epoch}:%{version}-%{release}
73 The Persistence of Vision(tm) Ray-Tracer X Window executable.
75 %description X11 -l pl.UTF-8
76 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
80 Summary: PVM/Unix povray executable
81 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
82 Group: Applications/Graphics
83 Requires: %{name} = %{epoch}:%{version}-%{release}
86 The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
88 %description pvm -l pl.UTF-8
89 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
93 Summary: PVM/xwin povray executable
94 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
95 Group: Applications/Graphics
96 Requires: %{name} = %{epoch}:%{version}-%{release}
99 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
101 %description pvm-X11 -l pl.UTF-8
102 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
109 %if "%{_lib}" == "lib64"
122 COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
123 %if %{with x} && %{with pvm}
125 --libdir=%{_datadir} \
127 --with-pvm-arch=%{_pvmarch} \
128 --with-pvm-libs=%{_libdir} \
129 --x-includes=/usr/X11R6/include \
130 --x-libraries=/usr/X11R6/%{_lib}
132 install unix/povray x-pvmpov
139 --libdir=%{_datadir} \
141 --with-pvm-arch=%{_pvmarch} \
142 --with-pvm-libs=%{_libdir} \
145 install unix/povray pvmpov
150 --libdir=%{_datadir} \
151 --x-includes=/usr/X11R6/include \
152 --x-libraries=/usr/X11R6/%{_lib}
154 install unix/povray x-povray
159 --libdir=%{_datadir} \
165 rm -rf $RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin}
168 install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
172 DESTDIR=$RPM_BUILD_ROOT
175 install x-povray $RPM_BUILD_ROOT%{_bindir}
178 %if %{with x} && %{with pvm}
179 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
180 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
184 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
185 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
188 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
189 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
192 rm -rf $RPM_BUILD_ROOT
195 %defattr(644,root,root,755)
196 %doc AUTHORS ChangeLog NEWS README* doc/povlegal.doc doc/*.txt doc/html
197 %attr(755,root,root) %{_bindir}/povray
201 %dir %{_sysconfdir}/povray
202 %dir %{_sysconfdir}/povray/3.6
203 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.6/povray.*
204 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_bindir}/x-povray
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
216 %attr(755,root,root) %{_bindir}/pvmpov
219 %if %{with pvm} && %{with x}
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
223 %attr(755,root,root) %{_bindir}/x-pvmpov