]> git.pld-linux.org Git - packages/povray.git/blame - povray.spec
- up to 3.7.0.RC5
[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
03671f69 13Release: 0.RC5.1
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} \
09c1e7ed 116 --with-pvm-libs=%{_libdir} \
ec73f680 117 --x-includes=/usr/X11R6/include \
09c1e7ed 118 --x-libraries=/usr/X11R6/%{_lib}
697b1b4f 119%{__make}
21729b33 120install unix/povray x-pvmpov
697b1b4f
AF
121%endif
122
09c1e7ed 123%if %{with pvm}
697b1b4f
AF
124%{__make} clean
125
126%configure \
09c1e7ed 127 --libdir=%{_datadir} \
697b1b4f
AF
128 --enable-pvm \
129 --with-pvm-arch=%{_pvmarch} \
09c1e7ed 130 --with-pvm-libs=%{_libdir} \
697b1b4f
AF
131 --without-x
132%{__make}
21729b33 133install unix/povray pvmpov
697b1b4f
AF
134%endif
135
09c1e7ed 136%if %{with x}
b7a98b2e 137%configure \
09c1e7ed 138 --libdir=%{_datadir} \
ec73f680 139 --x-includes=/usr/X11R6/include \
73c51aff 140 --x-libraries=/usr/X11R6/%{_lib}
b7a98b2e 141%{__make}
21729b33 142install unix/povray x-povray
b7a98b2e 143%{__make} clean
2c916a3a 144%endif
b7a98b2e 145
146%configure \
09c1e7ed 147 --libdir=%{_datadir} \
b7a98b2e 148 --without-x
149%{__make}
4d562464 150
697b1b4f 151
4d562464 152%install
61158218 153rm -rf $RPM_BUILD_ROOT
ea227ab9
AM
154install -d $RPM_BUILD_ROOT{%{_sysconfdir},/usr/X11R6/bin}
155%if %{with pvm}
156install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
157%endif
61158218 158
b7a98b2e 159%{__make} install \
160 DESTDIR=$RPM_BUILD_ROOT
4d562464 161
09c1e7ed 162%if %{with x}
a5a450ff 163install x-povray $RPM_BUILD_ROOT%{_bindir}
2c916a3a 164%endif
165
09c1e7ed 166%if %{with x} && %{with pvm}
a5a450ff 167install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
09c1e7ed 168ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
697b1b4f
AF
169%endif
170
09c1e7ed 171%if %{with pvm}
a5a450ff 172install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
09c1e7ed 173ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
697b1b4f
AF
174%endif
175
21729b33 176##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
177##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
fceafdc6 178
4d562464 179%clean
180rm -rf $RPM_BUILD_ROOT
181
182%files
49c88a8f 183%defattr(644,root,root,755)
be0816cf 184%doc AUTHORS ChangeLog NEWS README* changes.txt
fceafdc6 185%attr(755,root,root) %{_bindir}/povray
09c1e7ed 186%{_datadir}/povray*
21729b33 187%{_docdir}/povray*
b7a98b2e 188%{_mandir}/man?/*
e11b17d4 189%dir %{_sysconfdir}/povray
be0816cf
AG
190%dir %{_sysconfdir}/povray/3.7
191%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
21729b33 192## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
fceafdc6 193
09c1e7ed 194%if %{with x}
96df36ec 195%files X11
2702972f 196%defattr(644,root,root,755)
a5a450ff 197%attr(755,root,root) %{_bindir}/x-povray
a37cc0c6
AF
198%endif
199
8f6042bf 200%if %{with pvm}
697b1b4f
AF
201%files pvm
202%defattr(644,root,root,755)
203%attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
a5a450ff 204%attr(755,root,root) %{_bindir}/pvmpov
697b1b4f
AF
205%endif
206
09c1e7ed 207%if %{with pvm} && %{with x}
697b1b4f
AF
208%files pvm-X11
209%defattr(644,root,root,755)
210%attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
a5a450ff 211%attr(755,root,root) %{_bindir}/x-pvmpov
697b1b4f 212%endif
This page took 0.070435 seconds and 4 git commands to generate.