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