]> git.pld-linux.org Git - packages/Radiance.git/blob - Radiance.spec
06783cab51127eafc4197ebc691faf0911fe4ce8
[packages/Radiance.git] / Radiance.spec
1 Summary:        Radiance 3D Photo-Realistic Renderer.
2 Summary(pl):    3D fotorealistyczny program do renderowania scen.
3 Name:           Radiance
4 %define filename rad
5 Version:        3r1p8
6 Release:        1
7 Group:          Applications/Graphics
8 Group(pl):      Aplikacje/Grafika
9 License:        distributable
10 Source0:        http://radsite.lbl.gov/radiance/pub/%{filename}%{version}.tar.Z
11 Patch0:         %{name}-PLD.patch
12 URL:            http://radsite.lbl.gov/radiance/HOME.html
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Advenced 3D Photo-Realistic Renderer.
17
18 %description -l pl
19 Zaawansowany program do 3D modelowania scen.
20
21 %prep
22 %setup  -q -n ray
23 %patch0 -p1
24
25 %build
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ray,%{_mandir}/man{1,3,5}}
31 (cd lib; tar cf - * )|(cd $RPM_BUILD_ROOT%{_libdir}/ray ; tar xf -)
32 cd src
33 KAT=`pwd`
34 for i in common meta cv gen ot rt px util cal/{ev,calc,rcalc,util};
35 do
36  cd $i
37  make \
38         "OPT=%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" \
39         "DESTDIR=$RPM_BUILD_ROOT" \
40 "MACH=-DBSD -Dlinux -DSPEED=40 -DDCL_ATOF -DBIGMEM -L%{_prefix}/X11R6/lib" \
41     "ARCH=IBMPC" \
42         "COMPAT=malloc.o erf.o getpagesize.o" \
43     "INSTDIR=%{_bindir}" \
44     "LIBDIR=%{_libdir}/ray" \
45         "CC=gcc" \
46     -f Rmakefile install
47  cd $KAT
48 done
49 cd ..
50 for i in 1 3 5; do
51  install doc/man/man$i/*.$i $RPM_BUILD_ROOT%{_mandir}/man$i/;
52 done;
53 install doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
54 gzip -9nf doc/ps/* doc/notes/* doc/digest/*
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/*
62 %{_libdir}/ray/
63 %{_mandir}/man?/*
64 %doc doc/ps doc/notes/* doc/digest README
This page took 0.027226 seconds and 2 git commands to generate.