]> git.pld-linux.org Git - packages/povray.git/blob - povray.spec
- added/fixed polish %descriptions.
[packages/povray.git] / povray.spec
1 Summary:        Persistence of Vision Ray Tracer
2 Summary(pl):    Persistence of Vision Ray Tracer
3 Name:           povray
4 Version:        3.1g
5 Release:        5
6 License:        distrituable
7 Group:          Applications/Graphics
8 Group(de):      Applikationen/Grafik
9 Group(pl):      Aplikacje/Grafika
10 Source0:        ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
11 Source1:        ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_d.tgz
12 # pvm.patch is instead of that source, and its based on it
13 #Source2:       pvmpov-3.1e2.tgz
14 Patch0:         %{name}-makefile_and_config.patch
15 Patch1:         %{name}-pvm.patch
16 Patch2:         %{name}-png_with_pvm.patch
17 URL:            http://www.povray.org/
18 BuildRequires:  zlib-devel
19 BuildRequires:  libpng-devel >= 1.0.8
20 %{!?_without_x:BuildRequires:XFree86-devel}
21 %{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 #ugly but now _pvm_root/_pvm_arch isnt defined in macros
25
26 %define         _pvm_root       %{_libdir}/pvm3
27 %define         _pvm_arch       %(ls %{_pvm_root}/conf/|sed -e 's/\.def//')
28
29 %description
30 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
31 photo-realistic images using a rendering technique called ray-tracing.
32 It reads in a text file containing information describing the objects
33 and lighting in a scene and generates an image of that scene from the
34 view point of a camera also described in the text file. Ray-tracing is
35 not a fast process by any means, but it produces very high quality
36 images with realistic reflections, shading, perspective and other
37 effects.
38
39 %description -l pl
40 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
41 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
42 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
43 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
44 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
45 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
46 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
47 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
48
49 %if %{!?_without_x:1}%{?_without_x}
50 %package X11
51 Summary:        X Window povray executable
52 Summary(pl):    povray pod X Window
53 Group:          Applications/Graphics
54 Group(de):      Applikationen/Grafik
55 Group(pl):      Aplikacje/Grafika
56 Requires:       %{name} = %{version}
57
58 %description X11
59 The Persistence of Vision(tm) Ray-Tracer X Window executable.
60
61 %description X11 -l pl
62 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X Window.
63 %endif
64
65 %if %{!?_without_pvm:1}%{?_without_pvm:0}
66 %package pvm
67 Summary:        PVM/unix povray executable
68 Group:          Applications/Graphics
69 Group(de):      Applikationen/Grafik
70 Group(pl):      Aplikacje/Grafika
71 Requires:       %{name} = %{version}
72
73 %description pvm
74 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
75
76 %description X11 -l pl
77 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla PVM/unix.
78
79 %if %{!?_without_x:1}%{?_without_x:0}
80 %package pvm-X11
81 Summary:        PVM/xwin povray executable
82 Group:          Applications/Graphics
83 Group(de):      Applikationen/Grafik
84 Group(pl):      Aplikacje/Grafika
85 Requires:       %{name} = %{version}
86
87 %description pvm-X11
88 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
89
90 %description X11 -l pl
91 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla PVM/xwin.
92 %endif
93 %endif
94
95 %prep
96 %setup -q -n povray31 -b 1
97 %patch0 -p1
98 %patch1 -p0
99 %patch2 -p1
100
101 %build
102 cd source/unix
103 %{__make} newunix %{!?_without_x:newxwin} %{!?_without_pvm:newunix_pvm %{!?_without_x:newxwin_pvm}} OPT_FLAGS="%{rpmcflags}"
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT{%{_bindir},/etc/skel,%{_mandir}/man1,%{_datadir}/povray31,%{_pvm_root}/bin/%{_pvm_arch}}
108
109
110 install source/unix/povray $RPM_BUILD_ROOT%{_bindir}
111 %{!?_without_x:install source/unix/x-povray $RPM_BUILD_ROOT%{_bindir}}
112 %{!?_without_pvm:install source/unix/pvmpov $RPM_BUILD_ROOT%{_pvm_root}/bin/%{_pvm_arch}}
113 %{!?_without_pvm:%{!?_without_x:install source/unix/x-pvmpov $RPM_BUILD_ROOT%{_pvm_root}/bin/%{_pvm_arch}}}
114 install source/unix/povrayrc $RPM_BUILD_ROOT/etc/skel/.povrayrc
115
116 install povray.1 $RPM_BUILD_ROOT%{_mandir}/man1
117
118 cp -r allscene include scenes $RPM_BUILD_ROOT%{_datadir}/povray31
119 install *.ini *.pov $RPM_BUILD_ROOT%{_datadir}/povray31
120
121 gzip -9nf gamma.gif.txt povlegal.doc povuser.txt
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files
127 %defattr(644,root,root,755)
128 %doc gamma.gif.txt.gz povuser.txt.gz gamma.gif povlegal.doc.gz
129 %attr(755,root,root) %{_bindir}/povray
130 %{_datadir}/povray31
131 /etc/skel/.povrayrc
132 %{_mandir}/man1/*
133
134 %if %{!?_without_x:1}%{?_without_x:0}
135 %files X11
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/x-povray
138 %endif
139
140 %if %{!?_without_pvm:1}%{?_without_pvm:0}
141 %files pvm
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/pvmpov
144
145 %if %{!?_without_x:1}%{?_without_x:0}
146 %files pvm-X11
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/x-pvmpov
149 %endif
150 %endif
This page took 0.075415 seconds and 4 git commands to generate.