]>
Commit | Line | Data |
---|---|---|
8f6042bf | 1 | # |
bc24fd67 | 2 | # Conditional build: |
9efdfbd6 | 3 | %bcond_without x # - without X11 subpackage |
be0816cf | 4 | %bcond_with pvm # - with PVM support |
9efdfbd6 | 5 | %bcond_with svga # - with svgalib support (doesn't work on many platforms) |
8f6042bf | 6 | # |
399ba3af JR |
7 | %define _rc RC6 |
8 | %define _src_pov_ver 3.7.0.%{_rc} | |
21729b33 | 9 | |
520c1407 | 10 | Summary: Persistence of Vision Ray Tracer |
5c6661ca | 11 | Summary(pl.UTF-8): Persistence of Vision Ray Tracer |
520c1407 | 12 | Name: povray |
be0816cf | 13 | Version: 3.7.0 |
55c13066 | 14 | Release: 0.%{_rc}.2 |
e107cc8d | 15 | Epoch: 1 |
b1f11ee3 | 16 | License: distributable |
520c1407 | 17 | Group: Applications/Graphics |
be0816cf | 18 | #Source0: http://www.povray.org/ftp/pub/povray/Official/Unix/%{name}-%{_src_pov_ver}.tar.bz2 |
03671f69 | 19 | Source0: http://www.povray.org/redirect/www.povray.org/beta/source/%{name}-%{_src_pov_ver}.tar.gz |
399ba3af | 20 | # Source0-md5: e441015262acfa60949082dbc7995493 |
697b1b4f | 21 | # based on sources from CVS at http://pvmpov.sourceforge.net/ |
21729b33 | 22 | # Source0: %{name}-%{version}-%{snap}.tar.gz |
be0816cf | 23 | Source1: %{name}-ax_boost_base.m4 |
d0ba57a4 | 24 | Patch0: %{name}-nouserfiles.patch |
399ba3af | 25 | Patch1: boost-1.50.patch |
520c1407 | 26 | URL: http://www.povray.org/ |
ec73f680 JB |
27 | BuildRequires: autoconf |
28 | BuildRequires: automake | |
b7a98b2e | 29 | BuildRequires: libjpeg-devel |
f5608087 | 30 | BuildRequires: libpng-devel >= 1.4.0 |
b7a98b2e | 31 | BuildRequires: libstdc++-devel |
32 | BuildRequires: libtiff-devel | |
4094ca7d JK |
33 | %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24} |
34 | %{?with_svga:BuildRequires: svgalib-devel} | |
73c51aff | 35 | %{?with_x:BuildRequires: xorg-lib-libX11-devel} |
ec73f680 | 36 | BuildRequires: zlib-devel |
9416b15a | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4d562464 | 38 | |
d436f42a | 39 | %if %{with pvm} |
697b1b4f | 40 | %define _pvmarch %(/usr/bin/pvmgetarch) |
09c1e7ed | 41 | %define _pvmroot /usr/%{_lib}/pvm3 |
d436f42a | 42 | %endif |
a37cc0c6 | 43 | |
4d562464 | 44 | %description |
4d562464 | 45 | The Persistence of Vision(tm) Ray-Tracer creates three-dimensional, |
2702972f | 46 | photo-realistic images using a rendering technique called ray-tracing. |
47 | It reads in a text file containing information describing the objects | |
48 | and lighting in a scene and generates an image of that scene from the | |
49 | view point of a camera also described in the text file. Ray-tracing is | |
50 | not a fast process by any means, but it produces very high quality | |
51 | images with realistic reflections, shading, perspective and other | |
52 | effects. | |
4d562464 | 53 | |
2ea14a87 JR |
54 | %description -l pl.UTF-8 |
55 | Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe, | |
56 | fotorealistyczne obrazy za pomocą techniki renderingu zwanej | |
57 | ray-tracing. Program pobiera z pliku tekstowego informacje opisujące | |
58 | obiekty oraz światło przedstawianego świata, a następnie generuje | |
59 | rysunek z punktu widzenia kamery, która także jest definiowana w w/w | |
60 | pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów, | |
61 | ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi | |
62 | efektami, tj. odbicia światła, cienie, perspektywa i inne. | |
4d562464 | 63 | |
fceafdc6 | 64 | %package X11 |
41b49d87 | 65 | Summary: X Window povray executable |
5c6661ca | 66 | Summary(pl.UTF-8): povray pod X Window |
fceafdc6 | 67 | Group: Applications/Graphics |
38f80171 | 68 | Requires: %{name} = %{epoch}:%{version}-%{release} |
41b49d87 | 69 | |
70 | %description X11 | |
71 | The Persistence of Vision(tm) Ray-Tracer X Window executable. | |
caec2118 | 72 | |
2ea14a87 | 73 | %description X11 -l pl.UTF-8 |
8ecf04d1 | 74 | Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X |
75 | Window. | |
a37cc0c6 | 76 | |
a37cc0c6 | 77 | %package pvm |
3af417fe | 78 | Summary: PVM/Unix povray executable |
79 | Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix | |
a37cc0c6 | 80 | Group: Applications/Graphics |
38f80171 | 81 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a37cc0c6 AF |
82 | |
83 | %description pvm | |
3af417fe | 84 | The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable. |
a37cc0c6 | 85 | |
2ea14a87 | 86 | %description pvm -l pl.UTF-8 |
8ecf04d1 | 87 | Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla |
3af417fe | 88 | PVM/Unix. |
caec2118 | 89 | |
a37cc0c6 AF |
90 | %package pvm-X11 |
91 | Summary: PVM/xwin povray executable | |
5c6661ca | 92 | Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin |
a37cc0c6 | 93 | Group: Applications/Graphics |
38f80171 | 94 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a37cc0c6 AF |
95 | |
96 | %description pvm-X11 | |
97 | The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable. | |
caec2118 | 98 | |
2ea14a87 | 99 | %description pvm-X11 -l pl.UTF-8 |
8ecf04d1 | 100 | Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla |
101 | PVM/xwin. | |
fceafdc6 | 102 | |
4d562464 | 103 | %prep |
be0816cf AG |
104 | %setup -q -n %{name}-%{_src_pov_ver} |
105 | cp %{SOURCE1} unix/config/ax_boost_base.m4 | |
d0ba57a4 | 106 | %patch0 -p1 |
399ba3af | 107 | %patch1 -p1 |
4d562464 | 108 | |
109 | %build | |
2c916a3a | 110 | %{__aclocal} |
111 | %{__autoconf} | |
112 | %{__automake} | |
ea227ab9 | 113 | COMPILED_BY="PLD/Linux Team";export COMPILED_BY; |
09c1e7ed | 114 | %if %{with x} && %{with pvm} |
697b1b4f | 115 | %configure \ |
09c1e7ed | 116 | --libdir=%{_datadir} \ |
697b1b4f AF |
117 | --enable-pvm \ |
118 | --with-pvm-arch=%{_pvmarch} \ | |
e4be19f9 | 119 | --with-pvm-libs=%{_libdir} |
697b1b4f | 120 | %{__make} |
21729b33 | 121 | install unix/povray x-pvmpov |
697b1b4f AF |
122 | %endif |
123 | ||
09c1e7ed | 124 | %if %{with pvm} |
697b1b4f AF |
125 | %{__make} clean |
126 | ||
127 | %configure \ | |
09c1e7ed | 128 | --libdir=%{_datadir} \ |
697b1b4f AF |
129 | --enable-pvm \ |
130 | --with-pvm-arch=%{_pvmarch} \ | |
09c1e7ed | 131 | --with-pvm-libs=%{_libdir} \ |
697b1b4f AF |
132 | --without-x |
133 | %{__make} | |
21729b33 | 134 | install unix/povray pvmpov |
697b1b4f AF |
135 | %endif |
136 | ||
09c1e7ed | 137 | %if %{with x} |
b7a98b2e | 138 | %configure \ |
e4be19f9 | 139 | --libdir=%{_datadir} |
b7a98b2e | 140 | %{__make} |
21729b33 | 141 | install unix/povray x-povray |
b7a98b2e | 142 | %{__make} clean |
2c916a3a | 143 | %endif |
b7a98b2e | 144 | |
145 | %configure \ | |
09c1e7ed | 146 | --libdir=%{_datadir} \ |
b7a98b2e | 147 | --without-x |
148 | %{__make} | |
4d562464 | 149 | |
150 | %install | |
61158218 | 151 | rm -rf $RPM_BUILD_ROOT |
e4be19f9 | 152 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}} |
ea227ab9 AM |
153 | %if %{with pvm} |
154 | install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch} | |
155 | %endif | |
61158218 | 156 | |
e4be19f9 JR |
157 | %{__make} install \ |
158 | INSTALL="install -c -D" \ | |
159 | mkdir_p="mkdir -p" \ | |
b7a98b2e | 160 | DESTDIR=$RPM_BUILD_ROOT |
4d562464 | 161 | |
09c1e7ed | 162 | %if %{with x} |
a5a450ff | 163 | install x-povray $RPM_BUILD_ROOT%{_bindir} |
2c916a3a | 164 | %endif |
165 | ||
09c1e7ed | 166 | %if %{with x} && %{with pvm} |
a5a450ff | 167 | install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov |
09c1e7ed | 168 | ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov |
697b1b4f AF |
169 | %endif |
170 | ||
09c1e7ed | 171 | %if %{with pvm} |
a5a450ff | 172 | install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov |
09c1e7ed | 173 | ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov |
697b1b4f AF |
174 | %endif |
175 | ||
21729b33 | 176 | ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir} |
177 | ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
fceafdc6 | 178 | |
4d562464 | 179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
182 | %files | |
49c88a8f | 183 | %defattr(644,root,root,755) |
be0816cf | 184 | %doc AUTHORS ChangeLog NEWS README* changes.txt |
fceafdc6 | 185 | %attr(755,root,root) %{_bindir}/povray |
09c1e7ed | 186 | %{_datadir}/povray* |
21729b33 | 187 | %{_docdir}/povray* |
b7a98b2e | 188 | %{_mandir}/man?/* |
e11b17d4 | 189 | %dir %{_sysconfdir}/povray |
be0816cf AG |
190 | %dir %{_sysconfdir}/povray/3.7 |
191 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.* | |
21729b33 | 192 | ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.* |
fceafdc6 | 193 | |
09c1e7ed | 194 | %if %{with x} |
96df36ec | 195 | %files X11 |
2702972f | 196 | %defattr(644,root,root,755) |
a5a450ff | 197 | %attr(755,root,root) %{_bindir}/x-povray |
a37cc0c6 AF |
198 | %endif |
199 | ||
8f6042bf | 200 | %if %{with pvm} |
697b1b4f AF |
201 | %files pvm |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov | |
a5a450ff | 204 | %attr(755,root,root) %{_bindir}/pvmpov |
697b1b4f AF |
205 | %endif |
206 | ||
09c1e7ed | 207 | %if %{with pvm} && %{with x} |
697b1b4f AF |
208 | %files pvm-X11 |
209 | %defattr(644,root,root,755) | |
210 | %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov | |
a5a450ff | 211 | %attr(755,root,root) %{_bindir}/x-pvmpov |
697b1b4f | 212 | %endif |