Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > aed8cb4a827b21ae0e889528e5064ec8 > files > 2

xd3d-8.2.2-1mdk.src.rpm

%define name xd3d
%define version 8.2.2
%define release 1mdk

Summary: A simple scientific visualization tool
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Sciences/Other
Url: http://www.cmap.polytechnique.fr/~jouve/xd3d/
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: gcc-g77
BuildRequires: libxpm-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 = %optflags!' RULES
perl -pi -e 's!^OPTF =.*!OPTF = %optflags!' 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
* Tue Nov 16 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 8.2.2-1mdk
- First mdk contrib