]> git.pld-linux.org Git - packages/Radiance.git/blobdiff - Radiance.spec
- buildrequires tk(wish), nosource 1 (i thing that patch has non-free license too)
[packages/Radiance.git] / Radiance.spec
index 06783cab51127eafc4197ebc691faf0911fe4ce8..035c44b54c92eebda7c43c0db5b14aabc39e3ca0 100644 (file)
@@ -1,14 +1,17 @@
-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
+Version:       3R4
 Release:       1
+License:       free use, but non-distributable
 Group:         Applications/Graphics
-Group(pl):     Aplikacje/Grafika
-License:       distributable
-Source0:       http://radsite.lbl.gov/radiance/pub/%{filename}%{version}.tar.Z
+Source0:       http://radsite.lbl.gov/radiance/pub/rad%{version}.tar.gz
+Source1:       http://radsite.lbl.gov/radiance/pub/patch%{version}p1.tar.gz
 Patch0:                %{name}-PLD.patch
+Patch1:                %{name}-rview-conflict.patch
+NoSource:      0
+NoSource:      1
+BuildRequires: tk
 URL:           http://radsite.lbl.gov/radiance/HOME.html
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -16,42 +19,50 @@ 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
+tar xvfz %{SOURCE1}
 %patch0 -p1
+#%patch1 -p0
 
-%build
+#(cd doc/man/man1 ; mv -f rview.1 radview.1)
+install -d src/lib
 
+%build
+for i in common meta cv gen ot rt px hd util cal/{ev,calc,rcalc,util}; do
+    make -C src/$i -f Rmakefile \
+       OPT="%{rpmcflags} -DSPEED=200" CC="%{__cc}" \
+       ARCH="IBMPC" \
+       MACH="-DBSD -Dlinux -Dtracktime=0 -DDCL_ATOF -DBIGMEM -DNOSTEREO -L/usr/X11R6/lib -I/usr/include/X11" \
+       MLIBDIR="%{_libdir}/ray/meta" \
+       COMPAT="bmalloc.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 hd 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
+
+# fix for inproper links
+for i in fax2ps.1 fax2tiff.1 gif2tiff.1 pal2rgb.1 ppm2tiff.1 ras2tiff.1 rgb2ycbcr.1 sgi2tiff.1 thumbnail.1; do 
+       ln -sf ../../../src/px/tiff/man/$i doc/man/man1/
 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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -59,6 +70,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/*.1* README*
This page took 0.435503 seconds and 4 git commands to generate.