]> git.pld-linux.org Git - packages/povray.git/blob - povray.spec
- merged DEVEL branch
[packages/povray.git] / povray.spec
1 # _without_x
2 # _without_pvm
3 Summary:        Persistence of Vision Ray Tracer
4 Summary(pl):    Persistence of Vision Ray Tracer
5 Name:           povray
6 Version:        3.50b
7 Release:        1
8 License:        distributable
9 Group:          Applications/Graphics
10 Source0:        ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
11 Patch0:         %{name}-legal.patch
12 # pvm support not yet available - http://pvmpov.sourceforge.net/
13 URL:            http://www.povray.org/
14 BuildRequires:  libjpeg-devel
15 BuildRequires:  libpng-devel >= 1.0.8
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  libtiff-devel
18 BuildRequires:  zlib-devel
19 %{!?_without_x:BuildRequires:XFree86-devel}
20 #%{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _libdir         %{_datadir}
24
25 %description
26 The Persistence of Vision(tm) Ray-Tracer creates three-dimensional,
27 photo-realistic images using a rendering technique called ray-tracing.
28 It reads in a text file containing information describing the objects
29 and lighting in a scene and generates an image of that scene from the
30 view point of a camera also described in the text file. Ray-tracing is
31 not a fast process by any means, but it produces very high quality
32 images with realistic reflections, shading, perspective and other
33 effects.
34
35 %description -l pl
36 Persistence of Vision(tm) Ray-Tracer tworzy trójwymiarowe,
37 fotorealistyczne obrazy za pomoc± techniki renderingu zwanej
38 ray-tracing. Program pobiera z pliku tekstowego informacje opisuj±ce
39 obiekty oraz ¶wiat³o przedstawianego ¶wiata, a nastêpnie generuje
40 rysunek z punktu widzenia kamery, która tak¿e jest definiowana w w/w
41 pliku tekstowym. Ray-tracing nie pozwala na szybkie tworzenie obrazów,
42 ale za to twórca otrzymuje wyskokiej jako¶ci bitmapy z realistycznymi
43 efektami, tj. odbicia ¶wiat³a, cienie, perspektywa i inne.
44
45 %package X11
46 Summary:        X Window povray executable
47 Summary(pl):    povray pod X Window
48 Group:          Applications/Graphics
49 Requires:       %{name} = %{version}
50
51 %description X11
52 The Persistence of Vision(tm) Ray-Tracer X Window executable.
53
54 %description X11 -l pl
55 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
56 Window.
57
58 %package pvm
59 Summary:        PVM/unix povray executable
60 Group:          Applications/Graphics
61 Requires:       %{name} = %{version}
62
63 %description pvm
64 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
65
66 %description X11 -l pl
67 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
68 PVM/unix.
69
70 %package pvm-X11
71 Summary:        PVM/xwin povray executable
72 Group:          Applications/Graphics
73 Requires:       %{name} = %{version}
74
75 %description pvm-X11
76 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
77
78 %description X11 -l pl
79 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
80 PVM/xwin.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %configure \
88         --x-includes=%{_prefix}/X11R6/include \
89         --x-libraries=%{_prefix}/X11R6/lib
90 %{__make}
91 install src/povray x-povray
92 %{__make} clean
93
94 %configure \
95         --without-x
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_prefix}/X11R6/bin}
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 install x-povray $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
106 install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
107 ln -sf %{_sysconfdir}/povray.ini $RPM_BUILD_ROOT%{_datadir}/povray-*/povray.ini
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files
113 %defattr(644,root,root,755)
114 %doc AUTHORS ChangeLog NEWS README* povlegal.doc *.txt doc/html
115 %attr(755,root,root) %{_bindir}/povray
116 %{_libdir}/povray*
117 %{_mandir}/man?/*
118 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.ini
119
120 %if %{!?_without_x:1}%{?_without_x:0}
121 %files X11
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_prefix}/X11R6/bin/x-povray
124 %endif
125
126 #%if %{!?_without_pvm:1}%{?_without_pvm:0}
127 #%files pvm
128 #%defattr(644,root,root,755)
129 #%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/pvmpov
130 #
131 #%if %{!?_without_x:1}%{?_without_x:0}
132 #%files pvm-X11
133 #%defattr(644,root,root,755)
134 #%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/x-pvmpov
135 #%endif
136 #%endif
This page took 0.062983 seconds and 4 git commands to generate.