Packaging: spec cleanup. 10/17210/4
authorRonan Le Martret <ronan@fridu.net>
Wed, 5 Mar 2014 11:06:48 +0000 (12:06 +0100)
committerRonan Le Martret <ronan@fridu.net>
Fri, 7 Mar 2014 13:31:38 +0000 (14:31 +0100)
Change-Id: I2330292806315e59d2757d5a4317e1dd3c5f10de
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/bc.spec

index 0f8fd16..1149c67 100644 (file)
@@ -1,13 +1,19 @@
 Name:           bc
-BuildRequires:  automake bison ed flex readline-devel
+
+BuildRequires:  automake
+BuildRequires:  bison
+BuildRequires:  ed
+BuildRequires:  flex
+BuildRequires:  readline-devel
+
 Url:            ftp://ftp.gnu.org/pub/gnu/bc
 License:        GPL-2.0+
-Group:          Productivity/Scientific/Math
+Group:          Base/Utilities
 Version:        1.06
 Release:        0
 Summary:        GNU Command Line Calculator
 Source:         %{name}-%{version}.tar.bz2
-Source1001:    bc.manifest
+Source1001:     bc.manifest
 
 %description
 bc is an interpreter that supports numbers of arbitrary precision and
@@ -32,13 +38,8 @@ and "pushes" its results back onto the stack.
 cp %{SOURCE1001} .
 
 %build
-autoreconf -fi
-./configure CFLAGS="$RPM_OPT_FLAGS" \
-            --with-readline \
-            --prefix=/usr \
-           --infodir=%{_infodir} \
-            --mandir=%{_mandir} \
-            --build=%{_target_cpu}-suse-linux
+%reconfigure --with-readline
+
 rm bc/libmath.h
 sed -i 's|\(^_PR.*readline.*$\)|/* \1 */|' bc/scan.l
 make
@@ -50,8 +51,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %manifest %{name}.manifest
 %defattr(-,root,root)
 %doc COPYING
-/usr/bin/bc
-/usr/bin/dc
+%{_bindir}/bc
+%{_bindir}/dc
 %{_infodir}/*.info*
 %{_mandir}/man1/*