LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libcpuset.spec of Package libcpuset (Project devel:libraries:c_c++)

#
# spec file for package libcpuset
#
# Copyright (c) 2011 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/
#


URL:            http://oss.sgi.com/projects/cpusets/

Name:           libcpuset
License:        LGPL-2.1+
Summary:        cpuset processor and memory placement library
Version:        1.0
Release:        8
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 libtool
%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.

%package -n libcpuset1
Summary:        cpuset processor and memory placement library
Group:          Development/Libraries/C and C++

%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.

%package -n libcpuset-devel
Summary:        cpuset processor and memory placement library
Group:          Development/Libraries/C and C++
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.

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1

%build
autoreconf -i
%configure --disable-static --with-pic
make %{?_smp_mflags}

%install
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la

%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