]> git.pld-linux.org Git - packages/Radiance.git/blobdiff - Radiance.spec
- cleanups
[packages/Radiance.git] / Radiance.spec
index 06783cab51127eafc4197ebc691faf0911fe4ce8..696b906bf5d2f37e49758c284e9fee8e1b8a8c5e 100644 (file)
@@ -1,14 +1,16 @@
-Summary:       Radiance 3D Photo-Realistic Renderer.
-Summary(pl):   3D fotorealistyczny program do renderowania scen.
+Summary:       Radiance 3D Photo-Realistic Renderer
+Summary(pl):   Fotorealistyczny program do renderowania scen 3D.
 Name:          Radiance
-%define filename rad
 Version:       3r1p8
 Release:       1
 Group:         Applications/Graphics
+Group(de):     Applikationen/Grafik
 Group(pl):     Aplikacje/Grafika
-License:       distributable
-Source0:       http://radsite.lbl.gov/radiance/pub/%{filename}%{version}.tar.Z
+License:       free use, but non-distributable
+Source0:       http://radsite.lbl.gov/radiance/pub/rad%{version}.tar.Z
 Patch0:                %{name}-PLD.patch
+Patch1:                %{name}-rview-conflict.patch
+NoSource:      0
 URL:           http://radsite.lbl.gov/radiance/HOME.html
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -16,42 +18,46 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Advenced 3D Photo-Realistic Renderer.
 
 %description -l pl
-Zaawansowany program do 3D modelowania scen.
+Zaawansowany program do modelowania scen 3D.
 
 %prep
 %setup  -q -n ray
 %patch0 -p1
+%patch1 -p1
 
-%build
+(cd doc/man/man1 ; mv -f rview.1 radview.1)
 
+%build
+for i in common meta cv gen ot rt px util cal/{ev,calc,rcalc,util}; do
+    make -C src/$i -f Rmakefile \
+       OPT="%{rpmcflags}" CC="%{__cc}" \
+       ARCH="IBMPC" \
+       MACH="-DBSD -Dlinux -DSPEED=40 -DDCL_ATOF -DBIGMEM -L/usr/X11R6/lib" \
+       MLIBDIR="%{_libdir}/ray/meta" \
+       COMPAT="malloc.o erf.o getpagesize.o"
+done
+       
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ray,%{_mandir}/man{1,3,5}}
-(cd lib; tar cf - * )|(cd $RPM_BUILD_ROOT%{_libdir}/ray ; tar xf -)
-cd src
-KAT=`pwd`
-for i in common meta cv gen ot rt px util cal/{ev,calc,rcalc,util};
-do
- cd $i
- make \
-       "OPT=%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" \
+
+(cd lib
+tar cf - * | tar xf - -C $RPM_BUILD_ROOT%{_libdir}/ray
+)
+
+for i in meta cv gen ot rt px util cal/{ev,calc,rcalc,util}; do
+    make -C src/$i -f Rmakefile install \
        "DESTDIR=$RPM_BUILD_ROOT" \
-"MACH=-DBSD -Dlinux -DSPEED=40 -DDCL_ATOF -DBIGMEM -L%{_prefix}/X11R6/lib" \
-    "ARCH=IBMPC" \
-       "COMPAT=malloc.o erf.o getpagesize.o" \
-    "INSTDIR=%{_bindir}" \
-    "LIBDIR=%{_libdir}/ray" \
-       "CC=gcc" \
-    -f Rmakefile install
- cd $KAT
+       "INSTDIR=%{_bindir}" \
+       "LIBDIR=%{_libdir}/ray"
 done
-cd ..
+
 for i in 1 3 5; do
- install doc/man/man$i/*.$i $RPM_BUILD_ROOT%{_mandir}/man$i/;
-done;
-install doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
-gzip -9nf doc/ps/* doc/notes/* doc/digest/*
+       install doc/man/man$i/*.$i $RPM_BUILD_ROOT%{_mandir}/man$i
+done
+
+# note: doc/*.1 are ordinary groff files, not manuals
+gzip -9nf doc/ps/* doc/notes/* doc/digest/* README doc/*.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -59,6 +65,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
-%{_libdir}/ray/
+%{_libdir}/ray
 %{_mandir}/man?/*
-%doc doc/ps doc/notes/* doc/digest README
+%doc doc/ps doc/notes/* doc/digest doc/*.1.gz README.gz
This page took 0.080264 seconds and 4 git commands to generate.