Name: gexpr Version: 2.0.2 Release: 1 Summary: gexpr - a handy shell calculator Copyright: GPL URL: ftp://metalab.unc.edu:/pub/Linux/apps/math/calc Group: Science/Math Prefix: /usr BuildRoot: /var/tmp/%{name}-%{version} Source: ftp://metalab.unc.edu:/pub/Linux/apps/math/calc/gexpr-%{version}.tar.gz %description gexpr is a shell calculator with floating point, standard C functions, relational operators, and output in base 2/8/10/16. It is a light alternative to bc(1). It can also be used to add floating point math to shell scripts. %prep %setup %build make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 /usr/bin/install -s -m 755 gexpr $RPM_BUILD_ROOT/usr/bin /usr/bin/install -m 644 gexpr.1 $RPM_BUILD_ROOT%{_mandir}/man1 %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-, root, root) /usr/bin/gexpr %{_mandir}/man1/gexpr.1* %doc COPYING README gexpr.lsm gexpr.spec