Name: bc Version: 1.06.95 Release: 1mamba Summary: GNU interactive algebraic language Group: Applications/Mathematics Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.gnu.org/directory/GNU/bc.html Source: http://alpha.gnu.org/gnu/bc/bc-%{version}.tar.bz2 Patch0: %{name}-1.06-info_direntry.patch Patch1: %{name}-1.06-configure_flex.patch Patch2: %{name}-1.06-info_exp_bessel.patch Patch3: %{name}-1.06-string.patch Patch4: %{name}-1.06-readline42.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel ## AUTOBUILDREQ-END BuildRequires: flex BuildRequires: bison BuildRequires: texinfo Requires(post): %{__install_info} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Bc is an arbitrary precision numeric processing language. Syntax is similar to C, but differs in many substantial areas. It supports interactive execution of statements. Bc is a utility included in the POSIX P1003.2/D11 draft standard. This version does not use the historical method of having bc be a calculator for the dc calculator (the POSIX document doesn't specify how bc must be implemented). This version has a single executable that both compiles the language and runs the resulting 'byte code.' The byte code is not the dc language. %prep %setup -q %patch0 -p1 #%patch1 -p1 #%patch2 -p1 #%patch3 -p1 #%patch4 -p1 %build %configure --with-readline %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeoldinstall %post %install_info %{name}.info %install_info dc.info exit 0 %preun %uninstall_info %{name}.info %uninstall_info dc.info exit 0 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/%{name} %{_bindir}/dc %{_infodir}/%{name}.* %{_infodir}/dc.* %{_mandir}/man1/%{name}.* %{_mandir}/man1/dc.* %doc AUTHORS COPYING COPYING.LIB # FAQ NEWS README Examples/* Changelog %changelog * Sat Feb 01 2014 Silvan Calarco 1.06.95-1mamba - update to 1.06.95 * Sat Mar 23 2013 Silvan Calarco 1.06-5mamba - rebuilt with libreadline 6.2 * Tue Dec 04 2007 Aleph0 1.06-4mamba - new package mantainer - fixed compilation warnings - fixed some documentation bugs about exp and bessel functions - rebuilt with readline support * Tue Jun 20 2006 Stefano Cotta Ramusino 1.06-3qilnx - added info file patch * Wed Sep 28 2005 Davide Madrisan 1.06-2qilnx - install/uninstall info files * Fri Feb 06 2004 Davide Madrisan - first build