15
0

Accepting request 781302 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/781302
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-configshell-fb?expand=0&rev=12
This commit is contained in:
2020-03-04 08:47:57 +00:00
committed by Git OBS Bridge
7 changed files with 72 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
From 949c674b807ddfb312cbac234b1b995066c77dad Mon Sep 17 00:00:00 2001
From: Matt Coleman <matt@datto.com>
Date: Thu, 7 Nov 2019 19:43:57 -0500
Subject: [PATCH] Ensure that all output reaches the client when daemonized
---
configshell/console.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configshell/console.py b/configshell/console.py
index 8ed6b506aea9..003a855080e3 100644
--- a/configshell/console.py
+++ b/configshell/console.py
@@ -191,7 +191,7 @@ class Console(object):
break
else:
clean_text = text
- self.raw_write(clean_text)
+ self.raw_write(clean_text, output=self._stdout)
def indent(self, text, margin=2):
'''
--
2.16.4

18
_service Normal file
View File

@@ -0,0 +1,18 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/open-iscsi/configshell-fb.git</param>
<param name="subdir"></param>
<param name="filename">python-configshell-fb</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(\d*\.\d*\.)fb(\d*)</param>
<param name="versionrewrite-replacement">\1\2</param>
<param name="revision">v1.1.27</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*configshell-fb*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

6
_servicedata Normal file
View File

@@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/open-iscsi/rtslib-fb.git</param>
<param name="changesrevision">b37bc67fc7ed3d1ec447e9f43eb68d30dd716367</param></service><service name="tar_scm">
<param name="url">https://github.com/open-iscsi/configshell-fb.git</param>
<param name="changesrevision">7e3b8ebe12519ad5cc20a9654a7c070b2ecf3cd8</param></service></servicedata>

View File

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

View File

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

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Mar 03 17:32:48 UTC 2020 - lduncan@suse.com
- Update to version v1.1.27 from v1.1.26 (jre#SLE-9345):
* version 1.1.27
* Use pyparsing's locatedExpr instead of our custom helper
And updated the SPEC file, also adding a _service file.
Replacing configshell-fb-1.1.26.tar.gz with
python-configshell-fb-v1.1.27.tar.xz, and adding one
upstrem patch:
* Ensure-that-all-output-reaches-the-client-when-daemo.patch
-------------------------------------------------------------------
Mon Sep 16 17:27:49 UTC 2019 - Lee Duncan <lduncan@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-configshell-fb
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,16 @@
#
%define modname configshell-fb
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname}
Version: 1.1.26
Name: python-configshell-fb
Version: 1.1.27
Release: 0%{?dist}
Summary: A Python library for building configuration shells
License: Apache-2.0
Group: Development/Libraries/Python
Url: http://github.com/open-iscsi/configshell-fb
Source: %{modname}-%{version}.tar.gz
URL: https://github.com/open-iscsi/configshell-fb
Source: %{name}-v%{version}.tar.xz
Patch1: Ensure-that-all-output-reaches-the-client-when-daemo.patch
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@@ -65,7 +65,8 @@ rtslib, and configshell, or stick with all non-fb versions, since they are
no longer strictly compatible.
%prep
%setup -q -n %{modname}-%{version}
%setup -q -n %{name}-v%{version}
%patch1 -p1
%build
%python_build