]> git.pld-linux.org Git - packages/Radiance.git/blob - Radiance.spec
47f8d9ead3f8460ac668d4c83741d1e5c42e8c30
[packages/Radiance.git] / Radiance.spec
1 Summary:        Radiance 3D Photo-Realistic Renderer
2 Summary(pl):    Fotorealistyczny program do renderowania scen 3D.
3 Name:           Radiance
4 Version:        3r1p8
5 Release:        1
6 License:        free use, but non-distributable
7 Group:          Applications/Graphics
8 Source0:        http://radsite.lbl.gov/radiance/pub/rad%{version}.tar.Z
9 Patch0:         %{name}-PLD.patch
10 Patch1:         %{name}-rview-conflict.patch
11 NoSource:       0
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 modelowania scen 3D.
20
21 %prep
22 %setup  -q -n ray
23 %patch0 -p1
24 %patch1 -p1
25
26 (cd doc/man/man1 ; mv -f rview.1 radview.1)
27
28 %build
29 for i in common meta cv gen ot rt px util cal/{ev,calc,rcalc,util}; do
30     make -C src/$i -f Rmakefile \
31         OPT="%{rpmcflags}" CC="%{__cc}" \
32         ARCH="IBMPC" \
33         MACH="-DBSD -Dlinux -DSPEED=40 -DDCL_ATOF -DBIGMEM -L/usr/X11R6/lib" \
34         MLIBDIR="%{_libdir}/ray/meta" \
35         COMPAT="malloc.o erf.o getpagesize.o"
36 done
37         
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ray,%{_mandir}/man{1,3,5}}
41
42 (cd lib
43 tar cf - * | tar xf - -C $RPM_BUILD_ROOT%{_libdir}/ray
44 )
45
46 for i in meta cv gen ot rt px util cal/{ev,calc,rcalc,util}; do
47     make -C src/$i -f Rmakefile install \
48         "DESTDIR=$RPM_BUILD_ROOT" \
49         "INSTDIR=%{_bindir}" \
50         "LIBDIR=%{_libdir}/ray"
51 done
52
53 for i in 1 3 5; do
54         install doc/man/man$i/*.$i $RPM_BUILD_ROOT%{_mandir}/man$i
55 done
56
57 # note: doc/*.1 are ordinary groff files, not manuals
58 gzip -9nf doc/ps/* doc/notes/* doc/digest/* README doc/*.1
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/*
66 %{_libdir}/ray
67 %{_mandir}/man?/*
68 %doc doc/ps doc/notes/* doc/digest doc/*.1.gz README.gz
This page took 0.055164 seconds and 2 git commands to generate.