Sync from SUSE:ALP:Source:Standard:1.0 bc revision 9f2f9b7afdf8f67fed8f2d68f62f8c10
This commit is contained in:
commit
c6a97d650d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
bc-1.07.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
bc-1.07.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
bc-1.07.1.tar.gz.sig
Normal file
BIN
bc-1.07.1.tar.gz.sig
Normal file
Binary file not shown.
16
bc-dc-correct-return-value.patch
Normal file
16
bc-dc-correct-return-value.patch
Normal file
@ -0,0 +1,16 @@
|
||||
Index: bc-1.07.1/dc/eval.c
|
||||
===================================================================
|
||||
--- bc-1.07.1.orig/dc/eval.c 2017-04-07 17:22:07.000000000 +0200
|
||||
+++ bc-1.07.1/dc/eval.c 2019-03-13 11:24:50.561897120 +0100
|
||||
@@ -814,10 +814,10 @@ error_fail:
|
||||
fprintf(stderr, "%s: ", progname);
|
||||
perror("error reading input");
|
||||
return DC_FAIL;
|
||||
-reset_and_exit_quit:
|
||||
reset_and_exit_fail:
|
||||
signal(SIGINT, sigint_default);
|
||||
return DC_FAIL;
|
||||
+reset_and_exit_quit:
|
||||
reset_and_exit_success:
|
||||
signal(SIGINT, sigint_default);
|
||||
return DC_SUCCESS;
|
240
bc.changes
Normal file
240
bc.changes
Normal file
@ -0,0 +1,240 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 15 14:20:20 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
- fix [bsc#1177579] -- wrong clamping of hexadecimal digits in dc
|
||||
- deleted patches
|
||||
- bc-1.06-dc_ibase.patch (upstreamed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 28 11:33:46 CEST 2019 - kukuk@suse.de
|
||||
|
||||
- Use %license instead of %doc [bsc#1082318]
|
||||
- Cleanup %doc section
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 13 10:32:04 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- added patches
|
||||
Correct return value after 'q' [bsc#1129038]
|
||||
+ bc-dc-correct-return-value.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 10 07:39:45 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
- Update to version 1.07.1:
|
||||
* Fixed ibase extension causing problems for read()
|
||||
* Fixed parallel make problem.
|
||||
* Fixed dc "Q" comanmd bug.
|
||||
- Changes for version 1.07:
|
||||
* Added void functions.
|
||||
* fixes bug in load_code introduced by mathlib string storage in 1.06.
|
||||
* fix to get long options working.
|
||||
* signal code clean-up.
|
||||
* fixed a bug in the AVL tree routines.
|
||||
* fixed math library to work properly when called with ibase not 10.
|
||||
* fixed a symbol table bug when using more than 32 names.
|
||||
* removed a double free.
|
||||
* Added base 17 to 36 for ibase.
|
||||
* Fixed some memory leaks.
|
||||
* Various small tweaks and doc bug fixes.
|
||||
- Drop no longer needed patches:
|
||||
* bc-1.06.95-memleak.patch
|
||||
* bc-1.06.95-matlib.patch
|
||||
* bc-1.06.95-sigintmasking.patch
|
||||
- Refresh bc-1.06-dc_ibase.patch
|
||||
- Add gpg signature
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 16 18:42:48 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Update url
|
||||
- Correct info files scriplets and dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 28 20:48:58 UTC 2014 - tchvatal@suse.com
|
||||
|
||||
- Clean up with spec-cleaner
|
||||
- Add ncurses-devel as it is inherited from readline
|
||||
- Explicitely pass without-libedit if we decide to switch for
|
||||
it at some point
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 17 12:00:40 UTC 2012 - idonmez@suse.com
|
||||
|
||||
- Add BuildRequires on makeinfo to fix Factory build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 31 12:56:27 UTC 2012 - sweet_f_a@gmx.de
|
||||
|
||||
- update to upstream alpha 1.06.95 (2006-09-05), in use in other
|
||||
major distros for quite a long time (Debian, Fedora, Ubuntu, ...)
|
||||
- add patches from Fedora
|
||||
- automake dependency removed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 30 09:29:51 UTC 2011 - coolo@suse.com
|
||||
|
||||
- add automake as buildrequire to avoid implicit dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 27 14:14:55 CET 2007 - schwab@suse.de
|
||||
|
||||
- Fix last change.
|
||||
- Fix detection of empty opt_expression in the parser.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 12 14:33:31 CEST 2007 - pgajdos@suse.cz
|
||||
|
||||
- repared acceptance of some long commandline options
|
||||
[#282747]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 29 12:07:56 CEST 2007 - rguenther@suse.de
|
||||
|
||||
- add flex BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:29:59 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 19 23:43:31 CEST 2005 - mmj@suse.de
|
||||
|
||||
- fix strict aliasing issues
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 7 15:01:52 CEST 2005 - mmj@suse.de
|
||||
|
||||
- add missing decls
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 30 19:13:35 CEST 2004 - postadal@suse.cz
|
||||
|
||||
- fixed for new flex
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 11 12:15:42 CET 2004 - adrian@suse.de
|
||||
|
||||
- build as user
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 22 15:39:38 CEST 2003 - schwab@suse.de
|
||||
|
||||
- Fix unbalanced identifier tree.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix install_info --delete call and move from preun to postun
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 6 18:47:27 CET 2003 - kukuk@suse.de
|
||||
|
||||
- Use install-info macros
|
||||
- Fix bc.info (add dir entry)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 12:35:04 CET 2002 - postadal@suse.cz
|
||||
|
||||
- returned the recompilation of libmath.h and fixed the problematic
|
||||
part which caused segmentation fault on 64bit archs [#21697]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 07 09:40:06 CEST 2002 - postadal@suse.cz
|
||||
|
||||
- removed recompilation of libmath.h [#20241]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 13:35:23 CEST 2002 - uli@suse.de
|
||||
|
||||
- build with -O0 on x86-64 (bug #17231)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 12 12:24:19 CEST 2001 - cihlar@suse.cz
|
||||
|
||||
- fixed to compile
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 23 00:10:25 CET 2001 - ro@suse.de
|
||||
|
||||
- added readline/readline-devel to neededforbuild (split from bash)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 5 12:53:50 CET 2000 - cihlar@suse.cz
|
||||
|
||||
- added ed to neededforbuild
|
||||
- fixed to recompile libmath.h
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 12:33:28 CET 2000 - cihlar@suse.cz
|
||||
|
||||
- update to version 1.6
|
||||
- added BuildRoot
|
||||
- bzipped sources
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 26 12:08:39 CEST 2000 - schwab@suse.de
|
||||
|
||||
- Fix overflow bug in bc scanner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 10 11:21:55 CET 2000 - kasal@suse.de
|
||||
|
||||
- specfile cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 25 11:42:56 CET 2000 - kukuk@suse.de
|
||||
|
||||
- Use _infodir/_mandir, add group tag
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 25 12:18:41 MET 1999 - kukuk@suse.de
|
||||
|
||||
- Remove termcap from needforbuild
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 12 20:10:19 MET 1999 - kukuk@suse.de
|
||||
|
||||
- Fix Include paths
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
|
||||
|
||||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 16:20:57 MEST 1999 - fehr@suse.de
|
||||
|
||||
- chaged to new version 1.05a
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 21 17:42:00 CEST 1999 - garloff@suse.de
|
||||
|
||||
- added -d to YFLAGS to prevent problem when bison changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 10:43:51 MEST 1998 - ro@suse.de
|
||||
|
||||
- dont try to include posix_lim2.h for glibc
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
Fri Dec 12 18:06:42 MET 1997 - florian@suse.de
|
||||
|
||||
|
||||
- add many bug-fixes from gnu.utils.bug
|
||||
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
Fri Oct 10 11:41:47 MEST 1997 - florian@suse.de
|
||||
|
||||
|
||||
- update to 1.04 and fix rpm spec file
|
||||
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
Sat Nov 2 17:35:11 CET 1996 - florian@suse.de
|
||||
|
||||
|
||||
- add some bug-fixes
|
||||
|
29
bc.keyring
Normal file
29
bc.keyring
Normal file
@ -0,0 +1,29 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQGiBEmwKfERBACiM/++m+F5//UyzoIZTd/gHxhpWDAQ1XD04P/FxNEOIPtn21MX
|
||||
EGLJBdDL+k+SDwjIIwy9JbYSn6kCCL93kw2ZqqPQ6GQkjKkBE4YaOI7FKlIRgY5M
|
||||
nHCwvFQQjpXz0U0tG2HuETIHQZPU308BTXIB6FpxERtiZjA1LdA9Un8lGwCg5CO9
|
||||
V81S/aOeYfzoyiwi8MwAH50D/2bhyKnsyxOlh/lBBQNn87/pDKUU8D5z9WUJgA5r
|
||||
Lr+qBxxtlJK9MSWmZwcd3Sfd9bqJlKLbXPC7zgIg7p08H2A4WpelOL+EL5lG9GeI
|
||||
e84ShTKLiI2TzsIlDHgvTzjCS7DBN44ILRrHHdvt1MlpE6mXCacYtTZATWbA8wAg
|
||||
+FaRA/0fV4qnvj4CFBRyQa9sfxgtqYYp+A9bTeCuxzv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RiB3R2wdTTb5LCVi2EjN9B4kLHV7zohJBBgRAgAJBQJJsCnxAhsMAAoJEIHC
|
||||
T/Evt7FLAb4An1repSQe+r7u7FBK/0w1NP68xXF4AJ4jSRrErlQb5CHTWtl3DRBC
|
||||
OuX0TA==
|
||||
=gj0/
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
90
bc.spec
Normal file
90
bc.spec
Normal file
@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package bc
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: bc
|
||||
Version: 1.07.1
|
||||
Release: 0
|
||||
Summary: GNU Command Line Calculator
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Scientific/Math
|
||||
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: %{name}.keyring
|
||||
# Correct return value after 'q' [bsc#1129038]
|
||||
Patch2: bc-dc-correct-return-value.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: ed
|
||||
BuildRequires: flex
|
||||
BuildRequires: makeinfo
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: readline-devel
|
||||
Requires(post): %{install_info_prereq}
|
||||
Requires(preun): %{install_info_prereq}
|
||||
|
||||
%description
|
||||
bc is an interpreter that supports numbers of arbitrary precision and
|
||||
the interactive execution of statements. The syntax has some
|
||||
similarities to the C programming language. A standard math library is
|
||||
available through command line options. When used, the math library is
|
||||
read in before any other input files. bc then reads in all other files
|
||||
from the command line, evaluating their contents. Then bc reads from
|
||||
standard input (usually the keyboard).
|
||||
|
||||
The dc program is also included. dc is a calculator that supports
|
||||
reverse-polish notation and allows unlimited precision arithmetic.
|
||||
Macros can also be defined. Normally, dc reads from standard input but
|
||||
can also read in files specified on the command line. A calculator with
|
||||
reverse-polish notation saves numbers to a stack. Arguments to
|
||||
mathematical operations (operands) are "pushed" onto the stack until
|
||||
the next operator is read in, which "pops" its arguments off the stack
|
||||
and "pushes" its results back onto the stack.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-readline \
|
||||
--without-libedit
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/bc.info%{ext_info}
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/dc.info%{ext_info}
|
||||
|
||||
%preun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/bc.info%{ext_info}
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/dc.info%{ext_info}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING.LIB COPYING
|
||||
%doc NEWS README FAQ
|
||||
%{_bindir}/bc
|
||||
%{_bindir}/dc
|
||||
%{_infodir}/bc.info%{ext_info}
|
||||
%{_infodir}/dc.info%{ext_info}
|
||||
%{_mandir}/man1/bc.1%{ext_man}
|
||||
%{_mandir}/man1/dc.1%{ext_man}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user