]> git.pld-linux.org Git - packages/povray.git/blame - povray.spec
- boost 1.61 rebuild
[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#
520c1407 7Summary: Persistence of Vision Ray Tracer
5c6661ca 8Summary(pl.UTF-8): Persistence of Vision Ray Tracer
520c1407 9Name: povray
8b2043c3 10Version: 3.7.0.0
ac036d2f 11Release: 3
e107cc8d 12Epoch: 1
b1f11ee3 13License: distributable
520c1407 14Group: Applications/Graphics
8b2043c3
JR
15Source0: https://github.com/POV-Ray/povray/archive/v%{version}/%{name}-%{version}.tar.gz
16# Source0-md5: c9473256677808e9e3246e6eb8f69a75
be0816cf 17Source1: %{name}-ax_boost_base.m4
d5fca580 18Patch0: boost-1.50.patch
520c1407 19URL: http://www.povray.org/
ec73f680
JB
20BuildRequires: autoconf
21BuildRequires: automake
b7a98b2e 22BuildRequires: libjpeg-devel
f5608087 23BuildRequires: libpng-devel >= 1.4.0
b7a98b2e 24BuildRequires: libstdc++-devel
25BuildRequires: 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 29BuildRequires: zlib-devel
9416b15a 30BuildRoot: %{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 38The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
2702972f 39photo-realistic images using a rendering technique called ray-tracing.
40It reads in a text file containing information describing the objects
41and lighting in a scene and generates an image of that scene from the
42view point of a camera also described in the text file. Ray-tracing is
43not a fast process by any means, but it produces very high quality
44images with realistic reflections, shading, perspective and other
45effects.
4d562464 46
2ea14a87
JR
47%description -l pl.UTF-8
48Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
49fotorealistyczne obrazy za pomocą techniki renderingu zwanej
50ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
51obiekty oraz światło przedstawianego świata, a następnie generuje
52rysunek z punktu widzenia kamery, która także jest definiowana w w/w
53pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
54ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
55efektami, tj. odbicia światła, cienie, perspektywa i inne.
4d562464 56
fceafdc6 57%package X11
41b49d87 58Summary: X Window povray executable
5c6661ca 59Summary(pl.UTF-8): povray pod X Window
fceafdc6 60Group: Applications/Graphics
38f80171 61Requires: %{name} = %{epoch}:%{version}-%{release}
41b49d87 62
63%description X11
64The Persistence of Vision(tm) Ray-Tracer X Window executable.
caec2118 65
2ea14a87 66%description X11 -l pl.UTF-8
8ecf04d1 67Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
68Window.
a37cc0c6 69
a37cc0c6 70%package pvm
3af417fe 71Summary: PVM/Unix povray executable
72Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/Unix
a37cc0c6 73Group: Applications/Graphics
38f80171 74Requires: %{name} = %{epoch}:%{version}-%{release}
a37cc0c6
AF
75
76%description pvm
3af417fe 77The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
a37cc0c6 78
2ea14a87 79%description pvm -l pl.UTF-8
8ecf04d1 80Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
3af417fe 81PVM/Unix.
caec2118 82
a37cc0c6
AF
83%package pvm-X11
84Summary: PVM/xwin povray executable
5c6661ca 85Summary(pl.UTF-8): Plik wykonywalny povray dla PVM/xwin
a37cc0c6 86Group: Applications/Graphics
38f80171 87Requires: %{name} = %{epoch}:%{version}-%{release}
a37cc0c6
AF
88
89%description pvm-X11
90The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
caec2118 91
2ea14a87 92%description pvm-X11 -l pl.UTF-8
8ecf04d1 93Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
94PVM/xwin.
fceafdc6 95
4d562464 96%prep
8b2043c3 97%setup -q
be0816cf 98cp %{SOURCE1} unix/config/ax_boost_base.m4
d5fca580 99%patch0 -p1
4d562464 100
101%build
8b2043c3
JR
102cd unix
103./prebuild.sh
104cd ..
105
2c916a3a 106%{__automake}
ea227ab9 107COMPILED_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 115install 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 128install unix/povray pvmpov
697b1b4f
AF
129%endif
130
09c1e7ed 131%if %{with x}
b7a98b2e 132%configure \
68a9cdbb 133 --libdir=%{_datadir}
b7a98b2e 134%{__make}
21729b33 135install 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 145rm -rf $RPM_BUILD_ROOT
e4be19f9 146install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
ea227ab9
AM
147%if %{with pvm}
148install -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 157install x-povray $RPM_BUILD_ROOT%{_bindir}
2c916a3a 158%endif
159
09c1e7ed 160%if %{with x} && %{with pvm}
a5a450ff 161install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
09c1e7ed 162ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
697b1b4f
AF
163%endif
164
09c1e7ed 165%if %{with pvm}
a5a450ff 166install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
09c1e7ed 167ln -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
174rm -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
This page took 0.084905 seconds and 4 git commands to generate.