]> git.pld-linux.org Git - packages/povray.git/blob - povray.spec
- using %{_bindir}, %{_mandir}, %{_datadir}
[packages/povray.git] / povray.spec
1 # $Revision: 1.3 $
2 Summary:       Persistence of Vision Ray Tracer
3 Summary(pl):   Persistence of Vision Ray Tracer
4 Name:          povray
5 Version:       3.1g
6 Release:       1
7 Copyright:     distrituable
8 Group:         Applications/Graphics
9 Group(pl):     Aplikacje/Grafika
10 Source0:       povuni_s.tgz
11 Source1:       povuni_d.tgz
12 Patch0:        povray-makefile_and_config.patch
13 URL:           http://www.povray.org/
14 BuildRequires: zlib-devel
15 BuildRequires: libpng-devel
16 BuildRoot:    /tmp/%{name}-%{version}-root
17
18 %description
19 From the user manual:
20
21 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
22 photo-realistic images using a rendering technique called ray-tracing. It reads
23 in a text file containing information describing the objects and lighting in a
24 scene and generates an image of that scene from the view point of a camera also
25 described in the text file. Ray-tracing is not a fast process by any means,
26 but it produces very high quality images with realistic reflections, shading,
27 perspective and other effects.
28
29 %description -l pl
30 Z podrêcznika u¿ytkownika:
31
32 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe, fotorealistyczne
33 obrazy za pomoc± techniki renderingu zwanej ray-tracing. Program pobiera z
34 pliku tekstowego informacje opisuj±ce obiekty oraz ¶wiat³o przedstawianego
35 ¶wiata, a nastêpnie generuje rysunek z punktu widzenia kamery, która tak¿e jest
36 definiowana w w/w pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie
37 obrazów, ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
38 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
39
40 %prep
41 %setup -q -n povray31
42 pushd ..
43 tar zxf %{SOURCE1}
44 popd
45
46 %patch0 -p1
47
48 %build
49 pushd source/unix
50 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DCPU=`echo %{_target_cpu} | sed 's/^i\([3-9]86\)$/\1/'`"
51 make newunix
52 make newxwin
53 popd
54
55 %install
56 pushd source/unix
57 install -d $RPM_BUILD_ROOT%{_bindir}
58 install -d $RPM_BUILD_ROOT/etc/skel
59 install -s -m 755 povray x-povray $RPM_BUILD_ROOT%{_bindir}
60 install -m 644 povrayrc $RPM_BUILD_ROOT/etc/skel/.povrayrc
61 popd
62
63 gzip -9nf gamma.gif.txt povray.1 povlegal.doc
64 bzip2 povuser.txt
65
66 install -d $RPM_BUILD_ROOT%{_mandir}/man1
67 install -m 644 povray.1.gz $RPM_BUILD_ROOT%{_mandir}/man1
68
69 install -d $RPM_BUILD_ROOT%{_datadir}/povray31
70 find . -type f -exec chmod 644 {} \;
71 cp -r allscene include scenes $RPM_BUILD_ROOT%{_datadir}/povray31
72 install -m 644 *.ini $RPM_BUILD_ROOT%{_datadir}/povray31
73 install -m 644 *.pov $RPM_BUILD_ROOT%{_datadir}/povray31
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %doc gamma.gif.txt.gz povuser.txt.bz2 gamma.gif povlegal.doc.gz
80 %{_bindir}/x-povray
81 %{_bindir}/povray
82 %{_datadir}/povray31
83 /etc/skel/.povrayrc
This page took 0.101147 seconds and 4 git commands to generate.