Accepting request 263376 from Base:System
- Clean up with spec-cleaner - Add ncurses-devel as it is inherited from readline - Explicitely pass without-libedit if we decide to switch for it at some point OBS-URL: https://build.opensuse.org/request/show/263376 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=21
This commit is contained in:
commit
09d58be310
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 28 20:48:58 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Clean up with spec-cleaner
|
||||||
|
- Add ncurses-devel as it is inherited from readline
|
||||||
|
- Explicitely pass without-libedit if we decide to switch for
|
||||||
|
it at some point
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 17 12:00:40 UTC 2012 - idonmez@suse.com
|
Mon Sep 17 12:00:40 UTC 2012 - idonmez@suse.com
|
||||||
|
|
||||||
|
37
bc.spec
37
bc.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bc
|
# spec file for package bc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,25 +17,24 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: bc
|
Name: bc
|
||||||
BuildRequires: bison
|
|
||||||
BuildRequires: ed
|
|
||||||
BuildRequires: flex
|
|
||||||
%if 0%{?suse_version} > 1220
|
|
||||||
BuildRequires: makeinfo
|
|
||||||
%endif
|
|
||||||
BuildRequires: readline-devel
|
|
||||||
Url: ftp://ftp.gnu.org/pub/gnu/bc
|
|
||||||
PreReq: %{install_info_prereq}
|
|
||||||
Version: 1.06.95
|
Version: 1.06.95
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GNU Command Line Calculator
|
Summary: GNU Command Line Calculator
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Scientific/Math
|
Group: Productivity/Scientific/Math
|
||||||
|
Url: ftp://ftp.gnu.org/pub/gnu/bc
|
||||||
Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2
|
Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2
|
||||||
Patch1: bc-1.06-dc_ibase.patch
|
Patch1: bc-1.06-dc_ibase.patch
|
||||||
Patch2: bc-1.06.95-memleak.patch
|
Patch2: bc-1.06.95-memleak.patch
|
||||||
Patch3: bc-1.06.95-matlib.patch
|
Patch3: bc-1.06.95-matlib.patch
|
||||||
Patch4: bc-1.06.95-sigintmasking.patch
|
Patch4: bc-1.06.95-sigintmasking.patch
|
||||||
|
BuildRequires: bison
|
||||||
|
BuildRequires: ed
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: makeinfo
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: readline-devel
|
||||||
|
Requires(post): %{install_info_prereq}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -64,17 +63,13 @@ and "pushes" its results back onto the stack.
|
|||||||
%patch4 -p1 -b .sigintmask
|
%patch4 -p1 -b .sigintmask
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
%configure \
|
||||||
--with-readline \
|
--with-readline \
|
||||||
--prefix=/usr \
|
--without-libedit
|
||||||
--infodir=%{_infodir} \
|
make %{?_smp_mflags}
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--build=%{_target_cpu}-suse-linux
|
|
||||||
rm bc/libmath.h
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz
|
||||||
@ -87,8 +82,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ
|
%doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ
|
||||||
/usr/bin/bc
|
%{_bindir}/bc
|
||||||
/usr/bin/dc
|
%{_bindir}/dc
|
||||||
%{_infodir}/*.info*
|
%{_infodir}/*.info*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user