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