2007-01-16 00:27:07 +01:00
|
|
|
#
|
2011-05-18 15:44:30 +02:00
|
|
|
# spec file for package numactl
|
2007-01-16 00:27:07 +01:00
|
|
|
#
|
2015-02-24 07:44:19 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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
|
|
|
|
Summary: NUMA Policy Control
|
2015-01-27 13:15:15 +01:00
|
|
|
License: GPL-2.0
|
2013-04-16 11:16:34 +02:00
|
|
|
Group: System/Management
|
2014-11-25 08:08:04 +01:00
|
|
|
Version: 2.0.10
|
2013-04-16 11:16:34 +02:00
|
|
|
Release: 0
|
2012-11-08 22:44:01 +01:00
|
|
|
Source: ftp://oss.sgi.com/www/projects/libnuma/download/numactl-%{version}.tar.gz
|
2010-01-12 16:07:37 +01:00
|
|
|
Source2: baselibs.conf
|
2014-11-25 08:08:04 +01:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2012-11-08 22:44:01 +01:00
|
|
|
Patch0: revert_date_in_numastat.patch
|
2014-11-25 08:08:04 +01:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2014-06-13 17:12:50 +02:00
|
|
|
Patch1: 0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch
|
2015-02-24 07:44:19 +01:00
|
|
|
Patch2: numactl-clearcache-pie.patch
|
2007-01-16 00:27:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-01-20 21:17:27 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2014-11-25 08:08:04 +01:00
|
|
|
BuildRequires: autoconf >= 2.64
|
|
|
|
BuildRequires: automake
|
2015-01-20 21:17:27 +01:00
|
|
|
%endif
|
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
|
|
|
%package -n libnuma1
|
|
|
|
Summary: NUMA Policy Control
|
2013-04-16 11:16:34 +02:00
|
|
|
License: LGPL-2.1+
|
2008-08-06 01:54:12 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2008-06-25 22:09:18 +02:00
|
|
|
|
|
|
|
%description -n libnuma1
|
|
|
|
Control NUMA policy for individual processes. Offer libnuma for
|
|
|
|
individual NUMA policy in applications.
|
|
|
|
|
|
|
|
%package -n libnuma-devel
|
|
|
|
Summary: NUMA Policy Control
|
2015-01-27 13:15:15 +01:00
|
|
|
License: GPL-2.0
|
2008-08-06 01:54:12 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2008-06-25 22:09:18 +02:00
|
|
|
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
|
|
|
%prep
|
2012-11-08 22:44:01 +01:00
|
|
|
%setup -q
|
2009-01-29 00:30:08 +01:00
|
|
|
%patch0 -p1
|
2014-06-13 17:12:50 +02:00
|
|
|
%patch1 -p1
|
2015-02-24 07:44:19 +01:00
|
|
|
%patch2 -p1
|
2007-01-16 00:27:07 +01:00
|
|
|
%build
|
2015-01-20 21:17:27 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2014-11-25 08:08:04 +01:00
|
|
|
autoconf
|
2015-01-20 21:17:27 +01:00
|
|
|
%endif
|
2014-11-27 08:38:06 +01:00
|
|
|
%configure --disable-static
|
2014-11-25 08:08:04 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
2007-01-16 00:27:07 +01:00
|
|
|
|
2008-08-06 01:54:12 +02:00
|
|
|
%install
|
2014-11-25 08:08:04 +01:00
|
|
|
%make_install
|
2014-11-27 08:45:36 +01:00
|
|
|
rm %{buildroot}%{_mandir}/man2/move_pages.2*
|
2014-11-25 08:08:04 +01:00
|
|
|
rm -f %{buildroot}/%{_libdir}/lib*a
|
2007-01-16 00:27:07 +01:00
|
|
|
|
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
|