%define name xd3d %define version 8.3.1 %define release %mkrel 5 # Don't support by g95 %define _ssp_cflags %nil %define g95flags %( echo %optflags | sed 's/-mtune=[^ ]*//' ) Summary: A simple scientific visualization tool Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.gz License: GPL Group: Sciences/Other Url: http://www.cmap.polytechnique.fr/~jouve/xd3d/ BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: g95 BuildRequires: libxpm-devel Buildrequires: X11-devel %description Xd3d is a simple scientific visualization tool designed to be easy to learn. It can plot 2d and 3d meshes, with shadowing, contour plots, vector fields, iso-contour (3d), as well as 3d surfaces z=f(x,y) defined by an algebraic expression or a cloud of points. It generates high quality vector PostScript files for scientific publications and still or animated bitmap images. It includes the graph plotter xgraphic. %prep %setup -q perl -pi -e "s!^XD3D_DIR =.*!XD3D_DIR = `pwd`!" RULES perl -pi -e 's!^INSTALL_DIR =.*!INSTALL_DIR = %_bindir!' RULES perl -pi -e 's!^OPTC =.*!OPTC = %g95flags!' RULES perl -pi -e 's!^OPTF =.*!OPTF = %g95flags!' RULES perl -pi -e 's!^LIBX11 =.*!LIBX11 = %_prefix/X11R6/%_lib!' RULES perl -pi -e 's!^COMPILF =.*!COMPILF = g95!' RULES %build %make %install rm -rf $RPM_BUILD_ROOT mkdir -p %buildroot%_bindir %make install INSTALL_DIR=%buildroot%_bindir %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGELOG BUGS FORMATS README %doc Examples Manuals %_bindir/* %changelog * Sun Aug 03 2008 Thierry Vignaud <tvignaud@mandriva.com> 8.3.1-5mdv2009.0 + Revision: 262305 - rebuild * Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 8.3.1-4mdv2009.0 + Revision: 256690 - rebuild * Sat Feb 09 2008 Olivier Thauvin <nanardon@mandriva.org> 8.3.1-2mdv2008.1 + Revision: 164524 - fix ix86 g95 flags - 8.3.1 - don't use stask-protector CFLAGS as g95 don't handle it + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request - import xd3d * Sat Dec 31 2005 Olivier Thauvin <nanardon@mandriva.org> 8.2.3-1mdk - 8.2.3 * Fri Dec 23 2005 Nicolas Lécureuil <neoclust@mandriva.org> 8.2.2-2mdk - Fix BuildRequires (s/gcc-g77/gcc-gfortran/) - use mkrel * Tue Nov 16 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 8.2.2-1mdk - First mdk contrib