From 1726bb8cf7e4ab4aa426249c22bcad092004a9427d2d9badf34d1c6fda0c8d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 28 Nov 2014 20:49:52 +0000 Subject: [PATCH] - 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/package/show/Base:System/bc?expand=0&rev=10 --- bc.changes | 8 ++++++++ bc.spec | 37 ++++++++++++++++--------------------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/bc.changes b/bc.changes index aadd228..ca41b39 100644 --- a/bc.changes +++ b/bc.changes @@ -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 diff --git a/bc.spec b/bc.spec index d3519c2..0db713c 100644 --- a/bc.spec +++ b/bc.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -17,25 +17,24 @@ 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 Release: 0 Summary: GNU Command Line Calculator License: GPL-2.0+ Group: Productivity/Scientific/Math +Url: ftp://ftp.gnu.org/pub/gnu/bc Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2 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 +BuildRequires: makeinfo +BuildRequires: ncurses-devel +BuildRequires: readline-devel +Requires(post): %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -64,17 +63,13 @@ and "pushes" its results back onto the stack. %patch4 -p1 -b .sigintmask %build -./configure CFLAGS="$RPM_OPT_FLAGS" \ - --with-readline \ - --prefix=/usr \ - --infodir=%{_infodir} \ - --mandir=%{_mandir} \ - --build=%{_target_cpu}-suse-linux -rm bc/libmath.h -make +%configure \ + --with-readline \ + --without-libedit +make %{?_smp_mflags} %install -make install DESTDIR=$RPM_BUILD_ROOT +make DESTDIR=%{buildroot} install %{?_smp_mflags} %post %install_info --info-dir=%{_infodir} %{_infodir}/bc.info.gz @@ -87,8 +82,8 @@ make install DESTDIR=$RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README COPYING.LIB FAQ -/usr/bin/bc -/usr/bin/dc +%{_bindir}/bc +%{_bindir}/dc %{_infodir}/*.info* %{_mandir}/man1/*