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