SHA256
6
0
forked from pool/bc

11 Commits

Author SHA256 Message Date
614bec0ebb Accepting request 1281277 from Base:System
GNU bc 1.08.2 (forwarded request 1281193 from AndreasStieger)

OBS-URL: https://build.opensuse.org/request/show/1281277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=28
2025-06-01 19:36:06 +00:00
c4040d3295 GNU bc 1.08.2
OBS-URL: https://build.opensuse.org/package/show/Base:System/bc?expand=0&rev=26
2025-05-30 07:09:47 +00:00
5651fd4bea Accepting request 1149164 from Base:System
Prepare for RPM 4.20 (forwarded request 1149154 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1149164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=27
2024-02-23 15:44:56 +00:00
4437bcc3eb Accepting request 841945 from Base:System
- fix [bsc#1177579] -- wrong clamping of hexadecimal digits in dc
- deleted patches
  - bc-1.06-dc_ibase.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/841945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=26
2020-10-18 14:28:29 +00:00
3a67d5c609 Accepting request 727043 from Base:System
OBS-URL: https://build.opensuse.org/request/show/727043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=25
2019-09-02 11:22:47 +00:00
a05c6f53bf Accepting request 685953 from Base:System
- added patches
  Correct return value after 'q' [bsc#1129038]
  + bc-dc-correct-return-value.patch

OBS-URL: https://build.opensuse.org/request/show/685953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=24
2019-03-27 15:11:24 +00:00
48f39ce01a Accepting request 486972 from Base:System
- Update to version 1.07.1: (forwarded request 486969 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/486972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=23
2017-04-25 06:54:44 +00:00
997f4d0a8e Accepting request 291128 from Base:System
- Update url
- Correct info files scriplets and dependencies (forwarded request 291074 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/291128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=22
2015-03-23 11:11:38 +00:00
f15b361036 Accepting request 263376 from Base:System
- 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

OBS-URL: https://build.opensuse.org/request/show/263376
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=21
2014-12-01 13:00:33 +00:00
Stephan Kulow
9b35676b27 Accepting request 134667 from Base:System
- Add BuildRequires on makeinfo to fix Factory build

OBS-URL: https://build.opensuse.org/request/show/134667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=17
2012-09-20 13:48:12 +00:00
Stephan Kulow
39a29c3b18 Accepting request 133894 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/133894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=16
2012-09-17 11:47:45 +00:00
8 changed files with 54 additions and 67 deletions

BIN
bc-1.07.1.tar.gz (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

3
bc-1.08.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae470fec429775653e042015edc928d07c8c3b2fc59765172a330d3d87785f86
size 457557

BIN
bc-1.08.2.tar.gz.sig Normal file

Binary file not shown.

View File

@@ -1,16 +0,0 @@
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;

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu May 29 17:53:58 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- GNU bc 1.08.2
* GCC 15 compatibility
* Plug a small memory leak in dc
* Fix a formatting botch in doc/bc.1
- drop upstreamed bc-dc-correct-return-value.patch
- drop unneeded info macros
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 22 10:08:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Thu Feb 22 10:08:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,29 +1,30 @@
-----BEGIN PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK-----
mQGiBEmwKfERBACiM/++m+F5//UyzoIZTd/gHxhpWDAQ1XD04P/FxNEOIPtn21MX mQENBEum60cBCADIZ/am0d96/2Is86VRUkNi4DReLYDzQqpuI1cCtCHKbBel6uYL
EGLJBdDL+k+SDwjIIwy9JbYSn6kCCL93kw2ZqqPQ6GQkjKkBE4YaOI7FKlIRgY5M ERsTJUxgqEtYAzjQOaOOr8k7X/U8NzmmjAk/GR/coHFbGLVUI3O/TWZZ4u3bZLpC
nHCwvFQQjpXz0U0tG2HuETIHQZPU308BTXIB6FpxERtiZjA1LdA9Un8lGwCg5CO9 4lhe303PZZDHMGGcUEmzhU9LDxeCYF2LfQQYWQNmc674VgOt+fcJJkty3tjWHag0
V81S/aOeYfzoyiwi8MwAH50D/2bhyKnsyxOlh/lBBQNn87/pDKUU8D5z9WUJgA5r YWOPvugOg5SfqDtGPfnmoeSbdKmVgbmXLX5ab68jIRHfcQNlKgfQbkLN7CYi7ou7
Lr+qBxxtlJK9MSWmZwcd3Sfd9bqJlKLbXPC7zgIg7p08H2A4WpelOL+EL5lG9GeI f8aNIO/DQ1mFzzNc6fuP6i5zznL4FcKTzvx1z6+gtjUXWmqWuVw6qqiND7V1tjJd
e84ShTKLiI2T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Rl
zlImRiB3R2wdTTb5LCVi2EjN9B4kLHV7zohJBBgRAgAJBQJJsCnxAhsMAAoJEIHC UhTHpWTqiz+lkmMEMsSFXWJjXssmAo5XOL4OxX/bgHUK5NgvaRg7WL1CVuLAL91s
T/Evt7FLAb4An1repSQe+r7u7FBK/0w1NP68xXF4AJ4jSRrErlQb5CHTWtl3DRBC VTasLP1XoOpZ85ec5YmzNciCU41XfGSIrkG+PbE7MJmjlUT0w4/Q59/5CiIv/XoM
OuX0TA== UAiiIDozgvzDinVUBP8+Kl5QexEe3E3dHSNPRc4xlPsx5KTOCWJHEe00XgZgMuTZ
=gj0/ bzVD5uvJm95WssY37wZ2bt58iufB9sBsw2NFPr3eQIo12A==
=L3fP
-----END PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY BLOCK-----

36
bc.spec
View File

@@ -2,6 +2,7 @@
# spec file for package bc # spec file for package bc
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,25 +18,22 @@
Name: bc Name: bc
Version: 1.07.1 Version: 1.08.2
Release: 0 Release: 0
Summary: GNU Command Line Calculator Summary: GNU Command Line Calculator
License: GPL-2.0-or-later License: GFDL-1.2-or-later AND GPL-3.0-or-later
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
URL: https://www.gnu.org/software/bc/ URL: https://www.gnu.org/software/bc/
Source0: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz Source0: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig Source1: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig
# from https://src.fedoraproject.org/rpms/bc/blob/rawhide/f/kevin_pizzini.asc
Source2: %{name}.keyring Source2: %{name}.keyring
# Correct return value after 'q' [bsc#1129038]
Patch2: bc-dc-correct-return-value.patch
BuildRequires: bison BuildRequires: bison
BuildRequires: ed BuildRequires: ed
BuildRequires: flex BuildRequires: flex
BuildRequires: makeinfo BuildRequires: makeinfo
BuildRequires: ncurses-devel BuildRequires: pkgconfig
BuildRequires: readline-devel BuildRequires: pkgconfig(readline)
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description %description
bc is an interpreter that supports numbers of arbitrary precision and bc is an interpreter that supports numbers of arbitrary precision and
@@ -62,28 +60,22 @@ and "pushes" its results back onto the stack.
%configure \ %configure \
--with-readline \ --with-readline \
--without-libedit --without-libedit
make %{?_smp_mflags} %make_build
%install %install
%make_install %make_install
%post %check
%install_info --info-dir=%{_infodir} %{_infodir}/bc.info%{ext_info} %make_build check
%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 %files
%defattr(-,root,root) %license COPYING
%license COPYING.LIB COPYING
%doc NEWS README FAQ %doc NEWS README FAQ
%{_bindir}/bc %{_bindir}/bc
%{_bindir}/dc %{_bindir}/dc
%{_infodir}/bc.info%{ext_info} %{_infodir}/bc.info%{?ext_info}
%{_infodir}/dc.info%{ext_info} %{_infodir}/dc.info%{?ext_info}
%{_mandir}/man1/bc.1%{ext_man} %{_mandir}/man1/bc.1%{?ext_man}
%{_mandir}/man1/dc.1%{ext_man} %{_mandir}/man1/dc.1%{?ext_man}
%changelog %changelog