]>
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 | # |
03671f69 | 7 | %define _src_pov_ver 3.7.0.RC5 |
21729b33 | 8 | |
520c1407 | 9 | Summary: Persistence of Vision Ray Tracer |
5c6661ca | 10 | Summary(pl.UTF-8): Persistence of Vision Ray Tracer |
520c1407 | 11 | Name: povray |
be0816cf | 12 | Version: 3.7.0 |
e4be19f9 | 13 | Release: 0.RC5.3 |
e107cc8d | 14 | Epoch: 1 |
b1f11ee3 | 15 | License: distributable |
520c1407 | 16 | Group: Applications/Graphics |
be0816cf | 17 | #Source0: http://www.povray.org/ftp/pub/povray/Official/Unix/%{name}-%{_src_pov_ver}.tar.bz2 |
03671f69 JR |
18 | Source0: http://www.povray.org/redirect/www.povray.org/beta/source/%{name}-%{_src_pov_ver}.tar.gz |
19 | # Source0-md5: d272acba3c4116796b061703c0cfa97d | |
697b1b4f | 20 | # based on sources from CVS at http://pvmpov.sourceforge.net/ |
21729b33 | 21 | # Source0: %{name}-%{version}-%{snap}.tar.gz |
be0816cf | 22 | Source1: %{name}-ax_boost_base.m4 |
d0ba57a4 | 23 | Patch0: %{name}-nouserfiles.patch |
520c1407 | 24 | URL: http://www.povray.org/ |
ec73f680 JB |
25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
b7a98b2e | 27 | BuildRequires: libjpeg-devel |
f5608087 | 28 | BuildRequires: libpng-devel >= 1.4.0 |
b7a98b2e | 29 | BuildRequires: libstdc++-devel |
30 | BuildRequires: libtiff-devel | |
4094ca7d JK |
31 | %{?with_pvm:BuildRequires: pvm-devel >= 3.4.3-24} |
32 | %{?with_svga:BuildRequires: svgalib-devel} | |
73c51aff | 33 | %{?with_x:BuildRequires: xorg-lib-libX11-devel} |
ec73f680 | 34 | BuildRequires: zlib-devel |
9416b15a | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4d562464 | 36 | |
d436f42a | 37 | %if %{with pvm} |
697b1b4f | 38 | %define _pvmarch %(/usr/bin/pvmgetarch) |
09c1e7ed | 39 | %define _pvmroot /usr/%{_lib}/pvm3 |
d436f42a | 40 | %endif |
a37cc0c6 | 41 | |
4d562464 | 42 | %description |
4d562464 | 43 | The Persistence of Vision(tm) Ray-Tracer creates three-dimensional, |
2702972f | 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 | |
50 | effects. | |
4d562464 | 51 | |
2ea14a87 JR |
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. | |
4d562464 | 61 | |
fceafdc6 | 62 | %package X11 |
41b49d87 | 63 | Summary: X Window povray executable |
5c6661ca | 64 | Summary(pl.UTF-8): povray pod X Window |
fceafdc6 | 65 | Group: Applications/Graphics |
38f80171 | 66 | Requires: %{name} = %{epoch}:%{version}-%{release} |
41b49d87 | 67 | |
68 | %description X11 | |
69 | The Persistence of Vision(tm) Ray-Tracer X Window executable. | |
caec2118 | 70 | |
2ea14a87 | 71 | %description X11 -l pl.UTF-8 |
8ecf04d1 | 72 | Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X |
73 | Window. | |
a37cc0c6 | 74 | |
a37cc0c6 | 75 | %package pvm |
3af417fe | 76 | Summary: PVM/Unix povray executable |
77 | Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix | |
a37cc0c6 | 78 | Group: Applications/Graphics |
38f80171 | 79 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a37cc0c6 AF |
80 | |
81 | %description pvm | |
3af417fe | 82 | The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable. |
a37cc0c6 | 83 | |
2ea14a87 | 84 | %description pvm -l pl.UTF-8 |
8ecf04d1 | 85 | Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla |
3af417fe | 86 | PVM/Unix. |
caec2118 | 87 | |
a37cc0c6 AF |
88 | %package pvm-X11 |
89 | Summary: PVM/xwin povray executable | |
5c6661ca | 90 | Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin |
a37cc0c6 | 91 | Group: Applications/Graphics |
38f80171 | 92 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a37cc0c6 AF |
93 | |
94 | %description pvm-X11 | |
95 | The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable. | |
caec2118 | 96 | |
2ea14a87 | 97 | %description pvm-X11 -l pl.UTF-8 |
8ecf04d1 | 98 | Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla |
99 | PVM/xwin. | |
fceafdc6 | 100 | |
4d562464 | 101 | %prep |
be0816cf AG |
102 | %setup -q -n %{name}-%{_src_pov_ver} |
103 | cp %{SOURCE1} unix/config/ax_boost_base.m4 | |
d0ba57a4 | 104 | %patch0 -p1 |
4d562464 | 105 | |
106 | %build | |
2c916a3a | 107 | %{__aclocal} |
108 | %{__autoconf} | |
109 | %{__automake} | |
ea227ab9 | 110 | COMPILED_BY="PLD/Linux Team";export COMPILED_BY; |
09c1e7ed | 111 | %if %{with x} && %{with pvm} |
697b1b4f | 112 | %configure \ |
09c1e7ed | 113 | --libdir=%{_datadir} \ |
697b1b4f AF |
114 | --enable-pvm \ |
115 | --with-pvm-arch=%{_pvmarch} \ | |
e4be19f9 | 116 | --with-pvm-libs=%{_libdir} |
697b1b4f | 117 | %{__make} |
21729b33 | 118 | install unix/povray x-pvmpov |
697b1b4f AF |
119 | %endif |
120 | ||
09c1e7ed | 121 | %if %{with pvm} |
697b1b4f AF |
122 | %{__make} clean |
123 | ||
124 | %configure \ | |
09c1e7ed | 125 | --libdir=%{_datadir} \ |
697b1b4f AF |
126 | --enable-pvm \ |
127 | --with-pvm-arch=%{_pvmarch} \ | |
09c1e7ed | 128 | --with-pvm-libs=%{_libdir} \ |
697b1b4f AF |
129 | --without-x |
130 | %{__make} | |
21729b33 | 131 | install unix/povray pvmpov |
697b1b4f AF |
132 | %endif |
133 | ||
09c1e7ed | 134 | %if %{with x} |
b7a98b2e | 135 | %configure \ |
e4be19f9 | 136 | --libdir=%{_datadir} |
b7a98b2e | 137 | %{__make} |
21729b33 | 138 | install unix/povray x-povray |
b7a98b2e | 139 | %{__make} clean |
2c916a3a | 140 | %endif |
b7a98b2e | 141 | |
142 | %configure \ | |
09c1e7ed | 143 | --libdir=%{_datadir} \ |
b7a98b2e | 144 | --without-x |
145 | %{__make} | |
4d562464 | 146 | |
147 | %install | |
61158218 | 148 | rm -rf $RPM_BUILD_ROOT |
e4be19f9 | 149 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}} |
ea227ab9 AM |
150 | %if %{with pvm} |
151 | install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch} | |
152 | %endif | |
61158218 | 153 | |
e4be19f9 JR |
154 | %{__make} install \ |
155 | INSTALL="install -c -D" \ | |
156 | mkdir_p="mkdir -p" \ | |
b7a98b2e | 157 | DESTDIR=$RPM_BUILD_ROOT |
4d562464 | 158 | |
09c1e7ed | 159 | %if %{with x} |
a5a450ff | 160 | install x-povray $RPM_BUILD_ROOT%{_bindir} |
2c916a3a | 161 | %endif |
162 | ||
09c1e7ed | 163 | %if %{with x} && %{with pvm} |
a5a450ff | 164 | install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov |
09c1e7ed | 165 | ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov |
697b1b4f AF |
166 | %endif |
167 | ||
09c1e7ed | 168 | %if %{with pvm} |
a5a450ff | 169 | install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov |
09c1e7ed | 170 | ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov |
697b1b4f AF |
171 | %endif |
172 | ||
21729b33 | 173 | ##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir} |
174 | ##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
fceafdc6 | 175 | |
4d562464 | 176 | %clean |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
179 | %files | |
49c88a8f | 180 | %defattr(644,root,root,755) |
be0816cf | 181 | %doc AUTHORS ChangeLog NEWS README* changes.txt |
fceafdc6 | 182 | %attr(755,root,root) %{_bindir}/povray |
09c1e7ed | 183 | %{_datadir}/povray* |
21729b33 | 184 | %{_docdir}/povray* |
b7a98b2e | 185 | %{_mandir}/man?/* |
e11b17d4 | 186 | %dir %{_sysconfdir}/povray |
be0816cf AG |
187 | %dir %{_sysconfdir}/povray/3.7 |
188 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.* | |
21729b33 | 189 | ## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.* |
fceafdc6 | 190 | |
09c1e7ed | 191 | %if %{with x} |
96df36ec | 192 | %files X11 |
2702972f | 193 | %defattr(644,root,root,755) |
a5a450ff | 194 | %attr(755,root,root) %{_bindir}/x-povray |
a37cc0c6 AF |
195 | %endif |
196 | ||
8f6042bf | 197 | %if %{with pvm} |
697b1b4f AF |
198 | %files pvm |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov | |
a5a450ff | 201 | %attr(755,root,root) %{_bindir}/pvmpov |
697b1b4f AF |
202 | %endif |
203 | ||
09c1e7ed | 204 | %if %{with pvm} && %{with x} |
697b1b4f AF |
205 | %files pvm-X11 |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov | |
a5a450ff | 208 | %attr(755,root,root) %{_bindir}/x-pvmpov |
697b1b4f | 209 | %endif |