From ec061387021c3c071b77e5a6c5287c0a52a82996805213756b9d057bf67699e5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 21 Apr 2023 18:27:22 +0000 Subject: [PATCH] Accepting request 1081621 from home:dirkmueller:acdc:as_python3_module SR for python stack proposal OBS-URL: https://build.opensuse.org/request/show/1081621 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=32 --- python-sh.changes | 15 +++++++++++++++ python-sh.spec | 9 ++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/python-sh.changes b/python-sh.changes index 36d2080..1a6075e 100644 --- a/python-sh.changes +++ b/python-sh.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Apr 21 12:34:00 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Wed Apr 19 01:02:26 UTC 2023 - Matej Cepl + +- Switch to single spec version build for PSP + +------------------------------------------------------------------- +Thu Apr 13 22:44:49 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + ------------------------------------------------------------------- Sun Jul 24 07:52:44 UTC 2022 - Dirk Müller diff --git a/python-sh.spec b/python-sh.spec index e77042b..8315784 100644 --- a/python-sh.spec +++ b/python-sh.spec @@ -1,7 +1,7 @@ # # spec file for package python-sh # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-sh Version: 1.14.3 Release: 0 @@ -25,8 +25,10 @@ License: MIT URL: https://github.com/amoffat/sh Source: https://files.pythonhosted.org/packages/source/s/sh/sh-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch +%{?sle15_python_module_pythons} %python_subpackages %description @@ -47,9 +49,10 @@ sh is not a collection of system commands implemented in Python. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec test.py +%pyunittest -v test %files %{python_files} %license LICENSE.txt