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.7.0.RC5
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: http://www.povray.org/redirect/www.povray.org/beta/source/%{name}-%{_src_pov_ver}.tar.gz
19 # Source0-md5: d272acba3c4116796b061703c0cfa97d
20 # based on sources from CVS at http://pvmpov.sourceforge.net/
21 # Source0: %{name}-%{version}-%{snap}.tar.gz
22 Source1: %{name}-ax_boost_base.m4
23 Patch0: %{name}-nouserfiles.patch
24 URL: http://www.povray.org/
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: libjpeg-devel
28 BuildRequires: libpng-devel >= 1.4.0
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtiff-devel
31 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
32 %{?with_svga:BuildRequires: svgalib-devel}
33 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
34 BuildRequires: zlib-devel
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _pvmarch %(/usr/bin/pvmgetarch)
39 %define _pvmroot /usr/%{_lib}/pvm3
43 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
44 photo-realistic images using a rendering technique called ray-tracing.
45 It reads in a text file containing information describing the objects
46 and lighting in a scene and generates an image of that scene from the
47 view point of a camera also described in the text file. Ray-tracing is
48 not a fast process by any means, but it produces very high quality
49 images with realistic reflections, shading, perspective and other
52 %description -l pl.UTF-8
53 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
54 fotorealistyczne obrazy za pomocą techniki renderingu zwanej
55 ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
56 obiekty oraz światło przedstawianego świata, a następnie generuje
57 rysunek z punktu widzenia kamery, która także jest definiowana w w/w
58 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
59 ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
60 efektami, tj. odbicia światła, cienie, perspektywa i inne.
63 Summary: X Window povray executable
64 Summary(pl.UTF-8): povray pod X Window
65 Group: Applications/Graphics
66 Requires: %{name} = %{epoch}:%{version}-%{release}
69 The Persistence of Vision(tm) Ray-Tracer X Window executable.
71 %description X11 -l pl.UTF-8
72 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
76 Summary: PVM/Unix povray executable
77 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
78 Group: Applications/Graphics
79 Requires: %{name} = %{epoch}:%{version}-%{release}
82 The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
84 %description pvm -l pl.UTF-8
85 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
89 Summary: PVM/xwin povray executable
90 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
91 Group: Applications/Graphics
92 Requires: %{name} = %{epoch}:%{version}-%{release}
95 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
97 %description pvm-X11 -l pl.UTF-8
98 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
102 %setup -q -n %{name}-%{_src_pov_ver}
103 cp %{SOURCE1} unix/config/ax_boost_base.m4
110 COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
111 %if %{with x} && %{with pvm}
113 --libdir=%{_datadir} \
115 --with-pvm-arch=%{_pvmarch} \
116 --with-pvm-libs=%{_libdir} \
117 --x-includes=/usr/X11R6/include \
118 --x-libraries=/usr/X11R6/%{_lib}
120 install unix/povray x-pvmpov
127 --libdir=%{_datadir} \
129 --with-pvm-arch=%{_pvmarch} \
130 --with-pvm-libs=%{_libdir} \
133 install unix/povray pvmpov
138 --libdir=%{_datadir} \
139 --x-includes=/usr/X11R6/include \
140 --x-libraries=/usr/X11R6/%{_lib}
142 install unix/povray x-povray
147 --libdir=%{_datadir} \
153 rm -rf $RPM_BUILD_ROOT
154 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin}
156 install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
160 DESTDIR=$RPM_BUILD_ROOT
163 install x-povray $RPM_BUILD_ROOT%{_bindir}
166 %if %{with x} && %{with pvm}
167 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
168 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
172 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
173 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
176 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
177 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
180 rm -rf $RPM_BUILD_ROOT
183 %defattr(644,root,root,755)
184 %doc AUTHORS ChangeLog NEWS README* changes.txt
185 %attr(755,root,root) %{_bindir}/povray
189 %dir %{_sysconfdir}/povray
190 %dir %{_sysconfdir}/povray/3.7
191 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
192 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_bindir}/x-povray
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
204 %attr(755,root,root) %{_bindir}/pvmpov
207 %if %{with pvm} && %{with x}
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
211 %attr(755,root,root) %{_bindir}/x-pvmpov