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