%define version 0.3.2 %define release 1 Summary: A modular command line calculator Name: Rascal Version: %{version} Release: %{release} Copyright: GPL Group: Applications/Engineering Source: http://prdownloads.sourceforge.net/rascal/rascal-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-buildroot %description Rascal, the Advanced Scientific CALculator, is a platform-independent modular calculator. It is based on modules for supporting its various data types, and it can be easily extended with existing C or C++ code. The available modules are integers, long numbers, doubles, strings, vectors, matrices, complex numbers, Taylor arithmetic (automatic differentiation), and fractions. %prep %setup -q %build make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" make grascal make doc make html %install install -m 0755 -d $RPM_BUILD_ROOT/usr install -m 0755 -d $RPM_BUILD_ROOT/usr/local install -m 0755 -d $RPM_BUILD_ROOT/usr/local/bin install -m 0755 -d $RPM_BUILD_ROOT/usr/local/doc install -m 0755 -d $RPM_BUILD_ROOT/usr/local/man install -m 0755 -d $RPM_BUILD_ROOT/usr/local/man/man1 install -m 0755 -d $RPM_BUILD_ROOT/usr/share install -m 0755 -d $RPM_BUILD_ROOT/usr/share/applnk install -m 0755 -d $RPM_BUILD_ROOT/usr/share/applnk/Utilities install -m 0755 -d $RPM_BUILD_ROOT/usr/share/gnome install -m 0755 -d $RPM_BUILD_ROOT/usr/share/gnome/apps install -m 0755 -d $RPM_BUILD_ROOT/usr/share/gnome/apps/Utilities make install PREFIX=$RPM_BUILD_ROOT/usr %files %defattr (-,root,root) /usr/local/bin/rascal /usr/local/bin/grascal /usr/local/bin/rascal.rc /usr/local/doc/rascal/* /usr/local/man/man1/rascal.1.gz /usr/share/applnk/Utilities/rascal-kde.desktop /usr/share/gnome/apps/Utilities/rascal-gnome.desktop