File libcpuset.spec of Package libcpuset
#
# spec file for package libcpuset (Version 1.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Url: http://oss.sgi.com/projects/cpusets/
Name: libcpuset
License: LGPL v2.1 or later
Summary: cpuset processor and memory placement library
Version: 1.0
Release: 8
AutoReqProv: on
Source: libcpuset-%{version}.tar.bz2
Patch0: libcpuset-fix-missing-syscall.diff
Patch1: libcpuset-rm-cpuonline.diff
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libbitmask-devel
%define debug_package_requires libcpuset1 = %{version}-%{release}
%description
The Cpuset System is a processor and memory placement mechanism that
enables a system administrator to confine tasks to running certain
CPUs, and to allocating memory on certain Memory Nodes. The libcpuset
library provides a convenient 'C' API to cpusets.
Authors:
--------
Paul Jackson <pj@sgi.com>
%package -n libcpuset1
License: LGPL v2.1 or later
Summary: cpuset processor and memory placement library
Group: Development/Libraries/C and C++
AutoReqProv: on
%description -n libcpuset1
The Cpuset System is a processor and memory placement mechanism that
enables a system administrator to confine tasks to running certain
CPUs, and to allocating memory on certain Memory Nodes. The libcpuset
library provides a convenient 'C' API to cpusets.
Authors:
--------
Paul Jackson <pj@sgi.com>
%package -n libcpuset-devel
License: LGPL v2.1 or later
Summary: cpuset processor and memory placement library
Group: Development/Libraries/C and C++
AutoReqProv: on
Requires: libcpuset1 = %{version} glibc-devel
%description -n libcpuset-devel
The Cpuset System is a processor and memory placement mechanism that
enables a system administrator to confine tasks to running certain
CPUs, and to allocating memory on certain Memory Nodes. The libcpuset
library provides a convenient 'C' API to cpusets.
Authors:
--------
Paul Jackson <pj@sgi.com>
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%build
autoreconf -i
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libcpuset1 -p /sbin/ldconfig
%postun -n libcpuset1 -p /sbin/ldconfig
%files -n libcpuset1
%defattr(-,root,root)
%{_libdir}/lib*so.*
%files -n libcpuset-devel
%defattr(-,root,root)
%doc %{_mandir}/man3/*
%doc %{_mandir}/man4/*
%{_includedir}/*
%{_libdir}/lib*so
%{_docdir}/libcpuset/libcpuset.*
%dir %{_docdir}/libcpuset
%changelog
* Thu Apr 16 2009 crrodriguez@suse.de
- use --disable-static
- fix -devel package dependencies
* Wed Jan 28 2009 bwalle@suse.de
- Fix problem that cpunodemap shows wrong number of cpus
(bnc #468091).
* Wed Oct 22 2008 mrueckert@suse.de
- fix debug_packages_requires define
* Mon Aug 04 2008 bwalle@suse.de
- fix build on platforms that have no __NR_get_mempolicy and/or
__NR_set_mempolicy system call(s) like s390 by returning -1
and setting errno to ENOSYS
* Sat Jul 19 2008 bwalle@suse.de
- initial SUSE package (FATE #304274)