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