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