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