diff --git a/README.md b/README.md index be5276e..04e2de3 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,3 @@ 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. - diff --git a/bc-1.06-configure_flex.patch b/bc-1.06-configure_flex.patch deleted file mode 100644 index c79e903..0000000 --- a/bc-1.06-configure_flex.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- bc-1.06/configure.orig 2007-12-04 10:29:01.000000000 +0100 -+++ bc-1.06/configure 2007-12-04 10:29:42.000000000 +0100 -@@ -2245,7 +2245,7 @@ - - - if test "$LEX" = "flex" ; then -- LEX="flex -I8" -+ LEX="flex -I -8" - else - if test "$bcrl" = "y" ; then - echo "configure: warning: readline works only with flex." 1>&2 diff --git a/bc-1.06-info_exp_bessel.patch b/bc-1.06-info_exp_bessel.patch deleted file mode 100644 index e3e778d..0000000 --- a/bc-1.06-info_exp_bessel.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- bc-1.06/doc/bc.info.info_exp_bessel 2003-08-12 14:57:45.000000000 +0200 -+++ bc-1.06/doc/bc.info 2003-08-12 14:57:51.000000000 +0200 -@@ -664,10 +664,10 @@ - `l (X)' - The natural logarithm of X. - --`E (X)' -+`e (X)' - The exponential function of raising E to the value X. - --`J (N,X)' -+`j (N,X)' - The bessel function of integer order N of X. - -  diff --git a/bc-1.06-readline42.patch b/bc-1.06-readline42.patch deleted file mode 100644 index 37dfaf5..0000000 --- a/bc-1.06-readline42.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- bc-1.06/bc/scan.l.sux Fri May 11 14:27:20 2001 -+++ bc-1.06/bc/scan.l Fri May 11 14:27:32 2001 -@@ -143,7 +143,6 @@ - - /* Definitions for readline access. */ - extern FILE *rl_instream; --_PROTOTYPE(char *readline, (char *)); - - /* rl_input puts upto MAX characters into BUF with the number put in - BUF placed in *RESULT. If the yy input file is the same as diff --git a/bc-1.06-string.patch b/bc-1.06-string.patch deleted file mode 100644 index 2ec471b..0000000 --- a/bc-1.06-string.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- bc-1.06/lib/number.c.string 2007-07-26 15:01:34.000000000 +0200 -+++ bc-1.06/lib/number.c 2007-07-26 15:01:41.000000000 +0200 -@@ -34,6 +34,7 @@ - #include - #include - #include -+#include - #include /* Prototypes needed for external utility routines. */ - - #define bc_rt_warn rt_warn diff --git a/bc.spec b/bc.spec index dd69e8e..4ada6d7 100644 --- a/bc.spec +++ b/bc.spec @@ -1,22 +1,17 @@ Name: bc Version: 1.07.1 -Release: 2mamba +Release: 3mamba Summary: GNU interactive algebraic language Group: Applications/Mathematics Vendor: openmamba Distribution: openmamba -Packager: Aleph0 -URL: http://www.gnu.org/directory/GNU/bc.html +Packager: Silvan Calarco +URL: https://directory.fsf.org/wiki/GNU/bc Source: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz 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: ldconfig BuildRequires: libfl-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel @@ -26,7 +21,6 @@ BuildRequires: bison BuildRequires: texinfo BuildRequires: ed Requires(post): %{__install_info} -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Bc is an arbitrary precision numeric processing language. @@ -34,19 +28,12 @@ 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. - %debug_package %prep %setup -q %define _default_patch_fuzz 2 %patch0 -p1 -#%patch1 -p1 -#%patch2 -p1 -#%patch3 -p1 -#%patch4 -p1 %build %configure --with-readline @@ -56,6 +43,8 @@ This version has a single executable that both compiles the language and runs th [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeoldinstall +rm -f %{buildroot}%{_infodir}/dir + %post %install_info %{name}.info %install_info dc.info @@ -81,6 +70,9 @@ exit 0 # FAQ NEWS README Examples/* Changelog %changelog +* Fri May 10 2024 Silvan Calarco 1.07.1-3mamba +- specfile cleanups + * Sat Nov 28 2020 Silvan Calarco 1.07.1-2mamba - rebuilt with debug package