[Tizen-submit] 5359: Changes to Tizen/bc

noreply at tizen.org noreply at tizen.org
Mon May 20 11:14:17 GMT 2013


Hi,
Prajwal Mohan have made the following changes to bc in project Tizen. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #5359

  submit:       Tizen:build/bc(cleanup) -> Tizen


Message:
Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130517.020416
Git project: platform/upstream/bc
Tag: submit/tizen/20130517.020416
Commit: 25a790d add packaging

State:   accepted   2013-05-16T20:56:55 pkarurmo
Comment: Ok

History: new        2013-05-16T19:01:36 tizenrobot
new:
----
  0001-flex.patch
  0002-decl.patch
  0003-strict-aliasing.patch
  0004-getopt.patch
  0005-opt-expression.patch
  bc-1.06.tar.bz2
  bc.spec

spec files:
-----------

++++++ new spec file:
--- bc.spec
+++ bc.spec
@@ -0,0 +1,71 @@
+Name:           bc
+BuildRequires:  automake bison ed flex readline-devel
+Url:            ftp://ftp.gnu.org/pub/gnu/bc
+License:        GPL-2.0+
+Group:          Productivity/Scientific/Math
+Version:        1.06
+Release:        0
+VCS:            platform/upstream/bc#submit/tizen/20130517.020416-0-g25a790d
+Summary:        GNU Command Line Calculator
+Source:         %{name}-%{version}.tar.bz2
+# Patches auto-generated by git-buildpackage:
+Patch0:     0001-flex.patch
+Patch1:     0002-decl.patch
+Patch2:     0003-strict-aliasing.patch
+Patch3:     0004-getopt.patch
+Patch4:     0005-opt-expression.patch
+
+%description
+bc is an interpreter that supports numbers of arbitrary precision and
+the interactive execution of statements. The syntax has some
+similarities 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 that 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.
+
+%prep
+%setup -q
+# 0001-flex.patch
+%patch0 -p1
+# 0002-decl.patch
+%patch1 -p1
+# 0003-strict-aliasing.patch
+%patch2 -p1
+# 0004-getopt.patch
+%patch3 -p1
+# 0005-opt-expression.patch
+%patch4 -p1
+
+%build
+autoreconf -fi
+./configure CFLAGS="$RPM_OPT_FLAGS" \
+            --with-readline \
+            --prefix=/usr \
+	    --infodir=%{_infodir} \
+            --mandir=%{_mandir} \
+            --build=%{_target_cpu}-suse-linux
+rm bc/libmath.h
+make
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc COPYING
+/usr/bin/bc
+/usr/bin/dc

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list