###############################################################################
name = bc
-version = 1.06
-release = 0
+version = 1.07.1
+release = 1
groups = System/Tools
-url = http://www.gnu.org/software/bc/
+url = https://www.gnu.org/software/bc/
license = GPLv2+
summary = bc is an arbitrary precision numeric processing language.
description
- bc is a language that supports arbitrary precision numbers with \
- interactive execution of statements. There are some similarities in the \
+ bc is a language that supports arbitrary precision numbers with
+ interactive execution of statements. There are some similarities in the
syntax to the C programming language.
end
-source_dl = http://ftp.gnu.org/gnu/bc/
+source_dl = https://ftp.gnu.org/gnu/bc/
build
requires
+ ed
flex
+ readline-devel
+ texinfo
end
configure_options += \
- --mandir=/usr/share/man \
- --disable-static
-
- prepare_cmds
- sed -i '/PROTO.*readline/d' bc/scan.l
- sed -i '/flex -I8/s/8//' configure
- sed -i '/stdlib/a #include <string.h>' lib/number.c
- sed -i 's/program.*save/static &/' bc/load.c
+ --with-readline
+
+ test
+ echo "quit" | ./bc/bc -l Test/checklib.b
end
end
packages
package %{name}
- end
package %{name}-debuginfo
template DEBUGINFO