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 Summary: Persistence of Vision Ray Tracer
8 Summary(pl.UTF-8): Persistence of Vision Ray Tracer
13 License: distributable
14 Group: Applications/Graphics
15 Source0: https://github.com/POV-Ray/povray/archive/v%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: c9473256677808e9e3246e6eb8f69a75
17 Source1: %{name}-ax_boost_base.m4
18 Patch0: boost-1.50.patch
19 URL: http://www.povray.org/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: libjpeg-devel
23 BuildRequires: libpng-devel >= 1.4.0
24 BuildRequires: libstdc++-devel
25 BuildRequires: libtiff-devel
26 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
27 %{?with_svga:BuildRequires: svgalib-devel}
28 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
29 BuildRequires: zlib-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _pvmarch %(/usr/bin/pvmgetarch)
34 %define _pvmroot /usr/%{_lib}/pvm3
38 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
39 photo-realistic images using a rendering technique called ray-tracing.
40 It reads in a text file containing information describing the objects
41 and lighting in a scene and generates an image of that scene from the
42 view point of a camera also described in the text file. Ray-tracing is
43 not a fast process by any means, but it produces very high quality
44 images with realistic reflections, shading, perspective and other
47 %description -l pl.UTF-8
48 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
49 fotorealistyczne obrazy za pomocą techniki renderingu zwanej
50 ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
51 obiekty oraz światło przedstawianego świata, a następnie generuje
52 rysunek z punktu widzenia kamery, która także jest definiowana w w/w
53 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
54 ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
55 efektami, tj. odbicia światła, cienie, perspektywa i inne.
58 Summary: X Window povray executable
59 Summary(pl.UTF-8): povray pod X Window
60 Group: Applications/Graphics
61 Requires: %{name} = %{epoch}:%{version}-%{release}
64 The Persistence of Vision(tm) Ray-Tracer X Window executable.
66 %description X11 -l pl.UTF-8
67 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
71 Summary: PVM/Unix povray executable
72 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
73 Group: Applications/Graphics
74 Requires: %{name} = %{epoch}:%{version}-%{release}
77 The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
79 %description pvm -l pl.UTF-8
80 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
84 Summary: PVM/xwin povray executable
85 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
86 Group: Applications/Graphics
87 Requires: %{name} = %{epoch}:%{version}-%{release}
90 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
92 %description pvm-X11 -l pl.UTF-8
93 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
98 cp %{SOURCE1} unix/config/ax_boost_base.m4
107 COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
108 %if %{with x} && %{with pvm}
110 --libdir=%{_datadir} \
112 --with-pvm-arch=%{_pvmarch} \
113 --with-pvm-libs=%{_libdir}
115 install unix/povray x-pvmpov
122 --libdir=%{_datadir} \
124 --with-pvm-arch=%{_pvmarch} \
125 --with-pvm-libs=%{_libdir} \
128 install unix/povray pvmpov
135 install unix/povray x-povray
140 --libdir=%{_datadir} \
145 rm -rf $RPM_BUILD_ROOT
146 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
148 install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
152 INSTALL="install -c -D" \
154 DESTDIR=$RPM_BUILD_ROOT
157 install x-povray $RPM_BUILD_ROOT%{_bindir}
160 %if %{with x} && %{with pvm}
161 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
162 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
166 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
167 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
170 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
171 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
174 rm -rf $RPM_BUILD_ROOT
177 %defattr(644,root,root,755)
178 %doc AUTHORS ChangeLog NEWS README* changes.txt
179 %attr(755,root,root) %{_bindir}/povray
183 %dir %{_sysconfdir}/povray
184 %dir %{_sysconfdir}/povray/3.7
185 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
186 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_bindir}/x-povray
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
198 %attr(755,root,root) %{_bindir}/pvmpov
201 %if %{with pvm} && %{with x}
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
205 %attr(755,root,root) %{_bindir}/x-pvmpov