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