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