]> git.pld-linux.org Git - packages/povray.git/blob - povray.spec
- fixed build on 64-bit archs (types patch); release 2
[packages/povray.git] / povray.spec
1 #
2 # Conditional build:
3 # _without_x    - without X11 subpackage
4 # _without_pvm  - [temporarily disabled by default] without PVM support
5 #
6 Summary:        Persistence of Vision Ray Tracer
7 Summary(pl):    Persistence of Vision Ray Tracer
8 Name:           povray
9 Version:        3.50b
10 Release:        2
11 License:        distributable
12 Group:          Applications/Graphics
13 Source0:        ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
14 Patch0:         %{name}-legal.patch
15 Patch1:         %{name}-types.patch
16 # pvm support not yet available - http://pvmpov.sourceforge.net/
17 URL:            http://www.povray.org/
18 BuildRequires:  libjpeg-devel
19 BuildRequires:  libpng-devel >= 1.0.8
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtiff-devel
22 BuildRequires:  zlib-devel
23 %{!?_without_x:BuildRequires:XFree86-devel}
24 #%{!?_without_pvm:BuildRequires:pvm-devel >= 3.4.3-24 }
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _libdir         %{_datadir}
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 %package X11
50 Summary:        X Window povray executable
51 Summary(pl):    povray pod X Window
52 Group:          Applications/Graphics
53 Requires:       %{name} = %{version}
54
55 %description X11
56 The Persistence of Vision(tm) Ray-Tracer X Window executable.
57
58 %description X11 -l pl
59 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla X
60 Window.
61
62 %package pvm
63 Summary:        PVM/unix povray executable
64 Group:          Applications/Graphics
65 Requires:       %{name} = %{version}
66
67 %description pvm
68 The Persistence of Vision(tm) Ray-Tracer PVM/unix executable.
69
70 %description X11 -l pl
71 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
72 PVM/unix.
73
74 %package pvm-X11
75 Summary:        PVM/xwin povray executable
76 Group:          Applications/Graphics
77 Requires:       %{name} = %{version}
78
79 %description pvm-X11
80 The Persistence of Vision(tm) Ray-Tracer PVM/xwin executable.
81
82 %description X11 -l pl
83 Plik wykonywalny The Persistence of Vision(tm) Ray-Tracer dla
84 PVM/xwin.
85
86 %prep
87 %setup -q
88 %patch0 -p1
89 %patch1 -p1
90
91 %build
92 %configure \
93         --x-includes=%{_prefix}/X11R6/include \
94         --x-libraries=%{_prefix}/X11R6/lib
95 %{__make}
96 install src/povray x-povray
97 %{__make} clean
98
99 %configure \
100         --without-x
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_prefix}/X11R6/bin}
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 install x-povray $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
111 install povray.ini $RPM_BUILD_ROOT%{_sysconfdir}
112 ln -sf %{_sysconfdir}/povray.ini $RPM_BUILD_ROOT%{_datadir}/povray-*/povray.ini
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %files
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README* povlegal.doc *.txt doc/html
120 %attr(755,root,root) %{_bindir}/povray
121 %{_libdir}/povray*
122 %{_mandir}/man?/*
123 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/povray.ini
124
125 %if %{!?_without_x:1}%{?_without_x:0}
126 %files X11
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_prefix}/X11R6/bin/x-povray
129 %endif
130
131 #%if %{!?_without_pvm:1}%{?_without_pvm:0}
132 #%files pvm
133 #%defattr(644,root,root,755)
134 #%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/pvmpov
135 #
136 #%if %{!?_without_x:1}%{?_without_x:0}
137 #%files pvm-X11
138 #%defattr(644,root,root,755)
139 #%attr(755,root,root) %{_pvm_root}/bin/%{_pvm_arch}/x-pvmpov
140 #%endif
141 #%endif
This page took 0.037516 seconds and 4 git commands to generate.