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