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