]> git.pld-linux.org Git - packages/Radiance.git/blob - Radiance.spec
- buildrequires tk(wish), nosource 1 (i thing that patch has non-free license too)
[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:        3R4
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.gz
9 Source1:        http://radsite.lbl.gov/radiance/pub/patch%{version}p1.tar.gz
10 Patch0:         %{name}-PLD.patch
11 Patch1:         %{name}-rview-conflict.patch
12 NoSource:       0
13 NoSource:       1
14 BuildRequires:  tk
15 URL:            http://radsite.lbl.gov/radiance/HOME.html
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Advenced 3D Photo-Realistic Renderer.
20
21 %description -l pl
22 Zaawansowany program do modelowania scen 3D.
23
24 %prep
25 %setup  -q -n ray
26 tar xvfz %{SOURCE1}
27 %patch0 -p1
28 #%patch1 -p0
29
30 #(cd doc/man/man1 ; mv -f rview.1 radview.1)
31 install -d src/lib
32
33 %build
34 for i in common meta cv gen ot rt px hd util cal/{ev,calc,rcalc,util}; do
35     make -C src/$i -f Rmakefile \
36         OPT="%{rpmcflags} -DSPEED=200" CC="%{__cc}" \
37         ARCH="IBMPC" \
38         MACH="-DBSD -Dlinux -Dtracktime=0 -DDCL_ATOF -DBIGMEM -DNOSTEREO -L/usr/X11R6/lib -I/usr/include/X11" \
39         MLIBDIR="%{_libdir}/ray/meta" \
40         COMPAT="bmalloc.o erf.o getpagesize.o"
41 done
42         
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ray,%{_mandir}/man{1,3,5}}
46
47 (cd lib
48 tar cf - * | tar xf - -C $RPM_BUILD_ROOT%{_libdir}/ray
49 )
50
51 for i in meta cv gen ot rt px hd util cal/{ev,calc,rcalc,util}; do
52     make -C src/$i -f Rmakefile install \
53         "DESTDIR=$RPM_BUILD_ROOT" \
54         "INSTDIR=%{_bindir}" \
55         "LIBDIR=%{_libdir}/ray"
56 done
57
58 # fix for inproper links
59 for i in fax2ps.1 fax2tiff.1 gif2tiff.1 pal2rgb.1 ppm2tiff.1 ras2tiff.1 rgb2ycbcr.1 sgi2tiff.1 thumbnail.1; do 
60         ln -sf ../../../src/px/tiff/man/$i doc/man/man1/
61 done
62
63 for i in 1 3 5; do
64         install doc/man/man$i/*.$i $RPM_BUILD_ROOT%{_mandir}/man$i
65 done
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/*
73 %{_libdir}/ray
74 %{_mandir}/man?/*
75 %doc doc/ps doc/notes/* doc/*.1* README*
This page took 0.078199 seconds and 4 git commands to generate.