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