forked from pool/python-acitoolkit
Accepting request 949652 from home:pgajdos:python
- fix for python 3.10
- added patches
fix 629b84887d
+ python-acitoolkit-python-310.patch
OBS-URL: https://build.opensuse.org/request/show/949652
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acitoolkit?expand=0&rev=12
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-acitoolkit
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,6 +26,8 @@ Group: Development/Languages/Python
|
||||
URL: http://github.com/datacenter/acitoolkit
|
||||
Source: https://github.com/datacenter/acitoolkit/archive/v%{version}.tar.gz
|
||||
Patch0: remove-app-dependency.patch
|
||||
# https://github.com/datacenter/acitoolkit/commit/629b84887dd0f0183b81efc8adb16817f985541a
|
||||
Patch1: python-acitoolkit-python-310.patch
|
||||
BuildRequires: %{python_module graphviz}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module mock}
|
||||
@@ -89,10 +91,11 @@ Python samples for using acitoolkit for programming ACI.
|
||||
%setup -q -n acitoolkit-%{version}
|
||||
# Remove dependencies of applications/ and samples/ from the library
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
chmod -x LICENSE NOTICE
|
||||
|
||||
sed -i '1{/^#!.*env python/d}' acitoolkit/*.py samples/*.py samples/switch-commands/*.py
|
||||
sed -i '1{/^#!.*env python/d}' acitoolkit/*.py samples/*.py samples/switch-commands/*.py
|
||||
|
||||
rm applications/cableplan/.coverage applications/eventfeeds/.gitignore
|
||||
|
||||
|
||||
Reference in New Issue
Block a user