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