]> git.pld-linux.org Git - packages/povray.git/blobdiff - povray.spec
typo
[packages/povray.git] / povray.spec
index 8cce6c7a456905bc9f3660d17e3eeae97dcede2f..22b571bb7dc5171591b4e5a64a8ea2ce229bbdcd 100644 (file)
@@ -2,80 +2,140 @@ Summary:     Persistence of Vision Ray Tracer
 Summary(pl):   Persistence of Vision Ray Tracer
 Name:          povray
 Version:       3.1g
-Release:       1
+Release:       5
 Copyright:     distrituable
 Group:         Applications/Graphics
+Group(de):     Applikationen/Grafik
 Group(pl):     Aplikacje/Grafika
-Source0:       povuni_s.tgz
-Source1:       povuni_d.tgz
-Patch:         povray-makefile_and_config.patch
+Source0:       ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
+Source1:       ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_d.tgz
+# pvm.patch is instead of that source, and its based on it
+#Source2:      pvmpov-3.1e2.tgz
+Patch0:                %{name}-makefile_and_config.patch
+Patch1:                %{name}-pvm.patch
+Patch2:                %{name}-png_with_pvm.patch
 URL:           http://www.povray.org/
 BuildRequires: zlib-devel
-BuildRequires: libpng-devel
-BuildRoot:     /tmp/%{name}-%{version}-root
+BuildRequires: libpng-devel >= 1.0.8
+%{!?_without_x:BuildRequires:XFree86-devel}
+%{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%description
-From the user manual:
+#ugly but now _pvm_root/_pvm_arch isnt defined in macros
+
+%define                _pvm_root       %{_libdir}/pvm3
+%define                _pvm_arch       %(ls %{_pvm_root}/conf/|sed -e 's/\.def//')
 
+%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
+%if %{!?_without_x:1}%{?_without_x}
+%package X11
+Summary:       X Window povray executable
+Summary(pl):   povray pod X Window
+Group:         Applications/Graphics
+Group(de):     Applikationen/Grafik
+Group(pl):     Aplikacje/Grafika
+Requires:      %{name} = %{version}
+
+%description X11
+The Persistence of Vision(tm) Ray-Tracer X Window executable.
+%endif
+
+%if %{!?_without_pvm:1}%{?_without_pvm:0}
+%package pvm
+Summary:       PVM/unix povray executable
+Group:         Applications/Graphics
+Group(de):     Applikationen/Grafik
+Group(pl):     Aplikacje/Grafika
+Requires:      %{name} = %{version}
+
+%description pvm
+The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
 
+%if %{!?_without_x:1}%{?_without_x:0}
+%package pvm-X11
+Summary:       PVM/xwin povray executable
+Group:         Applications/Graphics
+Group(de):     Applikationen/Grafik
+Group(pl):     Aplikacje/Grafika
+Requires:      %{name} = %{version}
+
+%description pvm-X11
+The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
+%endif
+%endif
+
+%prep
+%setup -q -n povray31 -b 1 
 %patch0 -p1
+%patch1 -p0
+%patch2 -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
+cd source/unix
+%{__make} newunix %{!?_without_x:newxwin} %{!?_without_pvm:newunix_pvm %{!?_without_x:newxwin_pvm}} OPT_FLAGS="%{rpmcflags}"
 
 %install
-pushd source/unix
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT/etc/skel
-install -s -m 755 povray x-povray $RPM_BUILD_ROOT%{_bindir}
-install -m 644 povrayrc $RPM_BUILD_ROOT/etc/skel/.povrayrc
-popd
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},/etc/skel,%{_mandir}/man1,%{_datadir}/povray31,%{_pvm_root}/bin/%{_pvm_arch}}
 
-gzip -9nf gamma.gif.txt povray.1 povlegal.doc povuser.txt
 
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install -m 644 povray.1.gz $RPM_BUILD_ROOT%{_mandir}/man1
+install source/unix/povray $RPM_BUILD_ROOT%{_bindir}
+%{!?_without_x:install source/unix/x-povray $RPM_BUILD_ROOT%{_bindir}}
+%{!?_without_pvm:install source/unix/pvmpov $RPM_BUILD_ROOT%{_pvm_root}/bin/%{_pvm_arch}}
+%{!?_without_pvm:%{!?_without_x:install source/unix/x-pvmpov $RPM_BUILD_ROOT%{_pvm_root}/bin/%{_pvm_arch}}}
+install source/unix/povrayrc $RPM_BUILD_ROOT/etc/skel/.povrayrc
+
+install povray.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-install -d $RPM_BUILD_ROOT%{_datadir}/povray31
-find . -type f -exec chmod 644 {} \;
 cp -r allscene include scenes $RPM_BUILD_ROOT%{_datadir}/povray31
-install -m 644 *.ini $RPM_BUILD_ROOT%{_datadir}/povray31
-install -m 644 *.pov $RPM_BUILD_ROOT%{_datadir}/povray31
+install *.ini *.pov $RPM_BUILD_ROOT%{_datadir}/povray31
+
+gzip -9nf gamma.gif.txt povlegal.doc povuser.txt
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
+%defattr(644,root,root,755)
 %doc gamma.gif.txt.gz povuser.txt.gz gamma.gif povlegal.doc.gz
-%{_bindir}/x-povray
-%{_bindir}/povray
+%attr(755,root,root) %{_bindir}/povray
 %{_datadir}/povray31
 /etc/skel/.povrayrc
+%{_mandir}/man1/*
+
+%if %{!?_without_x:1}%{?_without_x:0}
+%files X11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/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.027989 seconds and 4 git commands to generate.