2008-01-28 04:29:21 +01:00
|
|
|
#
|
2011-06-20 11:45:00 +02:00
|
|
|
# spec file for package cpuset
|
2008-01-28 04:29:21 +01:00
|
|
|
#
|
2015-12-29 10:11:35 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-09 21:45:33 +02:00
|
|
|
# Copyright (c) 2008-2011 Novell, Inc. Waltham, MA, USA
|
2008-01-28 04:29:21 +01:00
|
|
|
#
|
2008-09-03 02:37:46 +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.
|
|
|
|
|
2008-01-28 04:29:21 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cpuset
|
2011-06-09 21:45:33 +02:00
|
|
|
Version: 1.5.6
|
2014-05-30 18:55:31 +02:00
|
|
|
Release: 0
|
2008-01-28 04:29:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-12-29 10:11:35 +01:00
|
|
|
Url: https://github.com/lpechacek/cpuset
|
2009-07-03 17:06:07 +02:00
|
|
|
Summary: Allows manipulation of cpusets on system and provides higher level functions
|
2014-05-30 18:55:31 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Management
|
2009-02-16 01:14:23 +01:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2014-05-30 18:55:31 +02:00
|
|
|
Patch0: cset-make-it-handle-cgroup-mounts.patch
|
2015-12-29 10:11:35 +01:00
|
|
|
Patch1: Fix-crash-with-SCHED_IDLE-policy.patch
|
|
|
|
Patch2: Handle-unknown-scheduler-policy-codes-gracefully.patch
|
|
|
|
Patch3: Parse-proc-pid-stat-properly.patch
|
|
|
|
Patch4: Docu-remove-mention-about-nonexistent-option.patch
|
|
|
|
Patch5: Docu-fix-asciidoc-build-error.patch
|
|
|
|
Patch6: Update-URLs-after-project-migration.patch
|
|
|
|
Patch7: Docu-fixed-a-typo.patch
|
|
|
|
Patch8: Fix-typo-in-setup-py.patch
|
2008-01-28 04:29:21 +01:00
|
|
|
BuildRequires: python-devel
|
2015-12-29 10:11:35 +01:00
|
|
|
|
2009-02-16 01:14:23 +01:00
|
|
|
%if 0%{?suse_version} > 0
|
2008-01-28 04:29:21 +01:00
|
|
|
%py_requires
|
2009-02-16 01:14:23 +01:00
|
|
|
%endif
|
2015-12-29 10:11:35 +01:00
|
|
|
|
2009-02-16 01:14:23 +01:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2008-01-28 04:29:21 +01:00
|
|
|
|
|
|
|
%description
|
2015-12-29 10:11:35 +01:00
|
|
|
|
2008-01-28 04:29:21 +01:00
|
|
|
Cpuset is a Python application to make using the cpusets facilities in
|
|
|
|
the Linux kernel easier. The actual included command is called cset
|
2009-07-03 17:06:07 +02:00
|
|
|
and it allows manipulation of cpusets on the system and provides higher
|
2009-02-16 01:14:23 +01:00
|
|
|
level functions such as implementation and control of a basic CPU
|
|
|
|
shielding setup.
|
2008-01-28 04:29:21 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2014-05-30 18:55:31 +02:00
|
|
|
%patch0 -p1
|
2015-12-29 10:11:35 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
2008-01-28 04:29:21 +01:00
|
|
|
|
|
|
|
%build
|
2009-02-16 01:14:23 +01:00
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
%{__python} setup.py build
|
2008-09-03 02:37:46 +02:00
|
|
|
#make doc ->not yet, asciidoc is missing...
|
2008-01-28 04:29:21 +01:00
|
|
|
|
|
|
|
%install
|
2009-02-16 01:14:23 +01:00
|
|
|
# Install binaries, but do not install docs via setup.py
|
|
|
|
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
|
|
|
%{__rm} -rf %{buildroot}/eraseme
|
2015-12-29 10:11:35 +01:00
|
|
|
|
2009-02-16 01:14:23 +01:00
|
|
|
# Install documentation
|
|
|
|
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/cpuset
|
2009-12-04 13:22:45 +01:00
|
|
|
%{__cp} NEWS README INSTALL AUTHORS COPYING cset.init.d %{buildroot}/%{_defaultdocdir}/cpuset/
|
2009-02-16 01:14:23 +01:00
|
|
|
%{__mkdir_p} %{buildroot}/%{_mandir}/man1
|
|
|
|
cd doc
|
|
|
|
%{__gzip} *.1
|
|
|
|
%{__cp} *.1.gz %{buildroot}/%{_mandir}/man1
|
|
|
|
%{__cp} *.txt %{buildroot}/%{_defaultdocdir}/cpuset/
|
|
|
|
%{__mkdir} %{buildroot}/%{_defaultdocdir}/cpuset/html
|
|
|
|
%{__cp} *.html %{buildroot}/%{_defaultdocdir}/cpuset/html/
|
2008-01-28 04:29:21 +01:00
|
|
|
|
2015-12-29 10:11:35 +01:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2009-02-16 01:14:23 +01:00
|
|
|
%files
|
2008-01-28 04:29:21 +01:00
|
|
|
%defattr(-,root,root)
|
2009-02-16 01:14:23 +01:00
|
|
|
%{_bindir}/cset
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_defaultdocdir}/*
|
2008-01-28 04:29:21 +01:00
|
|
|
|
|
|
|
%changelog
|