2007-01-16 00:27:07 +01:00
|
|
|
#
|
2009-12-16 16:11:37 +01:00
|
|
|
# spec file for package numactl (Version 2.0.4.rc1)
|
2007-01-16 00:27:07 +01:00
|
|
|
#
|
2010-01-12 16:07:37 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:27:07 +01:00
|
|
|
#
|
2008-08-06 01:54:12 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:27:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-25 22:09:18 +02:00
|
|
|
Url: http://oss.sgi.com/projects/libnuma/
|
2008-03-19 01:56:08 +01:00
|
|
|
|
2007-01-16 00:27:07 +01:00
|
|
|
Name: numactl
|
2009-12-11 17:28:14 +01:00
|
|
|
License: GPLv2 ; GPLv2+
|
2007-01-16 00:27:07 +01:00
|
|
|
Summary: NUMA Policy Control
|
2010-06-21 19:14:41 +02:00
|
|
|
Version: 2.0.4.rc2
|
2010-02-26 13:19:49 +01:00
|
|
|
Release: 3
|
2010-05-20 14:07:35 +02:00
|
|
|
%define origversion 2.0.4-rc2
|
2008-03-19 01:56:08 +01:00
|
|
|
AutoReqProv: on
|
2009-01-14 17:15:28 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: numactl-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-01-16 01:50:04 +01:00
|
|
|
Source: numactl-%{origversion}.tar.bz2
|
2010-01-12 16:07:37 +01:00
|
|
|
Source2: baselibs.conf
|
2009-12-16 16:11:37 +01:00
|
|
|
Patch0: numactl_install_all_manpages
|
2010-06-09 11:31:38 +02:00
|
|
|
Patch1: numactl_fix_mem_corrup_numa_init.patch
|
2007-01-16 00:27:07 +01:00
|
|
|
Group: System/Management
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-12 16:07:37 +01:00
|
|
|
ExclusiveArch: ia64 x86_64 ppc64 ppc %sparc
|
2007-01-16 00:27:07 +01:00
|
|
|
Requires: perl
|
|
|
|
|
|
|
|
%description
|
|
|
|
Control NUMA policy for individual processes. Offer libnuma for
|
|
|
|
individual NUMA policy in applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-25 22:09:18 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andi Kleen (ak@suse.de)
|
|
|
|
Cliff Wickman (cpw@sgi.com)
|
|
|
|
|
|
|
|
%package -n libnuma1
|
2009-12-11 17:28:14 +01:00
|
|
|
License: GPLv2+
|
2008-06-25 22:09:18 +02:00
|
|
|
Summary: NUMA Policy Control
|
2008-08-06 01:54:12 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2008-06-25 22:09:18 +02:00
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%description -n libnuma1
|
|
|
|
Control NUMA policy for individual processes. Offer libnuma for
|
|
|
|
individual NUMA policy in applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andi Kleen (ak@suse.de)
|
|
|
|
Cliff Wickman (cpw@sgi.com)
|
|
|
|
|
|
|
|
%package -n libnuma-devel
|
2009-12-11 17:28:14 +01:00
|
|
|
License: GPLv2+
|
2008-06-25 22:09:18 +02:00
|
|
|
Summary: NUMA Policy Control
|
2008-08-06 01:54:12 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2008-06-25 22:09:18 +02:00
|
|
|
AutoReqProv: on
|
|
|
|
Requires: libnuma1 = %{version}
|
|
|
|
|
|
|
|
%description -n libnuma-devel
|
|
|
|
Control NUMA policy for individual processes. Offer libnuma for
|
|
|
|
individual NUMA policy in applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:27:07 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andi Kleen (ak@suse.de)
|
2008-04-10 15:16:40 +02:00
|
|
|
Cliff Wickman (cpw@sgi.com)
|
2007-01-16 00:27:07 +01:00
|
|
|
|
|
|
|
%prep
|
2009-01-16 01:50:04 +01:00
|
|
|
%setup -n %{name}-%{origversion}
|
2009-01-29 00:30:08 +01:00
|
|
|
%patch0 -p1
|
2010-06-09 11:31:38 +02:00
|
|
|
%patch1 -p1
|
2007-01-16 00:27:07 +01:00
|
|
|
|
|
|
|
%build
|
2010-01-12 16:07:37 +01:00
|
|
|
make %{?jobs:-j%jobs} CFLAGS="${RPM_OPT_FLAGS}"
|
2007-01-16 00:27:07 +01:00
|
|
|
|
2008-08-06 01:54:12 +02:00
|
|
|
%install
|
2007-01-16 00:27:07 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man3
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man5
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/usr/include
|
2010-02-12 06:56:15 +01:00
|
|
|
make prefix="%buildroot/%_prefix" libdir="%buildroot/%_libdir" install
|
2008-06-25 22:09:18 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*a
|
2007-01-16 00:27:07 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-06-25 22:09:18 +02:00
|
|
|
%post -n libnuma1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libnuma1 -p /sbin/ldconfig
|
|
|
|
|
2007-01-16 00:27:07 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-06-25 22:09:18 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%doc CHANGES
|
|
|
|
|
|
|
|
%files -n libnuma1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lib*so.*
|
|
|
|
|
|
|
|
%files -n libnuma-devel
|
|
|
|
%defattr(-,root,root)
|
2007-01-16 00:27:07 +01:00
|
|
|
%doc %{_mandir}/man3/*
|
2008-06-25 22:09:18 +02:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*so
|
2007-01-16 00:27:07 +01:00
|
|
|
|
2007-08-16 14:07:21 +02:00
|
|
|
%changelog
|