]> git.pld-linux.org Git - packages/povray.git/blobdiff - povray.spec
- boost rebuild
[packages/povray.git] / povray.spec
index a7e940317389891d402da64cf84e8c7ded73414f..a769d578d8245eccba2f682022ab856033bcd992 100644 (file)
-# $Revision: 1.2 $
-Summary:       Persistence of Vision Ray Tracer
-Summary(pl):   Persistence of Vision Ray Tracer
-Name:          povray
-Version:       3.1g
-Release:       1
-Copyright:     distrituable
-Group:         Applications/Graphics
-Group(pl):     Aplikacje/Grafika
-Source0:       povuni_s.tgz
-Source1:       povuni_d.tgz
-Patch0:        povray-makefile_and_config.patch
-URL:           http://www.povray.org/
-BuildRequires: zlib-devel
-BuildRequires: libpng-devel
-BuildRoot:    /tmp/%{name}-%{version}-root
-
-%define                _prefix         /usr/X11R6
-%define                _infodir        /usr/share/info
-%define                _mandir         /usr/X11R6/man
-%define                _sysconfdir     /etc/X11
+#
+# Conditional build:
+%bcond_without x       # - without X11 subpackage
+%bcond_with    pvm     # - with PVM support
+%bcond_with    svga    # - with svgalib support (doesn't work on many platforms)
+#
+%define                _rc             RC7
+%define                _src_pov_ver    3.7.0.%{_rc}
+%define                rel             9
 
-%description
-From the user manual:
+Summary:       Persistence of Vision Ray Tracer
+Summary(pl.UTF-8):     Persistence of Vision Ray Tracer
+Name:          povray
+Version:       3.7.0
+Release:       0.%{_rc}.%{rel}
+Epoch:         1
+License:       distributable
+Group:         Applications/Graphics
+#Source0:      http://www.povray.org/ftp/pub/povray/Official/Unix/%{name}-%{_src_pov_ver}.tar.bz2
+Source0:       http://www.povray.org/redirect/www.povray.org/beta/source/%{name}-%{_src_pov_ver}.tar.bz2
+# Source0-md5: 7d24ec051af67bcf040a898a267d920a
+# based on sources from CVS at http://pvmpov.sourceforge.net/
+# Source0:     %{name}-%{version}-%{snap}.tar.gz
+Source1:       %{name}-ax_boost_base.m4
+Patch0:                %{name}-nouserfiles.patch
+Patch1:                boost-1.50.patch
+URL:           http://www.povray.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel >= 1.4.0
+BuildRequires: libstdc++-devel
+BuildRequires: libtiff-devel
+%{?with_pvm:BuildRequires:     pvm-devel >= 3.4.3-24}
+%{?with_svga:BuildRequires:    svgalib-devel}
+%{?with_x:BuildRequires:       xorg-lib-libX11-devel}
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%if %{with pvm}
+%define                _pvmarch        %(/usr/bin/pvmgetarch)
+%define                _pvmroot        /usr/%{_lib}/pvm3
+%endif
 
+%description
 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
-photo-realistic images using a rendering technique called ray-tracing. It reads
-in a text file containing information describing the objects and lighting in a
-scene and generates an image of that scene from the view point of a camera also
-described in the text file. Ray-tracing is not a fast process by any means,
-but it produces very high quality images with realistic reflections, shading,
-perspective and other effects.
-
-%description -l pl
-Z podrêcznika u¿ytkownika:
-
-Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe, fotorealistyczne
-obrazy za pomoc± techniki renderingu zwanej ray-tracing. Program pobiera z
-pliku tekstowego informacje opisuj±ce obiekty oraz ¶wiat³o przedstawianego
-¶wiata, a nastêpnie generuje rysunek z punktu widzenia kamery, która tak¿e jest
-definiowana w w/w pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie
-obrazów, ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
-efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
+photo-realistic images using a rendering technique called ray-tracing.
+It reads in a text file containing information describing the objects
+and lighting in a scene and generates an image of that scene from the
+view point of a camera also described in the text file. Ray-tracing is
+not a fast process by any means, but it produces very high quality
+images with realistic reflections, shading, perspective and other
+effects.
 
-%prep
-%setup -q -n povray31
-pushd ..
-tar zxf %{SOURCE1}
-popd
+%description -l pl.UTF-8
+Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
+fotorealistyczne obrazy za pomocą techniki renderingu zwanej
+ray-tracing. Program pobiera z pliku tekstowego informacje opisujące
+obiekty oraz światło przedstawianego świata, a następnie generuje
+rysunek z punktu widzenia kamery, która także jest definiowana w w/w
+pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
+ale za to twórca otrzymuje wyskokiej jakości bitmapy z realistycznymi
+efektami, tj. odbicia światła, cienie, perspektywa i inne.
+
+%package X11
+Summary:       X Window povray executable
+Summary(pl.UTF-8):     povray pod X Window
+Group:         Applications/Graphics
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description X11
+The Persistence of Vision(tm) Ray-Tracer X Window executable.
+
+%description X11 -l pl.UTF-8
+Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
+Window.
+
+%package pvm
+Summary:       PVM/Unix povray executable
+Summary(pl.UTF-8):     Plik wykonywalny povray dla PVM/Unix
+Group:         Applications/Graphics
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description pvm
+The Persistence of Vision(tm) Ray-Tracer PVM/Unix executable.
+
+%description pvm -l pl.UTF-8
+Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
+PVM/Unix.
+
+%package pvm-X11
+Summary:       PVM/xwin povray executable
+Summary(pl.UTF-8):     Plik wykonywalny povray dla PVM/xwin
+Group:         Applications/Graphics
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description pvm-X11
+The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
 
+%description pvm-X11 -l pl.UTF-8
+Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
+PVM/xwin.
+
+%prep
+%setup -q -n %{name}-%{_src_pov_ver}
+cp %{SOURCE1} unix/config/ax_boost_base.m4
 %patch0 -p1
+%patch1 -p1
 
 %build
-pushd source/unix
-RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DCPU=`echo %{_target_cpu} | sed 's/^i\([3-9]86\)$/\1/'`"
-make newunix
-make newxwin
-popd
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+COMPILED_BY="PLD/Linux Team";export COMPILED_BY;
+%if %{with x} && %{with pvm}
+%configure \
+       --libdir=%{_datadir} \
+       --enable-pvm \
+       --with-pvm-arch=%{_pvmarch} \
+       --with-pvm-libs=%{_libdir}
+%{__make}
+install unix/povray x-pvmpov
+%endif
+
+%if %{with pvm}
+%{__make} clean
+
+%configure \
+       --libdir=%{_datadir} \
+       --enable-pvm \
+       --with-pvm-arch=%{_pvmarch} \
+       --with-pvm-libs=%{_libdir} \
+       --without-x
+%{__make}
+install unix/povray pvmpov
+%endif
+
+%if %{with x}
+%configure \
+       --libdir=%{_datadir}
+%{__make}
+install unix/povray x-povray
+%{__make} clean
+%endif
+
+%configure \
+       --libdir=%{_datadir} \
+       --without-x
+%{__make}
 
 %install
-pushd source/unix
-install -d $RPM_BUILD_ROOT/usr/bin
-install -d $RPM_BUILD_ROOT/etc/skel
-install -s -m 755 povray x-povray $RPM_BUILD_ROOT/usr/bin
-install -m 644 povrayrc $RPM_BUILD_ROOT/etc/skel/.povrayrc
-popd
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}}
+%if %{with pvm}
+install -d $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}
+%endif
+
+%{__make} install \
+       INSTALL="install -c -D" \
+       mkdir_p="mkdir -p" \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%if %{with x}
+install x-povray $RPM_BUILD_ROOT%{_bindir}
+%endif
 
-gzip -9nf gamma.gif.txt povray.1 povlegal.doc
-bzip2 povuser.txt
+%if %{with x} && %{with pvm}
+install x-pvmpov $RPM_BUILD_ROOT%{_bindir}/x-pvmpov
+ln -s %{_bindir}/x-pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
+%endif
 
-install -d $RPM_BUILD_ROOT/usr/share/man/man1
-install -m 644 povray.1.gz $RPM_BUILD_ROOT/usr/share/man/man1
+%if %{with pvm}
+install pvmpov $RPM_BUILD_ROOT%{_bindir}/pvmpov
+ln -s %{_bindir}/pvmpov $RPM_BUILD_ROOT%{_pvmroot}/bin/%{_pvmarch}/pvmpov
+%endif
 
-install -d $RPM_BUILD_ROOT/usr/share/povray31
-find . -type f -exec chmod 644 {} \;
-cp -r allscene include scenes $RPM_BUILD_ROOT/usr/share/povray31
-install -m 644 *.ini $RPM_BUILD_ROOT/usr/share/povray31
-install -m 644 *.pov $RPM_BUILD_ROOT/usr/share/povray31
+##install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
+##install povray.conf $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%doc gamma.gif.txt.gz povuser.txt.bz2 gamma.gif povlegal.doc.gz
-/usr/bin/x-povray
-/usr/bin/povray
-/usr/share/povray31
-/etc/skel/.povrayrc
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README* changes.txt
+%attr(755,root,root) %{_bindir}/povray
+%{_datadir}/povray*
+%{_docdir}/povray*
+%{_mandir}/man?/*
+%dir %{_sysconfdir}/povray
+%dir %{_sysconfdir}/povray/3.7
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/3.7/povray.*
+## %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
+
+%if %{with x}
+%files X11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/x-povray
+%endif
+
+%if %{with pvm}
+%files pvm
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/pvmpov
+%attr(755,root,root) %{_bindir}/pvmpov
+%endif
+
+%if %{with pvm} && %{with x}
+%files pvm-X11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pvmroot}/bin/%{_pvmarch}/x-pvmpov
+%attr(755,root,root) %{_bindir}/x-pvmpov
+%endif
This page took 0.040345 seconds and 4 git commands to generate.