]> git.pld-linux.org Git - packages/povray.git/blobdiff - povray.spec
- pl Summary/description fixes
[packages/povray.git] / povray.spec
index 73e99d73d3005cfd7ad13e64eb4c75d99c28cd39..dc0131aa552c78e9aadc40bd6f340daa578d108f 100644 (file)
-# $Revision: 1.1 $
-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:        povray31-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
 
-%description
-From the user manual:
+#
+# todo:
+#      patch for s#/usr/local#/usr# in povray.ini
+#
+
+# Conditional build:
+# _without_x   - without X11 subpackage
+# _without_pvm - [temporarily disabled by default] without PVM support
+#
+Summary:       Persistence of Vision Ray Tracer
+Summary(pl):   Persistence of Vision Ray Tracer
+Name:          povray
+Version:       3.50c
+Release:       1
+License:       distributable
+Group:         Applications/Graphics
+Source0:       ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
+Source1:       %{name}-%{version}.md5sum
+Patch0:                %{name}-legal.patch
+Patch1:                %{name}-types.patch
+# pvm support not yet available - http://pvmpov.sourceforge.net/
+URL:           http://www.povray.org/
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel >= 1.0.8
+BuildRequires: libstdc++-devel
+BuildRequires: libtiff-devel
+BuildRequires: zlib-devel
+%{!?_without_x:BuildRequires:XFree86-devel}
+#%{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _libdir         %{_datadir}
 
+%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.
+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
+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.
 
-%prep
-%setup -q -n povray31
-pushd ..
-tar zxf %{SOURCE1}
-popd
+%package X11
+Summary:       X Window povray executable
+Summary(pl):   povray pod X Window
+Group:         Applications/Graphics
+Requires:      %{name} = %{version}
+
+%description X11
+The Persistence of Vision(tm) Ray-Tracer X Window executable.
+
+%description X11 -l pl
+Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
+Window.
+
+%package pvm
+Summary:       PVM/unix povray executable
+Summary(pl):   Plik wykonywalny povray dla PVM/unix
+Group:         Applications/Graphics
+Requires:      %{name} = %{version}
+
+%description pvm
+The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
 
+%description X11 -l pl
+Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
+PVM/unix.
+
+%package pvm-X11
+Summary:       PVM/xwin povray executable
+Summary(pl):   Plik wykonywalny povray dla PVM/xwin
+Group:         Applications/Graphics
+Requires:      %{name} = %{version}
+
+%description pvm-X11
+The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
+
+%description X11 -l pl
+Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
+PVM/xwin.
+
+%prep
+cd %{_sourcedir}
+md5sum -c %{name}-%{version}.md5sum
+cd -
+%setup -q
 %patch0 -p1
+%ifarch alpha
+%patch1 -p1
+%endif
 
 %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}
+%if %{!?_without_x:1}%{?_without_x:0}
+%configure \
+       --x-includes=%{_prefix}/X11R6/include \
+       --x-libraries=%{_prefix}/X11R6/lib
+%{__make}
+install src/povray x-povray
+%{__make} clean
+%endif
+
+%configure \
+       --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},%{_prefix}/X11R6/bin}
 
-gzip -9nf gamma.gif.txt povray.1 povlegal.doc
-bzip2 povuser.txt
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/usr/share/man/man1
-install -m 644 povray.1.gz $RPM_BUILD_ROOT/usr/share/man/man1
+%if %{!?_without_x:1}%{?_without_x:0}
+install x-povray $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
+%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}
+ln -sf %{_sysconfdir}/povray.ini $RPM_BUILD_ROOT%{_datadir}/povray-3.5/povray.ini
 
 %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* povlegal.doc *.txt doc/html
+%attr(755,root,root) %{_bindir}/povray
+%{_libdir}/povray*
+%{_mandir}/man?/*
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.*
+
+%if %{!?_without_x:1}%{?_without_x:0}
+%files X11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_prefix}/X11R6/bin/x-povray
+%endif
+
+#%if %{!?_without_pvm:1}%{?_without_pvm:0}
+#%files pvm
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/pvmpov
+#
+#%if %{!?_without_x:1}%{?_without_x:0}
+#%files pvm-X11
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/x-pvmpov
+#%endif
+#%endif
This page took 0.110849 seconds and 4 git commands to generate.