Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37554730
en ru br
ALT Linux repos
S:1.07.1-alt1
5.0: 1.06-alt2
4.1: 1.06-alt2
4.0: 1.06-alt2
3.0: 1.06-ipl6mdk

Group :: Sciences/Mathematics
RPM: bc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: bc
Version: 1.06
Release: alt2
Serial: 1

Summary: GNU's bc (a numeric processing language) and dc (a calculator)
License: GPL
Group: Sciences/Mathematics
Url: http://www.gnu.org/software/bc/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.gnu.org/gnu/bc/bc-%version.tar.gz

Source: bc-%version.tar

Patch1: bc-1.06-alt-texinfo.patch
Patch2: bc-1.06-alt-readline.patch
Patch3: bc-1.06-alt-warnings.patch
Patch4: bc-1.06-owl-functions-fix.patch
Patch5: bc-1.06-deb-17.patch

Requires(post): %install_info
Requires(preun): %uninstall_info

# Automatically added by buildreq on Sun Jun 30 2002

BuildRequires: flex libreadline-devel

%description
This package includes bc and dc.  bc implements a numeric processing
language with interactive execution of statements.  dc is a stack-based
calculator.  Both bc and dc support arbitrary precision arithmetic.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
rm bc/{bc,scan}.c
sed -i 's/getopt[1]\?\.c //g' lib/Makefile.am
find -type f -name getopt\* -delete

%build
%add_optflags -fno-strict-aliasing
autoreconf -fisv
export ac_cv_lib_termcap_tgetent=no ac_cv_lib_ncurses_tparm=no
%configure --with-readline
%make_build

%install
%makeinstall

%post
%install_info {bc,dc}.info

%preun
%uninstall_info {bc,dc}.info

%files
%_bindir/*
%_mandir/man?/*
%_infodir/*.info*
%doc Examples AUTHORS FAQ NEWS README

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin