From 7f161680da7160571b2387aefa35c84d60177e1c Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Jun 20 2014 12:50:11 +0000 Subject: Update config.guess/sub for new arch support, Modernise spec --- diff --git a/cflow.spec b/cflow.spec index a6e67ea..0309548 100644 --- a/cflow.spec +++ b/cflow.spec @@ -1,12 +1,12 @@ Summary: Analyzes C files charting control flow within the program Name: cflow Version: 1.4 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2+ Group: Development/Languages URL: http://www.gnu.org/software/cflow/ Source0: http://ftp.gnu.org/gnu/cflow/%{name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + # to install lisp files BuildRequires: emacs Requires(post): info @@ -24,21 +24,21 @@ output formats are implemented: POSIX and GNU (extended). %setup -q %build +# Update config.guess/sub to fix builds on new architectures (aarch64/ppc64le) +cp /usr/lib/rpm/config.* build-aux/ + export CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} --libdir=%{_libdir} -%{__make} %{?_smp_flags} +make %{?_smp_flags} %install -%{__rm} -rf %{buildroot} -%{__make} DESTDIR=%{buildroot} INSTALL='%{__install} -p' install +make DESTDIR=%{buildroot} INSTALL='%{__install} -p' install %find_lang %{name} -%{__rm} -f %{buildroot}/%{_infodir}/dir +rm -f %{buildroot}/%{_infodir}/dir -%clean -%{__rm} -rf %{buildroot} %check -%{__make} check +make check %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : @@ -49,13 +49,16 @@ if [ $1 = 0 ] ; then fi %files -f %{name}.lang -%defattr(-, root, root, -) %doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO %{_bindir}/%{name} %{_infodir}/%{name}.info.gz %{_datadir}/emacs/site-lisp/%{name}-mode.el %changelog +* Thu Jun 19 2014 Peter Robinson 1.4-7 +- Update config.guess/sub for new arch support +- Modernise spec + * Sat Jun 07 2014 Fedora Release Engineering - 1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild