diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:34:05 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:34:05 -0700 |
commit | 25a790df917f512bb447c628a7ac8f01bad6f3f8 (patch) | |
tree | ed63c7d79b0a6a274cd4e1482cc4413787fc24c4 | |
parent | f7a11661329ae4823a41eeb0be66ed8569137a4a (diff) | |
download | bc-25a790df917f512bb447c628a7ac8f01bad6f3f8.tar.gz bc-25a790df917f512bb447c628a7ac8f01bad6f3f8.tar.bz2 bc-25a790df917f512bb447c628a7ac8f01bad6f3f8.zip |
add packagingsubmit/tizen/20130517.020416submit/tizen/20130509.172610submit/tizen/20130508.193309submit/tizen/20130503.185410submit/tizen/20130503.183619accepted/tizen/20130520.103245accepted/tizen/20130503.223829
-rw-r--r-- | packaging/bc.spec | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/packaging/bc.spec b/packaging/bc.spec new file mode 100644 index 0000000..517c25e --- /dev/null +++ b/packaging/bc.spec @@ -0,0 +1,54 @@ +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 +Summary: GNU Command Line Calculator +Source: %{name}-%{version}.tar.bz2 + +%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 + +%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 +%{_infodir}/*.info* +%{_mandir}/man1/* + +%changelog |