This commit is contained in:
commit
fad85efdec
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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
10
bc-1.06-decl.diff
Normal file
10
bc-1.06-decl.diff
Normal file
@ -0,0 +1,10 @@
|
||||
--- bc-1.06/lib/number.c
|
||||
+++ bc-1.06/lib/number.c
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>/* Prototypes needed for external utility routines. */
|
||||
+#include <string.h>
|
||||
|
||||
#define bc_rt_warn rt_warn
|
||||
#define bc_rt_error rt_error
|
11
bc-1.06-flex.diff
Normal file
11
bc-1.06-flex.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./configure.in 2000-07-08 01:34:09.000000000 +0200
|
||||
+++ ./configure.in 2004-08-19 12:36:16.000000000 +0200
|
||||
@@ -68,7 +68,7 @@
|
||||
])
|
||||
|
||||
if test "$LEX" = "flex" ; then
|
||||
- LEX="flex -I8"
|
||||
+ LEX="flex -I -8"
|
||||
else
|
||||
if test "$bcrl" = "y" ; then
|
||||
AC_MSG_WARN(readline works only with flex.)
|
13
bc-1.06-strict-aliasing.diff
Normal file
13
bc-1.06-strict-aliasing.diff
Normal file
@ -0,0 +1,13 @@
|
||||
--- bc-1.06/dc/numeric.c
|
||||
+++ bc-1.06/dc/numeric.c
|
||||
@@ -254,8 +254,8 @@
|
||||
{
|
||||
dc_data result;
|
||||
|
||||
- bc_init_num((bc_num *)&result.v.number);
|
||||
- bc_int2num((bc_num *)&result.v.number, value);
|
||||
+ bc_init_num(&result.v.number);
|
||||
+ bc_int2num(&result.v.number, value);
|
||||
result.dc_type = DC_NUMBER;
|
||||
return result;
|
||||
}
|
55
bc-1.06.dif
Normal file
55
bc-1.06.dif
Normal file
@ -0,0 +1,55 @@
|
||||
--- bc/load.c
|
||||
+++ bc/load.c
|
||||
@@ -156,7 +156,7 @@
|
||||
long label_no;
|
||||
long vaf_name; /* variable, array or function number. */
|
||||
long func;
|
||||
- program_counter save_adr;
|
||||
+ program_counter save_adr = { 0, 0 };;
|
||||
|
||||
/* Initialize. */
|
||||
str = code;
|
||||
--- bc/scan.l
|
||||
+++ bc/scan.l
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
/* Definitions for readline access. */
|
||||
extern FILE *rl_instream;
|
||||
-_PROTOTYPE(char *readline, (char *));
|
||||
+/* _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
|
||||
--- bc/util.c
|
||||
+++ bc/util.c
|
||||
@@ -423,7 +423,7 @@
|
||||
case 0: /* no height increase. */
|
||||
return (FALSE);
|
||||
case -1: /* height increase. */
|
||||
- return (FALSE);
|
||||
+ return (TRUE);
|
||||
case -2: /* we need to do a rebalancing act. */
|
||||
A = *root;
|
||||
B = (*root)->left;
|
||||
@@ -476,7 +476,7 @@
|
||||
case 0: /* no height increase. */
|
||||
return (FALSE);
|
||||
case 1: /* height increase. */
|
||||
- return (FALSE);
|
||||
+ return (TRUE);
|
||||
case 2: /* we need to do a rebalancing act. */
|
||||
A = *root;
|
||||
B = (*root)->right;
|
||||
--- doc/bc.info
|
||||
+++ doc/bc.info
|
||||
@@ -1,5 +1,10 @@
|
||||
This is bc.info, produced by makeinfo version 4.0 from bc.texi.
|
||||
|
||||
+START-INFO-DIR-ENTRY
|
||||
+* bc: (bc). An arbritrary precision calculator language
|
||||
+END-INFO-DIR-ENTRY
|
||||
+
|
||||
+
|
||||
|
||||
File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
|
||||
|
3
bc-1.06.tar.bz2
Normal file
3
bc-1.06.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:250595f87ff5aa8ce91eb09f14efb19f9b9087999a8cf5751ceff8f4b4b63f21
|
||||
size 230980
|
145
bc.changes
Normal file
145
bc.changes
Normal file
@ -0,0 +1,145 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
153
bc.spec
Normal file
153
bc.spec
Normal file
@ -0,0 +1,153 @@
|
||||
#
|
||||
# spec file for package bc (Version 1.06)
|
||||
#
|
||||
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://www.suse.de/feedback/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: bc
|
||||
BuildRequires: ed readline-devel
|
||||
URL: ftp://ftp.gnu.org/pub/gnu/bc/
|
||||
License: GPL
|
||||
Group: Productivity/Scientific/Math
|
||||
Autoreqprov: on
|
||||
PreReq: %{install_info_prereq}
|
||||
Version: 1.06
|
||||
Release: 752
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Bc is an interpreter that supports numbers of arbitrary precision and
|
||||
the interactive execution of statements. There are some similarities in
|
||||
the syntax 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 which 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.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Philip A. Nelson <phil@cs.wwu.edu>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
./configure --with-readline \
|
||||
--prefix=/usr \
|
||||
--infodir=%{_infodir} \
|
||||
--mandir=%{_mandir} \
|
||||
%{_target_cpu}-suse-linux
|
||||
rm bc/libmath.h
|
||||
make
|
||||
|
||||
%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
|
||||
|
||||
%postun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/bc.info.gz
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/dc.info.gz
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ
|
||||
/usr/bin/bc
|
||||
/usr/bin/dc
|
||||
%{_infodir}/*.info*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog -n bc
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Mon Sep 19 2005 - mmj@suse.de
|
||||
- fix strict aliasing issues
|
||||
* Thu Jul 07 2005 - mmj@suse.de
|
||||
- add missing decls
|
||||
* Mon Aug 30 2004 - postadal@suse.cz
|
||||
- fixed for new flex
|
||||
* Sun Jan 11 2004 - adrian@suse.de
|
||||
- build as user
|
||||
* Tue Jul 22 2003 - schwab@suse.de
|
||||
- Fix unbalanced identifier tree.
|
||||
* Thu Apr 24 2003 - ro@suse.de
|
||||
- fix install_info --delete call and move from preun to postun
|
||||
* Thu Feb 06 2003 - kukuk@suse.de
|
||||
- Use install-info macros
|
||||
- Fix bc.info (add dir entry)
|
||||
* Wed Nov 20 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 2002 - postadal@suse.cz
|
||||
- removed recompilation of libmath.h [#20241]
|
||||
* Wed Aug 07 2002 - uli@suse.de
|
||||
- build with -O0 on x86-64 (bug #17231)
|
||||
* Thu Apr 12 2001 - cihlar@suse.cz
|
||||
- fixed to compile
|
||||
* Fri Feb 23 2001 - ro@suse.de
|
||||
- added readline/readline-devel to neededforbuild (split from bash)
|
||||
* Tue Dec 05 2000 - cihlar@suse.cz
|
||||
- added ed to neededforbuild
|
||||
- fixed to recompile libmath.h
|
||||
* Mon Oct 30 2000 - cihlar@suse.cz
|
||||
- update to version 1.6
|
||||
- added BuildRoot
|
||||
- bzipped sources
|
||||
* Tue Sep 26 2000 - schwab@suse.de
|
||||
- Fix overflow bug in bc scanner.
|
||||
* Fri Mar 10 2000 - kasal@suse.de
|
||||
- specfile cleanup
|
||||
* Fri Feb 25 2000 - kukuk@suse.de
|
||||
- Use _infodir/_mandir, add group tag
|
||||
* Thu Nov 25 1999 - kukuk@suse.de
|
||||
- Remove termcap from needforbuild
|
||||
* Fri Nov 12 1999 - kukuk@suse.de
|
||||
- Fix Include paths
|
||||
* Mon Sep 13 1999 - bs@suse.de
|
||||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||||
* Fri Aug 27 1999 - fehr@suse.de
|
||||
- chaged to new version 1.05a
|
||||
* Wed Jul 21 1999 - garloff@suse.de
|
||||
- added -d to YFLAGS to prevent problem when bison changes
|
||||
* Tue Sep 22 1998 - ro@suse.de
|
||||
- dont try to include posix_lim2.h for glibc
|
||||
* Fri Dec 12 1997 - florian@suse.de
|
||||
- add many bug-fixes from gnu.utils.bug
|
||||
* Fri Oct 10 1997 - florian@suse.de
|
||||
- update to 1.04 and fix rpm spec file
|
||||
* Thu Jan 02 1997 - florian@suse.de
|
||||
- add some bug-fixes
|
Loading…
Reference in New Issue
Block a user