Accepting request 1127974 from home:mkoutny:branches:hardware
Bump to v1.6.2, remove python2 deps OBS-URL: https://build.opensuse.org/request/show/1127974 OBS-URL: https://build.opensuse.org/package/show/hardware/cpuset?expand=0&rev=43
This commit is contained in:
parent
cc20caeba9
commit
2a03fb0b82
@ -1,23 +0,0 @@
|
||||
From a4b6b275d0a43d2794ab9e82922d3431aeea9903 Mon Sep 17 00:00:00 2001
|
||||
From: Markus <ekkwam@gmail.com>
|
||||
Date: Tue, 25 Aug 2020 18:56:34 +0300
|
||||
Subject: [PATCH] Fix invalid parentheses
|
||||
|
||||
Acked-by: Libor Pechacek <lpechacek@suse.com>
|
||||
---
|
||||
cpuset/commands/set.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cpuset/commands/set.py b/cpuset/commands/set.py
|
||||
index c71f37f..7d0d382 100644
|
||||
--- a/cpuset/commands/set.py
|
||||
+++ b/cpuset/commands/set.py
|
||||
@@ -484,7 +484,7 @@ def set_details(name, indent=None, width=None, usehex=False):
|
||||
if width != 0 and len(tst) > width:
|
||||
target = width - len(out)
|
||||
patha = set.path[:len(set.path)//2-3]
|
||||
- pathb = set.path[len(set.path//2):]
|
||||
+ pathb = set.path[len(set.path)//2:]
|
||||
patha = patha[:target//2-3]
|
||||
pathb = pathb[-target//2:]
|
||||
out += patha + '...' + pathb
|
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 21 17:37:42 UTC 2023 - Michal Koutný <mkoutny@suse.com>
|
||||
|
||||
- Update to 4f80263, release v1.6.2
|
||||
* Update descriptor to match any python 3.x version
|
||||
* Remove python2.x specific paths in the spec file after #33 got merged
|
||||
* Update the github project location to github.com/SUSE/cpuset
|
||||
* Remove Python 2 support
|
||||
* cpuset.spec: Update source URL
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 2 12:27:18 UTC 2023 - Michal Koutný <mkoutny@suse.com>
|
||||
|
||||
- Update to 394c8b0, release v1.6.1
|
||||
* Fix --syset typo (bsc#1210468)
|
||||
* fix doc typo (bsc#1210468)
|
||||
- Remove cpuset-1.6-Fix_invalid_parentheses.patch: in upstream tarball
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 12 14:37:33 UTC 2021 - Libor Pechacek <lpechacek@suse.com>
|
||||
|
||||
|
28
cpuset.spec
28
cpuset.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package cpuset
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2008-2011 Novell, Inc. Waltham, MA, USA
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -17,27 +17,20 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} < 1315
|
||||
%define pyver python
|
||||
%else
|
||||
%define pyver python3
|
||||
%endif
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
Name: cpuset
|
||||
Version: 1.6
|
||||
Version: 1.6.2
|
||||
Release: 0
|
||||
Summary: Cpuset manipulation tool
|
||||
License: GPL-2.0-only
|
||||
Group: System/Management
|
||||
URL: https://github.com/lpechacek/cpuset
|
||||
Source: https://github.com/lpechacek/cpuset/archive/v%{version}.tar.gz
|
||||
Patch0: cpuset-1.6-Fix_invalid_parentheses.patch
|
||||
BuildRequires: %{pyver}-setuptools
|
||||
Requires: %{pyver}-future
|
||||
URL: https://github.com/SUSE/cpuset
|
||||
Source: https://github.com/SUSE/cpuset/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description
|
||||
Cpuset is a Python application for using the cpuset facilities in
|
||||
@ -51,12 +44,12 @@ shielding setup.
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%{pyver} setup.py build
|
||||
python3 setup.py build
|
||||
#make doc ->not yet, asciidoc is missing...
|
||||
|
||||
%install
|
||||
# Install binaries, but do not install docs via setup.py
|
||||
%{pyver} setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
||||
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
||||
rm -rf %{buildroot}/eraseme
|
||||
|
||||
# Install documentation
|
||||
@ -65,17 +58,14 @@ mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}/html
|
||||
|
||||
install -m 0444 doc/*.1 %{buildroot}/%{_mandir}/man1
|
||||
|
||||
install -m 0444 NEWS README AUTHORS COPYING cset.init.d doc/*.txt %{buildroot}/%{_defaultdocdir}/%{name}
|
||||
install -m 0444 NEWS README AUTHORS cset.init.d doc/*.txt %{buildroot}/%{_defaultdocdir}/%{name}
|
||||
install -m 0444 doc/*.html %{buildroot}/%{_defaultdocdir}/%{name}/html/
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc %{_docdir}/%{name}
|
||||
%{_bindir}/cset
|
||||
%if 0%{?suse_version} < 1315
|
||||
%{python_sitelib}/*
|
||||
%else
|
||||
%{python3_sitelib}/*
|
||||
%endif
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
|
3
v1.6.2.tar.gz
Normal file
3
v1.6.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:298187d07830c0308a35bbdc57daef22743f6300af1da5e780b45c7579ebf78b
|
||||
size 116675
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:61702a7ad9acb9f0ff30abd37cc74dbae52095f265a89aacee99f42a61ac2512
|
||||
size 117015
|
Loading…
Reference in New Issue
Block a user