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 Summary: Persistence of Vision Ray Tracer
9 Summary(pl.UTF-8): Persistence of Vision Ray Tracer
15 Group: Applications/Graphics
16 Source0: https://github.com/POV-Ray/povray/archive/v%{version}-%{beta}/%{name}-%{version}-%{beta}.tar.gz
17 # Source0-md5: eeff460742acdaa84ebbc7e7e5135981
18 URL: http://www.povray.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: libjpeg-devel
22 BuildRequires: libpng-devel >= 1.4.0
23 BuildRequires: libstdc++-devel
24 BuildRequires: libtiff-devel
25 %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24}
26 %{?with_svga:BuildRequires: svgalib-devel}
27 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
28 BuildRequires: zlib-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _pvmarch %(/usr/bin/pvmgetarch)
33 %define _pvmroot /usr/%{_lib}/pvm3
37 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
38 photo-realistic images using a rendering technique called ray-tracing.
39 It reads in a text file containing information describing the objects
40 and lighting in a scene and generates an image of that scene from the
41 view point of a camera also described in the text file. Ray-tracing is
42 not a fast process by any means, but it produces very high quality
43 images with realistic reflections, shading, perspective and other
46 %description -l pl.UTF-8
47 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
48 fotorealistyczne obrazy za pomocą techniki renderingu zwanej
49 ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
50 obiekty oraz światło przedstawianego świata, a następnie generuje
51 rysunek z punktu widzenia kamery, która także jest definiowana w w/w
52 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
53 ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
54 efektami, tj. odbicia światła, cienie, perspektywa i inne.
57 Summary: X Window povray executable
58 Summary(pl.UTF-8): povray pod X Window
59 Group: Applications/Graphics
60 Requires: %{name} = %{epoch}:%{version}-%{release}
63 The Persistence of Vision(tm) Ray-Tracer X Window executable.
65 %description X11 -l pl.UTF-8
66 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
70 Summary: PVM/Unix povray executable
71 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
72 Group: Applications/Graphics
73 Requires: %{name} = %{epoch}:%{version}-%{release}
76 The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
78 %description pvm -l pl.UTF-8
79 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
83 Summary: PVM/xwin povray executable
84 Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
85 Group: Applications/Graphics
86 Requires: %{name} = %{epoch}:%{version}-%{release}
89 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
91 %description pvm-X11 -l pl.UTF-8
92 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
96 %setup -q -n %{name}-%{version}-%{beta}
103 COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
104 %if %{with x} && %{with pvm}
106 --libdir=%{_datadir} \
108 --with-pvm-arch=%{_pvmarch} \
109 --with-pvm-libs=%{_libdir}
111 install unix/povray x-pvmpov
118 --libdir=%{_datadir} \
120 --with-pvm-arch=%{_pvmarch} \
121 --with-pvm-libs=%{_libdir} \
124 install unix/povray pvmpov
131 install unix/povray x-povray
136 --libdir=%{_datadir} \
141 rm -rf $RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
144 install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
148 INSTALL="install -c -D" \
150 DESTDIR=$RPM_BUILD_ROOT
153 install x-povray $RPM_BUILD_ROOT%{_bindir}
156 %if %{with x} && %{with pvm}
157 install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
158 ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
162 install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
163 ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
166 ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
167 ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
170 rm -rf $RPM_BUILD_ROOT
173 %defattr(644,root,root,755)
174 %doc AUTHORS ChangeLog NEWS README* changes.txt
175 %attr(755,root,root) %{_bindir}/povray
179 %dir %{_sysconfdir}/povray
180 %dir %{_sysconfdir}/povray/3.7
181 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
182 ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_bindir}/x-povray
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
194 %attr(755,root,root) %{_bindir}/pvmpov
197 %if %{with pvm} && %{with x}
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
201 %attr(755,root,root) %{_bindir}/x-pvmpov