%define offrel 2 Name: euler Summary: euler - doing mathematics interactively Copyright: GPL Group: Productivity/Scientific/Math Version: 1.60 Release: %{offrel}.mv.1.SuSE9.2 Packager: Martin Väth Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-%{offrel}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} %description EULER is a program for quickly and interactively computing with real and complex numbers and matrices, or with intervals. It can draw your functions in two and three dimensions. However, it should be stressed that EULER is not a computer algebra program. In general, those algebra programs are much slower than numerical programs. They simply serve a different purpose. %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c %else %setup -c -q test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . %patch0 -p0 %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} %if %{?fake:%fake}%{!?fake:0} %else cd source export CFLAGS="${CFLAGS:-%optflags} -DINSTALL_DIR=\\\"%{_prefix}\\\"" make CC="gcc $CFLAGS" strip euler %endif %install %define eulerdata %{_datadir}/euler umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' install -d -m 755 '%{buildroot}%{eulerdata}' cp -pr progs '%{buildroot}%{eulerdata}' chmod -R u+w,a+rX,go-w '%{buildroot}%{eulerdata}' cd source install -d -m 755 '%{buildroot}%{_bindir}' install -p -m 755 euler '%{buildroot}%{_bindir}' install -p -m 644 help.txt '%{buildroot}%{eulerdata}' cd .. %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %doc ChangeLog README TODO dll docs %{_bindir}/euler %{eulerdata} %changelog * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Fri Oct 31 2003 Martin Väth - built from scratch