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