|
@@ -1,16 +1,17 @@
|
|
|
Name: numactl
|
|
|
Summary: Library for tuning for Non Uniform Memory Access machines
|
|
|
Summary(ja): NUMA マシンをチューニングするためのライブラリ
|
|
|
-Version: 2.0.7
|
|
|
+Version: 2.0.10
|
|
|
Release: 1%{?_dist_release}
|
|
|
-License: LGPLv2/GPLv2
|
|
|
+# libnuma is LGPLv2 and GPLv2
|
|
|
+# numactl binaries are GPLv2 only
|
|
|
+License: GPLv2
|
|
|
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
|
|
|
|
|
|
-Patch1: numactl-2.0.3-rc3-no-nodes-warning.patch
|
|
|
-Patch2: numactl-2.0.7-manpages.patch
|
|
|
+Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRequires: libtool automake autoconf
|
|
|
|
|
|
ExcludeArch: s390 s390x %{arm}
|
|
|
|
|
@@ -20,7 +21,9 @@ other programs with a specific NUMA policy.
|
|
|
|
|
|
%package libs
|
|
|
Summary: libnuma libraries
|
|
|
-Summary(ja): libnuma libraries
|
|
|
+Summary(ja): libnuma ライブラリ
|
|
|
+# There is a tiny bit of GPLv2 code in libnuma.c
|
|
|
+License: LGPLv2 and GPLv2
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
%description libs
|
|
@@ -29,50 +32,32 @@ NUMA policy in applications.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Development package for building Applications that use numa
|
|
|
-Summary(ja): Development package for building Applications that use numa
|
|
|
-Group: System Environment/Libraries
|
|
|
+Summary(ja): libnuma を使用するアプリケーションのビルドに必要な開発用ファイル
|
|
|
+License: LGPLv2 and GPLv2
|
|
|
+Group: Development/Libraries
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
|
Provides development headers for numa library calls
|
|
|
|
|
|
-%package compat
|
|
|
-Summary: Library for tuning for Non Uniform Memory Access machines
|
|
|
-Summary(ja): Library for tuning for Non Uniform Memory Access machines
|
|
|
-Obsoletes: numactl < 2.0.7-5
|
|
|
-
|
|
|
-Requires: numactl = 2.0.7-5
|
|
|
-Requires: numactl-libs = 2.0.7-5
|
|
|
-
|
|
|
-%description compat
|
|
|
-This package only exists to help transition numactl users to the new
|
|
|
-package split. It will be removed after one distribution release cycle, please
|
|
|
-do not reference it or depend on it in any way.
|
|
|
-
|
|
|
%prep
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
-%patch1 -p1
|
|
|
-%patch2 -p1
|
|
|
|
|
|
%build
|
|
|
+./autogen.sh
|
|
|
+./configure --prefix=%{_prefix} --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
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
@@ -84,21 +69,28 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_bindir}/migspeed
|
|
|
%{_bindir}/migratepages
|
|
|
%{_mandir}/man8/*.8*
|
|
|
+%exclude %{_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
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Nov 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.0.10-1
|
|
|
+- updated to 2.0.10
|
|
|
+- moved devel package to Development/Libraries Group
|
|
|
+
|
|
|
* Tue Apr 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.7-1
|
|
|
- initial build for Vine Linux
|
|
|
|