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)
8 %define _src_pov_ver 3.7.0.%{_rc}
11 Summary: Persistence of Vision Ray Tracer
12 Summary(pl.UTF-8): Persistence of Vision Ray Tracer
15 Release: 0.%{_rc}.%{rel}
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: http://www.povray.org/redirect/www.povray.org/beta/source/%{name}-%{_src_pov_ver}.tar.bz2
21 # Source0-md5: 7d24ec051af67bcf040a898a267d920a
22 # based on sources from CVS at http://pvmpov.sourceforge.net/
23 # Source0: %{name}-%{version}-%{snap}.tar.gz
24 Source1: %{name}-ax_boost_base.m4
25 Patch0: %{name}-nouserfiles.patch
26 Patch1: boost-1.50.patch
27 URL: http://www.povray.org/
28 BuildRequires: autoconf
29 BuildRequires: automake
30 BuildRequires: libjpeg-devel
31 BuildRequires: libpng-devel >= 1.4.0
32 BuildRequires: libstdc++-devel
33 BuildRequires: libtiff-devel
34 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
35 %{?with_svga:BuildRequires: svgalib-devel}
36 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
37 BuildRequires: zlib-devel
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _pvmarch %(/usr/bin/pvmgetarch)
42 %define _pvmroot /usr/%{_lib}/pvm3
46 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
47 photo-realistic images using a rendering technique called ray-tracing.
48 It reads in a text file containing information describing the objects
49 and lighting in a scene and generates an image of that scene from the
50 view point of a camera also described in the text file. Ray-tracing is
51 not a fast process by any means, but it produces very high quality
52 images with realistic reflections, shading, perspective and other
55 %description -l pl.UTF-8
56 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
57 fotorealistyczne obrazy za pomocą techniki renderingu zwanej
58 ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
59 obiekty oraz światło przedstawianego świata, a następnie generuje
60 rysunek z punktu widzenia kamery, która także jest definiowana w w/w
61 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
62 ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
63 efektami, tj. odbicia światła, cienie, perspektywa i inne.
66 Summary: X Window povray executable
67 Summary(pl.UTF-8): povray pod X Window
68 Group: Applications/Graphics
69 Requires: %{name} = %{epoch}:%{version}-%{release}
72 The Persistence of Vision(tm) Ray-Tracer X Window executable.
74 %description X11 -l pl.UTF-8
75 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
79 Summary: PVM/Unix povray executable
80 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
81 Group: Applications/Graphics
82 Requires: %{name} = %{epoch}:%{version}-%{release}
85 The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
87 %description pvm -l pl.UTF-8
88 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
92 Summary: PVM/xwin povray executable
93 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
94 Group: Applications/Graphics
95 Requires: %{name} = %{epoch}:%{version}-%{release}
98 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
100 %description pvm-X11 -l pl.UTF-8
101 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
105 %setup -q -n %{name}-%{_src_pov_ver}
106 cp %{SOURCE1} unix/config/ax_boost_base.m4
114 COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
115 %if %{with x} && %{with pvm}
117 --libdir=%{_datadir} \
119 --with-pvm-arch=%{_pvmarch} \
120 --with-pvm-libs=%{_libdir}
122 install unix/povray x-pvmpov
129 --libdir=%{_datadir} \
131 --with-pvm-arch=%{_pvmarch} \
132 --with-pvm-libs=%{_libdir} \
135 install unix/povray pvmpov
142 install unix/povray x-povray
147 --libdir=%{_datadir} \
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
155 install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
159 INSTALL="install -c -D" \
161 DESTDIR=$RPM_BUILD_ROOT
164 install x-povray $RPM_BUILD_ROOT%{_bindir}
167 %if %{with x} && %{with pvm}
168 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
169 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
173 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
174 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
177 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
178 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
181 rm -rf $RPM_BUILD_ROOT
184 %defattr(644,root,root,755)
185 %doc AUTHORS ChangeLog NEWS README* changes.txt
186 %attr(755,root,root) %{_bindir}/povray
190 %dir %{_sysconfdir}/povray
191 %dir %{_sysconfdir}/povray/3.7
192 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
193 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/x-povray
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
205 %attr(755,root,root) %{_bindir}/pvmpov
208 %if %{with pvm} && %{with x}
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
212 %attr(755,root,root) %{_bindir}/x-pvmpov