From 3592abb655453d8f61c3042369a861745adbe8b6bf7e6e3b6b9cf7b0e8673d8d Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 14 Jun 2007 13:13:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=3 --- bc-1.06_getopt.patch | 25 +++++++++++++++++++++++++ bc.changes | 6 ++++++ bc.spec | 7 ++++++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 bc-1.06_getopt.patch 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