diff --git a/bc-1.06_getopt.patch b/bc-1.06_getopt.patch new file mode 100644 index 0000000..18f2c81 --- /dev/null +++ b/bc-1.06_getopt.patch @@ -0,0 +1,25 @@ +--- bc/main.c ++++ bc/main.c +@@ -44,14 +44,14 @@ + /* long option support */ + static struct option long_options[] = + { +- {"compile", 0, &compile_only, TRUE}, +- {"help", 0, 0, 'h'}, +- {"interactive", 0, 0, 'i'}, +- {"mathlib", 0, &use_math, TRUE}, +- {"quiet", 0, &quiet, TRUE}, +- {"standard", 0, &std_only, TRUE}, +- {"version", 0, 0, 'v'}, +- {"warn", 0, &warn_not_std, TRUE}, ++ {"compile", 0, 0, 'c'}, ++ {"help", 0, 0, 'h'}, ++ {"interactive", 0, 0, 'i'}, ++ {"mathlib", 0, 0, 'l'}, ++ {"quiet", 0, 0, 'q'}, ++ {"standard", 0, 0, 's'}, ++ {"version", 0, 0, 'v'}, ++ {"warn", 0, 0, 'w'}, + + {0, 0, 0, 0} + }; diff --git a/bc.changes b/bc.changes index 672bfe4..9593cce 100644 --- a/bc.changes +++ b/bc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/bc.spec b/bc.spec index 578b44b..302a0f7 100644 --- a/bc.spec +++ b/bc.spec @@ -18,13 +18,14 @@ Group: Productivity/Scientific/Math Autoreqprov: on PreReq: %{install_info_prereq} Version: 1.06 -Release: 793 +Release: 809 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -57,6 +58,7 @@ Authors: %patch1 %patch2 -p1 %patch3 -p1 +%patch4 %build autoreconf -fi @@ -92,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/* %changelog +* Tue Jun 12 2007 - pgajdos@suse.cz +- repared acceptance of some long commandline options + [#282747] * Thu Mar 29 2007 - rguenther@suse.de - add flex BuildRequires * Wed Jan 25 2006 - mls@suse.de