Compare commits

...

89 commits

Author SHA1 Message Date
Fedora Release Engineering
72d26b5c74 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:36:29 +00:00
Lukáš Zaoral
f17b418fdb
tests: migrate STI tests to TMT
Related: https://fedoraproject.org/wiki/Changes/DisableSTI
2025-07-04 10:40:33 +02:00
Mikel Olasagasti Uranga
82fdb05bc9 Update to 1.08.2 - Closes rhbz#2368486 2025-06-26 17:57:07 +02:00
Mikel Olasagasti Uranga
0fb9c8702b Misc changes
- Verify gpg signature
- Change to https links
- Misc changes to spec
2025-03-05 17:17:16 +01:00
Fedora Release Engineering
b9f98d075e Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 12:19:07 +00:00
Sérgio M. Basto
7d2458a246 Update to 1.08.1 (#2335123) 2025-01-14 12:51:26 +00:00
Fedora Release Engineering
14d5ed33c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 18:07:38 +00:00
Fedora Release Engineering
a0510c2628 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-23 00:11:02 +00:00
Fedora Release Engineering
18a1a12a83 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 14:14:15 +00:00
Fedora Release Engineering
a0c0551a54 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 14:25:51 +00:00
Sérgio M. Basto
d82ff7769a Migrate to SPDX license format 2023-06-25 01:04:35 +01:00
Fedora Release Engineering
73e922f702 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 22:43:22 +00:00
Fedora Release Engineering
82c0a8840b Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 21:49:39 +00:00
Fedora Release Engineering
c8911aacfc - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 22:11:13 +00:00
Pádraig Brady
c5e317aba0 echo empty lines
readline doesn't echo empty lines (when not using a prompt),
so adjust bc to echo empty lines, which is very useful
to delimit interactive input
2021-10-08 14:40:08 +01:00
Fedora Release Engineering
f0c7c363e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 18:27:22 +00:00
Fedora Release Engineering
2359b455b7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 13:31:04 +00:00
Fedora Release Engineering
11789df9a4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 00:59:59 +00:00
Tom Stellard
569a290fe3 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-17 02:46:11 +00:00
Fedora Release Engineering
460fca1173 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 12:58:27 +00:00
Fedora Release Engineering
d0021b34a0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 12:46:29 +00:00
Fedora Release Engineering
b87f01fe8a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 19:06:10 +00:00
Igor Gnatenko
63a70f531e Rebuild for readline 8.0 2019-02-17 09:30:49 +01:00
Fedora Release Engineering
961fa3dfdf - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 14:27:45 +00:00
Igor Gnatenko
e1cc383538
Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-27 15:25:14 +01:00
Fedora Release Engineering
c8a3f66a01 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 20:58:41 +00:00
Igor Gnatenko
affd21a90b add BuildRequires: gcc
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-07-09 19:06:42 +02:00
Serhii Turivnyi
7b9ad57ccd Add CI tests using the standard test interface 2018-05-07 17:38:28 +03:00
Serhii Turivnyi
e6977d878e Add CI tests using the standard test interface 2018-05-07 12:30:50 +03:00
Fedora Release Engineering
1b15ffcfbe - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 03:39:34 +00:00
Vascom
7f986e4bb2 Cleanup spec. 2017-09-13 14:05:44 +03:00
Fedora Release Engineering
29d2280b6d - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 18:09:08 +00:00
Fedora Release Engineering
e37e7d9dd4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 03:49:51 +00:00
Kevin Fenzi
730b39dce0 Update to 1.07.1
Fixes a bug that breaks kernel builds ( https://bugs.archlinux.org/task/53546 )
2017-05-15 19:35:08 -06:00
Ondřej Vašík
9ff845523d add build dep on ed 2017-05-15 12:05:16 +02:00
Ondřej Vašík
f5bfd3f764 build seems to be racy now, removing parallel build for now 2017-05-15 11:45:01 +02:00
Ondřej Vašík
ae3fd40189 upload sources 2017-05-10 15:26:41 +02:00
Ondřej Vašík
29954f7629 new upstream version 1.07, dropped patches already appllied in usptream version 2017-05-10 15:22:26 +02:00
Stephen Gallagher
2cdfa698bf Install COPYING[.*] using the %license macro 2017-02-06 15:19:18 +01:00
Igor Gnatenko
03af6adffe Rebuild for readline 7.x
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 17:30:24 +01:00
Dennis Gilmore
7997fbadf8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 16:55:34 +00:00
Dennis Gilmore
e270433855 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 01:39:59 +00:00
Till Maas
142e7ac825 Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
2015-02-21 22:18:08 +01:00
Peter Robinson
d66f60fa62 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-15 22:22:08 +00:00
Dennis Gilmore
ae88d603c3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 21:42:20 -05:00
Frantisek Kluknavsky
12f199f56c man and info patched - clarified scale after multiplication 2013-10-02 13:49:07 +02:00
Frantisek Kluknavsky
93598df500 man and info patched - clarified scale after multiplication 2013-10-02 13:48:24 +02:00
Dennis Gilmore
8079f01710 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-02 22:11:05 -05:00
Dennis Gilmore
25a092e5af - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 11:38:54 -06:00
Frantisek Kluknavsky
54701e0b89 Minor spec cleanup 2012-11-20 10:09:39 +01:00
Dennis Gilmore
4cb21fb4f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 12:37:38 -05:00
Dennis Gilmore
350d75e67d - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 16:21:31 -06:00
Dennis Gilmore
1fa3a39d00 - Rebuilt for glibc bug#747377 2011-10-26 18:38:29 -05:00
Ondřej Vašík
e9cb8d59c2 do not mask SIGINT in dc when reading from stdin (#697340) 2011-09-08 15:31:16 +02:00
Dennis Gilmore
09250fc30d - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 22:31:16 -06:00
Ondřej Vašík
1915e07475 fix possible segfault in arrays handling(debbug #586969), initialize f_void to work with math lib again(#664080) 2010-12-22 10:34:13 +01:00
Fedora Release Engineering
7aa4f807bb dist-git conversion 2010-07-28 10:51:02 +00:00
Bill Nottingham
d7e1f16866 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:43:50 +00:00
Ondrej Vasik
6df7a16790 add missing BR for texinfo 2009-09-24 08:11:15 +00:00
Ondrej Vasik
67f4fbe1e3 add build requires for bison 2009-09-24 08:03:54 +00:00
Ondrej Vasik
35984ba60f update to upstream alpha 1.06.95 (in use in Gentoo, Slackware for quite a
long time, marked stable there), removed already applied patches, fix
    small memory leak (gentoo patch)
2009-09-24 07:42:06 +00:00
Zdenek Prikryl
13ae359249 removed conflict indicator 2009-08-20 07:38:00 +00:00
Zdenek Prikryl
6163ef1354 Don't complain if installing with --excludedocs (#515934) 2009-08-20 07:37:28 +00:00
Jesse Keating
10f084e9e5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-24 17:54:08 +00:00
Jesse Keating
4b3272d9fc - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-24 04:14:44 +00:00
Jesse Keating
d657521fdd - Autorebuild for GCC 4.3 2008-02-20 08:48:53 +00:00
Zdenek Prikryl
14a2aa66b1 Added Examples directory into doc Added bc info file 2008-01-04 10:07:55 +00:00
Zdenek Prikryl
cd902195b5 added the Examples directory to %doc 2007-12-14 12:53:18 +00:00
Štěpán Kasal
4658324ce7 do not run autofoo, fix the Licence tag 2007-12-14 10:46:39 +00:00
Štěpán Kasal
ea6d36ea0d Remove bc-1.06-flex.patch 2007-12-14 10:21:31 +00:00
Zdenek Prikryl
23a2b2ae26 Fixed typo 2007-12-07 08:50:36 +00:00
Zdenek Prikryl
697e9b8c80 Package review (#225611) 2007-12-07 08:46:25 +00:00
Bill Nottingham
d91f8a97ca makefile update to properly grab makefile.common 2007-10-15 18:38:24 +00:00
Zdenek Prikryl
df53711af2 update of source URI 2007-09-18 08:11:50 +00:00
Zdenek Prikryl
2ddea37aab correct day in changelog 2007-08-22 06:50:27 +00:00
Zdenek Prikryl
a1e3484117 fixed incorrect processing of decimal separator 2007-08-22 06:49:20 +00:00
Zdenek Prikryl
0ef65d232f dc accepts the input which contains wrong symbols of radix in same way like
bc Resolves: #151844 Added library string.h to remove warnings.
2007-07-26 14:02:50 +00:00
Thomas Woerner
c5e5d6bf96 [tw]
- removed grep and mktemp usage from post script, also the requires
2007-02-26 14:18:11 +00:00
Karsten Hopp
74773878c3 - fex supports -8 now (pmachata) 2007-02-26 09:04:45 +00:00
Karsten Hopp
1194453cd8 - add flex patch 2007-02-23 11:45:49 +00:00
Karsten Hopp
393dce0f7b - use 'flex -I' instead 'flex -I8' (not supported anymore)
- run autofoo stuff to update files for current automake
2007-02-23 11:31:44 +00:00
Karsten Hopp
de8956e034 - fix buildroot
- remove trailing dot from summary
- fix post/preun requirements
- use make install DESTDIR=...
- convert changelog to utf-8
- use smp flags
2007-02-23 11:02:21 +00:00
Florian La Roche
cde3b9c3b0 - 223677 2007-01-23 09:57:48 +00:00
Thomas Woerner
83972c8481 [tw]
- using "rebuild for ncurses" according to mlichvar :-)
2007-01-22 13:40:38 +00:00
Thomas Woerner
493adb3955 [tw]
- rebuild for new readline, not ncurses
2007-01-22 13:39:42 +00:00
Thomas Woerner
4d8e68e1e4 [tw]
- rebuild for new ncurses
2007-01-22 13:37:39 +00:00
Jesse Keating
c2f5749dd1 fix missing br 2006-07-12 20:35:13 +00:00
Jesse Keating
fa2bbd6b4e bumped for rebuild 2006-07-12 05:26:08 +00:00
Thomas Woerner
abea439f26 [tw]
- added missing flex build require
2006-06-06 10:02:35 +00:00
16 changed files with 452 additions and 103 deletions

View file

@ -1 +0,0 @@
bc-1.06.tar.bz2

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
bc-1.06.95.tar.bz2
/bc-1.07.tar.gz
/bc-1.07.1.tar.gz
/bc-1.08.1.tar.gz
/bc-1.08.1.tar.xz
/bc-1.08.1.tar.xz.sig
/bc-1.08.2.tar.gz
/bc-1.08.2.tar.gz.sig

View file

@ -1,6 +0,0 @@
# Makefile for source rpm: bc
# $Id$
NAME := bc
SPECFILE = $(firstword $(wildcard *.spec))
include ../common/Makefile.common

58
bc-1.06-dc_ibase.patch Normal file
View file

@ -0,0 +1,58 @@
--- bc-1.06/dc/numeric.c.dc_ibase 2007-08-22 08:37:57.000000000 +0200
+++ bc-1.06/dc/numeric.c 2007-08-22 08:37:40.000000000 +0200
@@ -285,6 +285,8 @@ dc_getnum DC_DECLARG((input, ibase, read
int digit;
int decimal;
int c;
+ int c_buff = 0;
+ int multi = 0;
bc_init_num(&tmp);
bc_init_num(&build);
@@ -302,6 +304,9 @@ dc_getnum DC_DECLARG((input, ibase, read
}
while (isspace(c))
c = (*input)();
+ c_buff = (*input)();
+ if (isdigit(c_buff) || ('A' <= c_buff && c_buff <= 'F') || c_buff == '.')
+ multi = 1;
for (;;){
if (isdigit(c))
digit = c - '0';
@@ -309,10 +314,15 @@ dc_getnum DC_DECLARG((input, ibase, read
digit = 10 + c - 'A';
else
break;
- c = (*input)();
+ digit = multi ? (digit >= ibase ? ibase -1 : digit) : digit;
bc_int2num(&tmp, digit);
bc_multiply(result, base, &result, 0);
bc_add(result, tmp, &result, 0);
+ if (c_buff) {
+ c = c_buff;
+ c_buff = 0;
+ } else
+ c = (*input)();
}
if (c == '.'){
bc_free_num(&build);
@@ -321,13 +331,18 @@ dc_getnum DC_DECLARG((input, ibase, read
build = bc_copy_num(_zero_);
decimal = 0;
for (;;){
- c = (*input)();
+ if (c_buff) {
+ c = c_buff;
+ c_buff = 0;
+ } else
+ c = (*input)();
if (isdigit(c))
digit = c - '0';
else if ('A' <= c && c <= 'F')
digit = 10 + c - 'A';
else
break;
+ digit = digit >= ibase ? ibase -1 : digit;
bc_int2num(&tmp, digit);
bc_multiply(build, base, &build, 0);
bc_add(build, tmp, &build, 0);

View file

@ -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.


View file

@ -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

View file

@ -1,14 +0,0 @@
--- bc-1.06/bc/load.c.s390 Wed Sep 13 20:22:38 2000
+++ bc-1.06/bc/load.c Wed Sep 5 16:10:18 2001
@@ -156,7 +156,10 @@
long label_no;
long vaf_name; /* variable, array or function number. */
long func;
- program_counter save_adr;
+ /* Make save_adr static. Otherwise the whole address save stuff doesn't make
+ any sense at all and break e.g. on S390.
+ 09/05/01 Phil Knirsch <pknirsch@redhat.de> */
+ static program_counter save_adr;
/* Initialize. */
str = code;

24
bc-1.06.95-doc.patch Normal file
View file

@ -0,0 +1,24 @@
diff -up wrk/doc/bc.1.wrk wrk/doc/bc.1
--- wrk/doc/bc.1.wrk 2013-10-02 13:36:52.066295450 +0200
+++ wrk/doc/bc.1 2013-10-02 13:35:22.738553712 +0200
@@ -174,6 +174,8 @@ The result of the expression is the sum
The result of the expression is the difference of the two expressions.
.IP "expr * expr"
The result of the expression is the product of the two expressions.
+If a and b are the scales of the two expressions, then the scale of the result is:
+min(a+b,max(scale,a,b))
.IP "expr / expr"
The result of the expression is the quotient of the two expressions.
The scale of the result is the value of the variable \fBscale\fR.
diff -up wrk/doc/bc.texi.wrk wrk/doc/bc.texi
--- wrk/doc/bc.texi.wrk 2013-10-02 13:17:01.743765518 +0200
+++ wrk/doc/bc.texi 2013-10-02 13:21:04.479870656 +0200
@@ -290,6 +290,8 @@ The result of the expression is the diff
@item expr * expr
The result of the expression is the product of the two expressions.
+If a and b are the scales of the two expressions, then the scale of the result is:
+min(a+b,max(@var{scale},a,b))
@item expr / expr
The result of the expression is the quotient of the two expressions.

View file

@ -0,0 +1,14 @@
diff -Naur bc-1.07.1/bc/scan.l bc-1.07.1-new/bc/scan.l
--- bc-1.07.1/bc/scan.l 2017-04-07 22:20:02.000000000 +0000
+++ bc-1.07.1-new/bc/scan.l 2021-08-14 12:12:33.860991777 +0000
@@ -170,6 +170,10 @@
if (rl_len != 1)
add_history (rl_line);
rl_line[rl_len-1] = '\n';
+ /* readline doesn't echo empty lines without a prompt,
+ so do so here. */
+ if (rl_len == 1)
+ putchar ('\n');
fflush (stdout);
}

312
bc.spec
View file

@ -1,17 +1,24 @@
Summary: GNU's bc (a numeric processing language) and dc (a calculator).
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
Name: bc
Version: 1.06
Release: 19.2.1
License: GPL
URL: http://www.gnu.org/software/bc/
Group: Applications/Engineering
Source: ftp://ftp.gnu.org/gnu/bc/bc-%{version}.tar.bz2
Patch1: bc-1.06-readline42.patch
Patch2: bc-1.06-s390.patch
Patch3: bc-1.06-info_exp_bessel.patch
Prereq: /sbin/install-info grep
Buildroot: %{_tmppath}/%{name}-%{version}-root
Version: 1.08.2
Release: 2%{?dist}
License: GPL-3.0-or-later
URL: https://www.gnu.org/software/bc/
Source0: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig
Source2: kevin_pizzini.asc
Patch1: bc-1.06-dc_ibase.patch
Patch2: bc-1.06.95-doc.patch
Patch3: bc-1.07.1-readline-echo-empty.diff
BuildRequires: bison
BuildRequires: ed
BuildRequires: flex
BuildRequires: gcc
BuildRequires: make
BuildRequires: readline-devel
BuildRequires: texinfo
# for gpg verification
BuildRequires: gnupg2
%description
The bc package includes bc and dc. Bc is an arbitrary precision
@ -23,52 +30,245 @@ Install the bc package if you need its number handling capabilities or
if you would like to use its text mode calculator.
%prep
%setup -q
%patch1 -p1 -b .rl22
%patch2 -p1 -b .s390
%patch3 -p1 -b .info_exp_bessel
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1
%build
autoconf
%configure --with-readline
make
%make_build
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
gzip -n -9f $RPM_BUILD_ROOT/%{_infodir}/*
%clean
rm -rf $RPM_BUILD_ROOT
%post
# previous versions of bc put an improper entry into %{_infodir}/dir -- remove
# it
if grep 'dc: (bc)' %{_infodir}/dir > /dev/null; then
tmpfile=`mktemp ${_infodir}/dir.XXXXXX`
grep -v 'The GNU RPN calculator' < %{_infodir}/dir > $tmpfile
mv -f $tmpfile %{_infodir}/dir
fi
/sbin/install-info %{_infodir}/dc.info.gz %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator."
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/dc.info.gz %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator."
fi
%make_install
rm -f %{buildroot}/%{_infodir}/dir
%files
%defattr(-,root,root)
%doc COPYING COPYING.LIB FAQ AUTHORS NEWS README
/usr/bin/dc
/usr/bin/bc
%{_mandir}/*/*
%{_infodir}/*
%license COPYING COPYING.LIB
%doc FAQ AUTHORS NEWS README Examples/
%{_bindir}/dc
%{_bindir}/bc
%{_mandir}/man1/bc.1*
%{_mandir}/man1/dc.1*
%{_infodir}/bc.info*
%{_infodir}/dc.info*
%changelog
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.08.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Jun 26 2025 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.08.2-1
- Update to 1.08.2 - rhbz#2368486
* Wed Mar 05 2025 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.08.1-3
- Verify gpg signature
- Change to https links
- Misc changes
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.08.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Jan 06 2025 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.08.1-1
- Update to 1.08.1 (#2335123)
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sun Jun 25 2023 Sérgio Basto <sergio@serjux.com> - 1.07.1-18
- Migrate to SPDX license format
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Aug 14 2021 Pádraig Brady <P@draigBrady.com> - 1.07.1-14
- Echo empty lines, useful for delimiting work
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.07.1-8
- Rebuild for readline 8.0
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Sep 13 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 1.07.1-4
- Cleanup spec
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon May 15 2017 Kevin Fenzi <kevin@scrye.com> - 1.07.1-1https://bugs.archlinux.org/task/53546
- Update to 1.07.1
- Fixes a bug that breaks kernel builds ( https://bugs.archlinux.org/task/53546 )
* Mon May 15 2017 Ondrej Vasik <ovasik@redhat.com> - 1.07-2
- build seems to be racy now, removing parallel build for now
- add build dep on "ed"
* Wed May 10 2017 Ondrej Vasik <ovasik@redhat.com> - 1.07-1
- new upstream version 1.07, dropped patches already appllied
in usptream version
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.06.95-18
- Install COPYING[.*] using the %%license macro
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.06.95-17
- Rebuild for readline 7.x
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.06.95-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.06.95-14
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Oct 02 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.06.95-11
- man and info patched - clarified scale after multiplication
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Oct 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-8
- Minor spec cleanup
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-5
- Rebuilt for glibc bug#747377
* Thu Sep 08 2011 Ondrej Vasik <ovasik@redhat.com> 1.06.95-4
- do not mask SIGINT in dc when reading from stdin (#697340)
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 22 2010 Ondrej Vasik <ovasik@redhat.com> 1.06.95-2
- fix possible segfault in arrays handling(debbug #586969)
- initialize f_void to work with math lib again(#664080)
* Thu Sep 24 2009 Ondrej Vasik <ovasik@redhat.com> 1.06.95-1
- update to upstream alpha 1.06.95 (in use in Gentoo, Slackware
for quite a long time, marked stable there)
- removed already applied patches, fix small memory leak
(gentoo patch)
- add missing BR for bison and texinfo
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> 1.06-36
- Don't complain if installing with --excludedocs (#515934)
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.06-33
- Autorebuild for GCC 4.3
* Fri Jan 04 2008 Zdenek Prikryl <zprikryl@redhat.com> 1.06-32
- Added Examples directory into doc
- Added bc info file
* Fri Dec 14 2007 Stepan Kasal <skasal@redhat.com> 1.06-31
- Remove bc-1.06-flex.patch
- do not run autofoo
- fix the Licence tag
* Fri Dec 07 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-30
- Package review (#225611)
* Tue Sep 18 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-29
- update of source URI
* Wed Aug 22 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-28
- fixed incorrect processing of decimal separator
- Resolves: #253729
* Thu Jul 26 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-27
- dc accepts the input which contains wrong symbols of radix in same way like bc
- Resolves: #151844
- Added library string.h to remove warnings.
* Mon Feb 26 2007 Thomas Woerner <twoerner@redhat.com> 1.06-26
- removed grep and mktemp usage from post script, also the requires
* Mon Feb 26 2007 Karsten Hopp <karsten@redhat.com> 1.06-25
- flex supports -8 now (pmachata)
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 1.06-24
- fix buildroot
- remove trailing dot from summary
- fix post/preun requirements
- use make install DESTDIR=...
- convert changelog to utf-8
- use smp flags
- use 'flex -I' instead 'flex -I8' (not supported anymore)
- run autofoo stuff to update files for current automake
* Tue Jan 23 2007 Florian La Roche <laroche@redhat.com>
- scripts should never fail: rhbz#223677
* Mon Jan 22 2007 Thomas Woerner <twoerner@redhat.com> 1.06-22
- rebuild for ncurses
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.06-21
- rebuild
- add missing br automake
* Tue Jun 6 2006 Thomas Woerner <twoerner@redhat.com> 1.06-20
- added missing flex build require
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.06-19.2.1
- bump again for double-long bug on ppc(64)
@ -114,10 +314,10 @@ fi
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-8
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-8
- Rebuild
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-7
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-7
- s/Copyright/License/
- The %%doc file AUTHOR should be AUTHORS
@ -134,27 +334,27 @@ fi
- rebuild with new readline
- Add patch to fix compilation with recent readline versions
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README
* Sun Nov 19 2000 Florian La Roche <Florian.LaRoche@redhat.de>
- update to bc 1.06
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir}
and %%{_tmppath}
* Wed May 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Wed May 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- added URL
- let build system handle man page gzipping
* Thu Apr 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Thu Apr 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
- fixed bug 7145 (long commands -> coredump)
- removed explicit stripping, it does this by itself anyway
- gzipped man-pages

30
kevin_pizzini.asc Normal file
View file

@ -0,0 +1,30 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBEum60cBCADIZ/am0d96/2Is86VRUkNi4DReLYDzQqpuI1cCtCHKbBel6uYL
ERsTJUxgqEtYAzjQOaOOr8k7X/U8NzmmjAk/GR/coHFbGLVUI3O/TWZZ4u3bZLpC
4lhe303PZZDHMGGcUEmzhU9LDxeCYF2LfQQYWQNmc674VgOt+fcJJkty3tjWHag0
YWOPvugOg5SfqDtGPfnmoeSbdKmVgbmXLX5ab68jIRHfcQNlKgfQbkLN7CYi7ou7
f8aNIO/DQ1mFzzNc6fuP6i5zznL4FcKTzvx1z6+gtjUXWmqWuVw6qqiND7V1tjJd
b0cjl4BNoXPk3btKfYwHd9I9tTfilmWm5KNtABEBAAG0GUtlbiBQaXp6aW5pIDxr
ZW5AZ251Lm9yZz6JAVUEEwEKAD8CGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheA
FiEEMltU5GU/k1olzzK9oYYnjUJqOOkFAmclQjUFCSEh8W4ACgkQoYYnjUJqOOmj
vgf/QRqbDPdfm3+JcEQBZKjBby0syw70FrxL8oJpthTapN7vljyL1/QmrFukhScD
98mns1OJsbud11Qbdab5d3MGD9agQ4H7OGm48h4MAkkd7ekJR2ISxrNGw8pQiir8
Sr0+LsS+5l/W16GaGUegmNyirKv2//mb9IDBBmZ0Ui13x85fIwxe7PrjcLw5vIB9
qPr7bcCZaKrzuWygpbzUQwXtW1ipKierEk4C780QV3jJFw8wkTB6ul1Kk221oMo/
OeAOnLk5+d5tOtUMonyYSZmvkbEhFDpOF3J3qNomwmnBBUA+bn0hEsNjhmy3h4jS
SRRIuqRrMFF1GiFNuHa67uBI0bkBDQRLputHAQgAtCX015BdwVGX9IaO1Iv2FBkt
JSg4A/GV+0iZXVqafi5pe/oLQY7gXQUV/AuTqjj7168sb9s8ZJjzrE0CsBrcUtOU
eSKBQiCL81L6eO91tKBpwuPACEyzxiW5Bfh/dn3jiZikXBi9u7NSsLaDDj4AK6W7
6/fWz9984elxeIqZSiRuae0xTs+kaEw49ha8wrv6sE4H9CbWoz4276raGQmBJLky
NQlCZMxq6Z/a6NXTNiNNrVMueCCQmbW6iu8fV8W1IRMBnbWZjTcBBZztzW5T6mOE
3weuvYkuwy6yNcgrafG2WeW+wrYzQ38yYIH7o27pgQKySZHjZxaeoqRysW42gwAR
AQABiQE8BBgBCgAmAhsMFiEEMltU5GU/k1olzzK9oYYnjUJqOOkFAmclQkMFCSEh
8XwACgkQoYYnjUJqOOk55wf/W3p31v5zZtRyalRohfxUn9rrbucye38W+LzZGGoz
BU4CCcZhwtumkFgd3bB3t50e26VDBB3D3cVPyLDLU182eibKbgv4/6bjk09l1PRl
UhTHpWTqiz+lkmMEMsSFXWJjXssmAo5XOL4OxX/bgHUK5NgvaRg7WL1CVuLAL91s
VTasLP1XoOpZ85ec5YmzNciCU41XfGSIrkG+PbE7MJmjlUT0w4/Q59/5CiIv/XoM
UAiiIDozgvzDinVUBP8+Kl5QexEe3E3dHSNPRc4xlPsx5KTOCWJHEe00XgZgMuTZ
bzVD5uvJm95WssY37wZ2bt58iufB9sBsw2NFPr3eQIo12A==
=L3fP
-----END PGP PUBLIC KEY BLOCK-----

5
plans/ci.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1,2 @@
8cf9bd2fb29340a34582f15a6c8b13b3 bc-1.06.tar.bz2
SHA512 (bc-1.08.2.tar.gz) = 0876a4c5bfc23da79479519c6a8e03ac9f59ae54077eb71ffdcc6ddaccb76c4b7595b088e89e6ad82d833c072eeff5b378178084276584813c00eedace4c6f8c
SHA512 (bc-1.08.2.tar.gz.sig) = 5987363ae617b46136d5fec45e302045d55ec43db1005d175ff78d4c9a8450a7a95c4ebce22a1f810c64f21a7a6f5eee764bfe84aa084cfe439c2f04775f4939

9
tests/sanity/main.fmf Normal file
View file

@ -0,0 +1,9 @@
summary: Basic sanity test
component:
- bc
test: python3 ./runtests.py -v
framework: shell
recommend:
- bc
- python3
duration: 1m

45
tests/sanity/runtests.py Normal file
View file

@ -0,0 +1,45 @@
import unittest
import os
import subprocess
def call_command(command_to_call):
result = subprocess.check_output(command_to_call, shell=True)
return result[:-1].decode("utf-8")
class TestBC(unittest.TestCase):
def test_divide(self):
result = call_command("echo '6.5 / 2.7' | bc")
self.assertEqual( result, '2')
def test_sum(self):
result = call_command("echo '2 + 5' | bc")
self.assertEqual( result, '7')
def test_difference(self):
result = call_command("echo '10 - 4' | bc")
self.assertEqual( result, '6')
def test_multiplying(self):
result = call_command("echo '3 * 8' | bc")
self.assertEqual( result, '24')
def test_scale(self):
result = call_command("echo 'scale = 2; 2 / 3' | bc")
self.assertEqual( result, '.66')
def test_remainder(self):
result = call_command("echo '6 % 4' | bc")
self.assertEqual( result, '2')
def test_exponent(self):
result = call_command("echo '10^2' | bc")
self.assertEqual( result, '100')
if __name__ == '__main__':
unittest.main()