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