commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2020-10-18 16:28:29 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new.3486 (New) Package is "bc" Sun Oct 18 16:28:29 2020 rev:26 rq:841945 version:1.07.1 Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2019-09-02 13:22:48.661341101 +0200 +++ /work/SRC/openSUSE:Factory/.bc.new.3486/bc.changes 2020-10-18 16:30:13.360725865 +0200 @@ -1,0 +2,7 @@ +Thu Oct 15 14:20:20 UTC 2020 - pgaj...@suse.com + +- fix [bsc#1177579] -- wrong clamping of hexadecimal digits in dc +- deleted patches + - bc-1.06-dc_ibase.patch (upstreamed) + +--- Old: bc-1.06-dc_ibase.patch Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.rKczV4/_old 2020-10-18 16:30:14.044726170 +0200 +++ /var/tmp/diff_new_pack.rKczV4/_new 2020-10-18 16:30:14.048726171 +0200 @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -22,11 +22,10 @@ Summary:GNU Command Line Calculator License:GPL-2.0-or-later 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 Source1:https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig Source2:%{name}.keyring -Patch1: bc-1.06-dc_ibase.patch # Correct return value after 'q' [bsc#1129038] Patch2: bc-dc-correct-return-value.patch BuildRequires: bison @@ -58,7 +57,6 @@ %prep %setup -q -%patch1 %patch2 -p1 %build
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2019-09-02 13:22:47 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new.7948 (New) Package is "bc" Mon Sep 2 13:22:47 2019 rev:25 rq:727043 version:1.07.1 Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2019-03-27 16:11:25.571667188 +0100 +++ /work/SRC/openSUSE:Factory/.bc.new.7948/bc.changes 2019-09-02 13:22:48.661341101 +0200 @@ -1,0 +2,6 @@ +Wed Aug 28 11:33:46 CEST 2019 - ku...@suse.de + +- Use %license instead of %doc [bsc#1082318] +- Cleanup %doc section + +--- Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.wN1yJk/_old 2019-09-02 13:22:49.709340904 +0200 +++ /var/tmp/diff_new_pack.wN1yJk/_new 2019-09-02 13:22:49.713340903 +0200 @@ -80,7 +80,8 @@ %files %defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ +%license COPYING.LIB COPYING +%doc NEWS README FAQ %{_bindir}/bc %{_bindir}/dc %{_infodir}/bc.info%{ext_info}
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2019-03-27 16:11:24 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new.25356 (New) Package is "bc" Wed Mar 27 16:11:24 2019 rev:24 rq:685953 version:1.07.1 Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2017-04-25 08:54:45.248224529 +0200 +++ /work/SRC/openSUSE:Factory/.bc.new.25356/bc.changes 2019-03-27 16:11:25.571667188 +0100 @@ -1,0 +2,7 @@ +Wed Mar 13 10:32:04 UTC 2019 - pgaj...@suse.com + +- added patches + Correct return value after 'q' [bsc#1129038] + + bc-dc-correct-return-value.patch + +--- New: bc-dc-correct-return-value.patch Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.33TFCT/_old 2019-03-27 16:11:26.067667062 +0100 +++ /var/tmp/diff_new_pack.33TFCT/_new 2019-03-27 16:11:26.067667062 +0100 @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,13 +20,15 @@ Version:1.07.1 Release:0 Summary:GNU Command Line Calculator -License:GPL-2.0+ +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 Patch1: bc-1.06-dc_ibase.patch +# Correct return value after 'q' [bsc#1129038] +Patch2: bc-dc-correct-return-value.patch BuildRequires: bison BuildRequires: ed BuildRequires: flex @@ -57,6 +59,7 @@ %prep %setup -q %patch1 +%patch2 -p1 %build %configure \ ++ bc-dc-correct-return-value.patch ++ Index: bc-1.07.1/dc/eval.c === --- bc-1.07.1.orig/dc/eval.c2017-04-07 17:22:07.0 +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;
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2017-04-25 08:54:44 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new (New) Package is "bc" Tue Apr 25 08:54:44 2017 rev:23 rq:486972 version:1.07.1 Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2015-03-23 12:11:39.0 +0100 +++ /work/SRC/openSUSE:Factory/.bc.new/bc.changes 2017-04-25 08:54:45.248224529 +0200 @@ -1,0 +2,26 @@ +Mon Apr 10 07:39:45 UTC 2017 - mplus...@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 + +--- Old: bc-1.06.95-matlib.patch bc-1.06.95-memleak.patch bc-1.06.95-sigintmasking.patch bc-1.06.95.tar.bz2 New: bc-1.07.1.tar.gz bc-1.07.1.tar.gz.sig bc.keyring Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.nW5nlj/_old 2017-04-25 08:54:46.048111423 +0200 +++ /var/tmp/diff_new_pack.nW5nlj/_new 2017-04-25 08:54:46.052110857 +0200 @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,17 +17,16 @@ Name: bc -Version:1.06.95 +Version:1.07.1 Release:0 Summary:GNU Command Line Calculator License:GPL-2.0+ Group: Productivity/Scientific/Math -Url:http://www.gnu.org/software/bc/ -Source0:ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2 +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 Patch1: bc-1.06-dc_ibase.patch -Patch2: bc-1.06.95-memleak.patch -Patch3: bc-1.06.95-matlib.patch -Patch4: bc-1.06.95-sigintmasking.patch BuildRequires: bison BuildRequires: ed BuildRequires: flex @@ -36,7 +35,6 @@ BuildRequires: readline-devel Requires(post): %{install_info_prereq} Requires(preun): %{install_info_prereq} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description bc is an interpreter that supports numbers of arbitrary precision and @@ -58,10 +56,7 @@ %prep %setup -q -%patch1 -p1 -b .dc_ibase -%patch2 -p1 -b .memleak -%patch3 -p1 -b .matlib -%patch4 -p1 -b .sigintmask +%patch1 %build %configure \ @@ -70,22 +65,24 @@ make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +%make_install %post -%install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz -%install_info --info-dir=%{_infodir} %{_infodir}/dc.info.gz +%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.gz -%install_info_delete --info-dir=%{_infodir} %{_infodir}/dc.info.gz +%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) %doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ %{_bindir}/bc %{_bindir}/dc -%{_infodir}/*.info* -%{_mandir}/man1/* +%{_infodir}/bc.info%{ext_info} +%{_infodir}/dc.info%{ext_info} +%{_mandir}/man1/bc.1%{ext_man} +%{_mandir}/man1/dc.1%{ext_man} %changelog ++ bc-1.06-dc_ibase.patch ++ --- /var/tmp/diff_new_pack.nW5nlj/_old 2017-04-25 08:54:46.076107464 +0200 +++ /var/tmp/diff_new_pack.nW5nlj/_new 2017-04-25 08:54:46.076107464 +0200 @@ -1,6 +1,8 @@ bc-1.06/dc/numeric.c.dc_ibase 2007-08-22 08:37:57.0 +0200 -+++ bc-1.06/dc/numeric.c 2007-08-22 08:37:40.0
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2015-03-23 12:11:38 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new (New) Package is bc Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2014-12-01 14:00:44.0 +0100 +++ /work/SRC/openSUSE:Factory/.bc.new/bc.changes 2015-03-23 12:11:39.0 +0100 @@ -1,0 +2,6 @@ +Mon Mar 16 18:42:48 UTC 2015 - mplus...@suse.com + +- Update url +- Correct info files scriplets and dependencies + +--- Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.joJRaY/_old 2015-03-23 12:11:40.0 +0100 +++ /var/tmp/diff_new_pack.joJRaY/_new 2015-03-23 12:11:40.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,8 +22,8 @@ Summary:GNU Command Line Calculator License:GPL-2.0+ Group: Productivity/Scientific/Math -Url:ftp://ftp.gnu.org/pub/gnu/bc -Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2 +Url:http://www.gnu.org/software/bc/ +Source0:ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2 Patch1: bc-1.06-dc_ibase.patch Patch2: bc-1.06.95-memleak.patch Patch3: bc-1.06.95-matlib.patch @@ -35,6 +35,7 @@ BuildRequires: ncurses-devel BuildRequires: readline-devel Requires(post): %{install_info_prereq} +Requires(preun): %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -75,7 +76,7 @@ %install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/dc.info.gz -%postun +%preun %install_info_delete --info-dir=%{_infodir} %{_infodir}/bc.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/dc.info.gz -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2014-12-01 14:00:33 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new (New) Package is bc Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2012-09-20 15:48:32.0 +0200 +++ /work/SRC/openSUSE:Factory/.bc.new/bc.changes 2014-12-01 14:00:44.0 +0100 @@ -1,0 +2,8 @@ +Fri Nov 28 20:48:58 UTC 2014 - tchva...@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 + +--- Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.N4Xwwh/_old 2014-12-01 14:00:45.0 +0100 +++ /var/tmp/diff_new_pack.N4Xwwh/_new 2014-12-01 14:00:45.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,25 +17,24 @@ Name: bc -BuildRequires: bison -BuildRequires: ed -BuildRequires: flex -%if 0%{?suse_version} 1220 -BuildRequires: makeinfo -%endif -BuildRequires: readline-devel -Url:ftp://ftp.gnu.org/pub/gnu/bc -PreReq: %{install_info_prereq} Version:1.06.95 Release:0 Summary:GNU Command Line Calculator License:GPL-2.0+ Group: Productivity/Scientific/Math +Url:ftp://ftp.gnu.org/pub/gnu/bc Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2 Patch1: bc-1.06-dc_ibase.patch Patch2: bc-1.06.95-memleak.patch Patch3: bc-1.06.95-matlib.patch Patch4: bc-1.06.95-sigintmasking.patch +BuildRequires: bison +BuildRequires: ed +BuildRequires: flex +BuildRequires: makeinfo +BuildRequires: ncurses-devel +BuildRequires: readline-devel +Requires(post): %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -64,17 +63,13 @@ %patch4 -p1 -b .sigintmask %build -./configure CFLAGS=$RPM_OPT_FLAGS \ +%configure \ --with-readline \ ---prefix=/usr \ - --infodir=%{_infodir} \ ---mandir=%{_mandir} \ ---build=%{_target_cpu}-suse-linux -rm bc/libmath.h -make +--without-libedit +make %{?_smp_mflags} %install -make install DESTDIR=$RPM_BUILD_ROOT +make DESTDIR=%{buildroot} install %{?_smp_mflags} %post %install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz @@ -87,8 +82,8 @@ %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ -/usr/bin/bc -/usr/bin/dc +%{_bindir}/bc +%{_bindir}/dc %{_infodir}/*.info* %{_mandir}/man1/* -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2012-09-20 15:48:12 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new (New) Package is bc, Maintainer is pgaj...@suse.com Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2012-09-17 13:47:48.0 +0200 +++ /work/SRC/openSUSE:Factory/.bc.new/bc.changes 2012-09-20 15:48:32.0 +0200 @@ -1,0 +2,5 @@ +Mon Sep 17 12:00:40 UTC 2012 - idon...@suse.com + +- Add BuildRequires on makeinfo to fix Factory build + +--- Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.4VgYfl/_old 2012-09-20 15:48:33.0 +0200 +++ /var/tmp/diff_new_pack.4VgYfl/_new 2012-09-20 15:48:33.0 +0200 @@ -20,6 +20,9 @@ BuildRequires: bison BuildRequires: ed BuildRequires: flex +%if 0%{?suse_version} 1220 +BuildRequires: makeinfo +%endif BuildRequires: readline-devel Url:ftp://ftp.gnu.org/pub/gnu/bc PreReq: %{install_info_prereq} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2012-09-17 13:47:45 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new (New) Package is bc, Maintainer is pgaj...@suse.com Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2011-12-02 09:25:49.0 +0100 +++ /work/SRC/openSUSE:Factory/.bc.new/bc.changes 2012-09-17 13:47:48.0 +0200 @@ -1,0 +2,8 @@ +Thu May 31 12:56:27 UTC 2012 - sweet_...@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 + +--- Old: bc-1.06-decl.diff bc-1.06-flex.diff bc-1.06-opt-expression.diff bc-1.06-strict-aliasing.diff bc-1.06.dif bc-1.06.tar.bz2 bc-1.06_getopt.patch New: bc-1.06-dc_ibase.patch bc-1.06.95-matlib.patch bc-1.06.95-memleak.patch bc-1.06.95-sigintmasking.patch bc-1.06.95.tar.bz2 Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.3XTZm0/_old 2012-09-17 13:47:49.0 +0200 +++ /var/tmp/diff_new_pack.3XTZm0/_new 2012-09-17 13:47:49.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package bc # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,23 @@ # - Name: bc -BuildRequires: automake bison ed flex readline-devel +BuildRequires: bison +BuildRequires: ed +BuildRequires: flex +BuildRequires: readline-devel Url:ftp://ftp.gnu.org/pub/gnu/bc -License:GPL-2.0+ -Group: Productivity/Scientific/Math PreReq: %{install_info_prereq} -Version:1.06 +Version:1.06.95 Release:0 Summary:GNU Command Line Calculator -Source: %{name}-%{version}.tar.bz2 -Patch: %{name}-%{version}.dif -Patch1: %{name}-%{version}-flex.diff -Patch2: %name-1.06-decl.diff -Patch3: %name-1.06-strict-aliasing.diff -Patch4: %{name}-%{version}_getopt.patch -Patch5: %{name}-%{version}-opt-expression.diff +License:GPL-2.0+ +Group: Productivity/Scientific/Math +Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2 +Patch1: bc-1.06-dc_ibase.patch +Patch2: bc-1.06.95-memleak.patch +Patch3: bc-1.06.95-matlib.patch +Patch4: bc-1.06.95-sigintmasking.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -55,15 +55,12 @@ %prep %setup -q -%patch -%patch1 -%patch2 -p1 -%patch3 -p1 -%patch4 -%patch5 +%patch1 -p1 -b .dc_ibase +%patch2 -p1 -b .memleak +%patch3 -p1 -b .matlib +%patch4 -p1 -b .sigintmask %build -autoreconf -fi ./configure CFLAGS=$RPM_OPT_FLAGS \ --with-readline \ --prefix=/usr \ ++ bc-1.06-dc_ibase.patch ++ --- bc-1.06/dc/numeric.c.dc_ibase 2007-08-22 08:37:57.0 +0200 +++ bc-1.06/dc/numeric.c2007-08-22 08:37:40.0 +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 =
commit bc for openSUSE:Factory
Hello community, here is the log from the commit of package bc for openSUSE:Factory checked in at 2011-12-02 09:25:47 Comparing /work/SRC/openSUSE:Factory/bc (Old) and /work/SRC/openSUSE:Factory/.bc.new (New) Package is bc, Maintainer is pgaj...@suse.com Changes: --- /work/SRC/openSUSE:Factory/bc/bc.changes2011-09-23 01:52:25.0 +0200 +++ /work/SRC/openSUSE:Factory/.bc.new/bc.changes 2011-12-02 09:25:49.0 +0100 @@ -1,0 +2,5 @@ +Wed Nov 30 09:29:51 UTC 2011 - co...@suse.com + +- add automake as buildrequire to avoid implicit dependency + +--- Other differences: -- ++ bc.spec ++ --- /var/tmp/diff_new_pack.iqEB6S/_old 2011-12-02 09:25:49.0 +0100 +++ /var/tmp/diff_new_pack.iqEB6S/_new 2011-12-02 09:25:49.0 +0100 @@ -1,7 +1,7 @@ # -# spec file for package bc (Version 1.06) +# spec file for package bc # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,18 +15,16 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: bc -BuildRequires: bison ed flex readline-devel -Url:ftp://ftp.gnu.org/pub/gnu/bc/ -License:GPL v2 or later +BuildRequires: automake bison ed flex readline-devel +Url:ftp://ftp.gnu.org/pub/gnu/bc +License:GPL-2.0+ Group: Productivity/Scientific/Math -AutoReqProv:on PreReq: %{install_info_prereq} Version:1.06 -Release:894 +Release:0 Summary:GNU Command Line Calculator Source: %{name}-%{version}.tar.bz2 Patch: %{name}-%{version}.dif @@ -55,12 +53,6 @@ the next operator is read in, which pops its arguments off the stack and pushes its results back onto the stack. - - -Authors: - -Philip A. Nelson p...@cs.wwu.edu - %prep %setup -q %patch @@ -84,9 +76,6 @@ %install make install DESTDIR=$RPM_BUILD_ROOT -%clean -rm -rf $RPM_BUILD_ROOT - %post %install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/dc.info.gz -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org