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