bc/bc.spec

110 lines
3.0 KiB
RPMSpec
Raw Normal View History

Name: bc
Version: 1.07.1
Release: 2mamba
Summary: GNU interactive algebraic language
Group: Applications/Mathematics
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.gnu.org/directory/GNU/bc.html
Source: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
Patch0: %{name}-1.06-info_direntry.patch
Patch1: %{name}-1.06-configure_flex.patch
Patch2: %{name}-1.06-info_exp_bessel.patch
Patch3: %{name}-1.06-string.patch
Patch4: %{name}-1.06-readline42.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libfl-devel
BuildRequires: libncurses-devel
BuildRequires: libreadline-devel
## AUTOBUILDREQ-END
BuildRequires: flex
BuildRequires: bison
BuildRequires: texinfo
BuildRequires: ed
Requires(post): %{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Bc is an arbitrary precision numeric processing language.
Syntax is similar to C, but differs in many substantial areas.
It supports interactive execution of statements.
Bc is a utility included in the POSIX P1003.2/D11 draft standard.
This version does not use the historical method of having bc be a calculator for the dc calculator (the POSIX document doesn't specify how bc must be implemented).
This version has a single executable that both compiles the language and runs the resulting 'byte code.' The byte code is not the dc language.
%debug_package
%prep
%setup -q
%define _default_patch_fuzz 2
%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#%patch3 -p1
#%patch4 -p1
%build
%configure --with-readline
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeoldinstall
%post
%install_info %{name}.info
%install_info dc.info
exit 0
%preun
%uninstall_info %{name}.info
%uninstall_info dc.info
exit 0
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/dc
%{_infodir}/%{name}.*
%{_infodir}/dc.*
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/dc.*
%doc AUTHORS COPYING COPYING.LIB
# FAQ NEWS README Examples/* Changelog
%changelog
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.07.1-2mamba
- rebuilt with debug package
* Sat Jun 17 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.07.1-1mamba
- update to 1.07.1
* Sat Feb 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.06.95-1mamba
- update to 1.06.95
* Sat Mar 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.06-5mamba
- rebuilt with libreadline 6.2
* Tue Dec 04 2007 Aleph0 <aleph0@openmamba.org> 1.06-4mamba
- new package mantainer
- fixed compilation warnings
- fixed some documentation bugs about exp and bessel functions
- rebuilt with readline support
* Tue Jun 20 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.06-3qilnx
- added info file patch
* Wed Sep 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.06-2qilnx
- install/uninstall info files
* Fri Feb 06 2004 Davide Madrisan <davide.madrisan@qilinux.it>
- first build