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