SHA256
1
0
forked from pool/cpuset

Accepting request 591739 from hardware

- Do not require -devel but use only setuptools module
- Use ~ in version as without it the package is newer than
  release 1.6
- Reduce the compat py2/py3 choicer, SLE12 can be python3

- Update to 02ef9e09e1da, release v1.6pre1 (bsc#1079868)

OBS-URL: https://build.opensuse.org/request/show/591739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpuset?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2018-03-28 08:34:04 +00:00 committed by Git OBS Bridge
commit 2897c263c5
4 changed files with 43 additions and 24 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Mar 27 19:15:20 UTC 2018 - tchvatal@suse.com
- Do not require -devel but use only setuptools module
- Use ~ in version as without it the package is newer than
release 1.6
- Reduce the compat py2/py3 choicer, SLE12 can be python3
-------------------------------------------------------------------
Thu Feb 8 07:50:25 UTC 2018 - lpechacek@suse.com
- Update to 02ef9e09e1da, release v1.6pre1 (bsc#1079868)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 24 08:11:36 UTC 2017 - lpechacek@suse.com Fri Mar 24 08:11:36 UTC 2017 - lpechacek@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package cpuset # spec file for package cpuset
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2008-2011 Novell, Inc. Waltham, MA, USA # Copyright (c) 2008-2011 Novell, Inc. Waltham, MA, USA
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -17,26 +17,29 @@
# #
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define realver 1.6pre1
Name: cpuset %if 0%{?suse_version} < 1315
Version: 1.5.7 %define pyver python
Release: 0 %else
Summary: Allows manipulation of cpusets on system and provides higher level functions %define pyver python3
License: GPL-2.0 %endif
Group: System/Management %if 0%{?suse_version} && 0%{?suse_version} <= 1110
Url: https://github.com/lpechacek/cpuset %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Source: https://github.com/lpechacek/cpuset/archive/v%{version}.tar.gz %else
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?sles_version} != 11
BuildArch: noarch BuildArch: noarch
%endif %endif
%if 0%{?suse_version} > 0 Name: cpuset
%py_requires Version: 1.6~pre1
%endif Release: 0
Summary: Allows manipulation of cpusets on system and provides higher level functions
License: GPL-2.0-only
Group: System/Management
URL: https://github.com/lpechacek/cpuset
Source: https://github.com/lpechacek/cpuset/archive/v%{realver}.tar.gz
BuildRequires: %{pyver}-setuptools
Requires: %{pyver}-future
%description %description
Cpuset is a Python application to make using the cpusets facilities in Cpuset is a Python application to make using the cpusets facilities in
the Linux kernel easier. The actual included command is called cset the Linux kernel easier. The actual included command is called cset
and it allows manipulation of cpusets on the system and provides higher and it allows manipulation of cpusets on the system and provides higher
@ -44,16 +47,15 @@ level functions such as implementation and control of a basic CPU
shielding setup. shielding setup.
%prep %prep
%setup -q %setup -q -n %{name}-%{realver}
%build %build
CFLAGS="%{optflags}" \ %{pyver} setup.py build
python setup.py build
#make doc ->not yet, asciidoc is missing... #make doc ->not yet, asciidoc is missing...
%install %install
# Install binaries, but do not install docs via setup.py # Install binaries, but do not install docs via setup.py
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme %{pyver} setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
rm -rf %{buildroot}/eraseme rm -rf %{buildroot}/eraseme
# Install documentation # Install documentation
@ -69,7 +71,11 @@ install -m 0444 doc/*.html %{buildroot}/%{_defaultdocdir}/%{name}/html/
%defattr(-,root,root) %defattr(-,root,root)
%doc %{_docdir}/%{name} %doc %{_docdir}/%{name}
%{_bindir}/cset %{_bindir}/cset
%if 0%{?suse_version} < 1315
%{python_sitelib}/* %{python_sitelib}/*
%else
%{python3_sitelib}/*
%endif
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:32334e164415ed5aec83c5ffc3dc01c418406eb02d96d881fdfd495587ff0c01
size 106516

3
v1.6pre1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f05baaeef222265e12f6c890d19c841237fdc641ddcd21abf76b2a189d45a6ac
size 114470