From 2a03fb0b82e40edf3f6cffd8e0efc09f32e03e00e40a33c2e8855f971426d0d9 Mon Sep 17 00:00:00 2001 From: Libor Pechacek Date: Thu, 23 Nov 2023 10:02:04 +0000 Subject: [PATCH] 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 --- cpuset-1.6-Fix_invalid_parentheses.patch | 23 ------------------- cpuset.changes | 18 +++++++++++++++ cpuset.spec | 28 ++++++++---------------- v1.6.2.tar.gz | 3 +++ v1.6.tar.gz | 3 --- 5 files changed, 30 insertions(+), 45 deletions(-) delete mode 100644 cpuset-1.6-Fix_invalid_parentheses.patch create mode 100644 v1.6.2.tar.gz delete mode 100644 v1.6.tar.gz diff --git a/cpuset-1.6-Fix_invalid_parentheses.patch b/cpuset-1.6-Fix_invalid_parentheses.patch deleted file mode 100644 index 6853fa1..0000000 --- a/cpuset-1.6-Fix_invalid_parentheses.patch +++ /dev/null @@ -1,23 +0,0 @@ -From a4b6b275d0a43d2794ab9e82922d3431aeea9903 Mon Sep 17 00:00:00 2001 -From: Markus -Date: Tue, 25 Aug 2020 18:56:34 +0300 -Subject: [PATCH] Fix invalid parentheses - -Acked-by: Libor Pechacek ---- - 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 diff --git a/cpuset.changes b/cpuset.changes index a825fc4..a497cd1 100644 --- a/cpuset.changes +++ b/cpuset.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Nov 21 17:37:42 UTC 2023 - Michal Koutný + +- 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ý + +- 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 diff --git a/cpuset.spec b/cpuset.spec index 47c5af7..5ce7b00 100644 --- a/cpuset.spec +++ b/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 diff --git a/v1.6.2.tar.gz b/v1.6.2.tar.gz new file mode 100644 index 0000000..1908a43 --- /dev/null +++ b/v1.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:298187d07830c0308a35bbdc57daef22743f6300af1da5e780b45c7579ebf78b +size 116675 diff --git a/v1.6.tar.gz b/v1.6.tar.gz deleted file mode 100644 index b54054a..0000000 --- a/v1.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61702a7ad9acb9f0ff30abd37cc74dbae52095f265a89aacee99f42a61ac2512 -size 117015