[numactl] Fixes related to autotools introduced in 2.0.10 upstream

Petr Holasek pholasek at fedoraproject.org
Thu Oct 9 23:03:06 UTC 2014


commit 065d0a39a91fb005b367e37bbb66bdce639a1fc6
Author: Petr Holasek <pholasek at redhat.com>
Date:   Fri Oct 10 01:02:10 2014 +0200

    Fixes related to autotools introduced in 2.0.10 upstream
    
    Signed-off-by: Petr Holasek <pholasek at redhat.com>

 numactl.spec |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/numactl.spec b/numactl.spec
index 32bcb19..6e4024a 100644
--- a/numactl.spec
+++ b/numactl.spec
@@ -9,6 +9,7 @@ Group:		System Environment/Base
 URL:		ftp://oss.sgi.com/www/projects/libnuma/download
 Source0:	ftp://oss.sgi.com/www/projects/libnuma/download/numactl-%{version}.tar.gz
 Buildroot:	%{_tmppath}/%{name}-buildroot
+BuildRequires:	libtool automake autoconf
 
 ExcludeArch: s390 s390x %{arm}
 
@@ -39,17 +40,15 @@ Provides development headers for numa library calls
 %setup -q -n %{name}-%{version}
 
 %build
+./autogen.sh
+./configure --prefix=/usr --libdir=%{_libdir}
 make clean
 make CFLAGS="$RPM_OPT_FLAGS -I."
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_bindir}
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
-mkdir -p $RPM_BUILD_ROOT%{_includedir}
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
 
-make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install
+make DESTDIR=$RPM_BUILD_ROOT install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -70,15 +69,18 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/migspeed
 %{_bindir}/migratepages
 %{_mandir}/man8/*.8*
+%{_mandir}/man2/*.2*
 
 %files libs
 %defattr(-,root,root,-)
+%{_libdir}/libnuma.so.1.0.0
 %{_libdir}/libnuma.so.1
 
 %files devel
 %defattr(-,root,root,-)
 %{_libdir}/libnuma.so
 %exclude %{_libdir}/libnuma.a
+%exclude %{_libdir}/libnuma.la
 %{_includedir}/numa.h
 %{_includedir}/numaif.h
 %{_includedir}/numacompat1.h


More information about the scm-commits mailing list