[numactl/f17] libnuma split out of numactl main package, bz799132
Petr Holasek
pholasek at fedoraproject.org
Mon Apr 16 09:10:51 UTC 2012
commit 03fcf4e7950f1f042afafe9380fcf4126cbf12d9
Author: Petr Holasek <pholasek at redhat.com>
Date: Mon Apr 16 10:57:30 2012 +0200
libnuma split out of numactl main package, bz799132
numactl.spec | 39 +++++++++++++++++++++++++++++++++------
1 files changed, 33 insertions(+), 6 deletions(-)
---
diff --git a/numactl.spec b/numactl.spec
index 92756d9..6991e8c 100644
--- a/numactl.spec
+++ b/numactl.spec
@@ -1,9 +1,9 @@
Name: numactl
Summary: Library for tuning for Non Uniform Memory Access machines
Version: 2.0.7
-Release: 4%{dist}
+Release: 5%{dist}
License: LGPLv2/GPLv2
-Group: System Environment/Base
+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
@@ -15,17 +15,36 @@ ExcludeArch: s390 s390x %{arm}
%description
Simple NUMA policy support. It consists of a numactl program to run
-other programs with a specific NUMA policy and a libnuma to do
-allocations with NUMA policy in applications.
+other programs with a specific NUMA policy.
+
+%package libs
+Summary: libnuma libraries
+Group: System Environment/Libraries
+
+%description libs
+numactl-libs provides libnuma, a library to do allocations with
+NUMA policy in applications.
%package devel
Summary: Development package for building Applications that use numa
Group: System Environment/Libraries
-Requires: %{name} = %{version}-%{release}
+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
+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
@@ -47,12 +66,13 @@ make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
-%{_libdir}/libnuma.so.1
%{_bindir}/numactl
%{_bindir}/numademo
%{_bindir}/numastat
@@ -61,6 +81,10 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/migratepages
%{_mandir}/man8/*.8*
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/libnuma.so.1
+
%files devel
%defattr(-,root,root,-)
%{_libdir}/libnuma.so
@@ -71,6 +95,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
+* Mon Apr 16 2012 Petr Holasek <pholasek at redhat.com> - 2.0.7-5
+- Library splitted out of numactl package to numactl-libs
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list