Accepting request 486969 from home:pluskalm:branches:Base:System

- Update to version 1.07.1:

OBS-URL: https://build.opensuse.org/request/show/486969
OBS-URL: https://build.opensuse.org/package/show/Base:System/bc?expand=0&rev=14
This commit is contained in:
2017-04-10 08:02:06 +00:00
committed by Git OBS Bridge
parent 4b88440371
commit 49e3b14ca9
10 changed files with 86 additions and 105 deletions

39
bc.spec
View File

@@ -1,7 +1,7 @@
#
# spec file for package bc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,16 @@
Name: bc
Version: 1.06.95
Version: 1.07.1
Release: 0
Summary: GNU Command Line Calculator
License: GPL-2.0+
Group: Productivity/Scientific/Math
Url: http://www.gnu.org/software/bc/
Source0: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2
Url: https://www.gnu.org/software/bc/
Source0: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig
Source2: %{name}.keyring
Patch1: bc-1.06-dc_ibase.patch
Patch2: bc-1.06.95-memleak.patch
Patch3: bc-1.06.95-matlib.patch
Patch4: bc-1.06.95-sigintmasking.patch
BuildRequires: bison
BuildRequires: ed
BuildRequires: flex
@@ -36,7 +35,6 @@ BuildRequires: ncurses-devel
BuildRequires: readline-devel
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
bc is an interpreter that supports numbers of arbitrary precision and
@@ -58,34 +56,33 @@ and "pushes" its results back onto the stack.
%prep
%setup -q
%patch1 -p1 -b .dc_ibase
%patch2 -p1 -b .memleak
%patch3 -p1 -b .matlib
%patch4 -p1 -b .sigintmask
%patch1
%build
%configure \
--with-readline \
--without-libedit
--with-readline \
--without-libedit
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%make_install
%post
%install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/dc.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/bc.info%{ext_info}
%install_info --info-dir=%{_infodir} %{_infodir}/dc.info%{ext_info}
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/bc.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/dc.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/bc.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/dc.info%{ext_info}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ
%{_bindir}/bc
%{_bindir}/dc
%{_infodir}/*.info*
%{_mandir}/man1/*
%{_infodir}/bc.info%{ext_info}
%{_infodir}/dc.info%{ext_info}
%{_mandir}/man1/bc.1%{ext_man}
%{_mandir}/man1/dc.1%{ext_man}
%changelog