From 0ffe65d95f053014516403fd50b288769aca7a5d1c7061c551a97a77b6191325 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 22 Apr 2020 11:09:08 +0000 Subject: [PATCH 1/3] Add touch to %{$python_sitelib}/ruamel/std/__init__.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.std.pathlib?expand=0&rev=3 --- python-ruamel.std.pathlib.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/python-ruamel.std.pathlib.spec b/python-ruamel.std.pathlib.spec index 410c6b1..c130022 100644 --- a/python-ruamel.std.pathlib.spec +++ b/python-ruamel.std.pathlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-ruamel.std.pathlib # -# 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 @@ -12,27 +12,24 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ruamel.std.pathlib Version: 0.6.4 Release: 0 -License: MIT Summary: Improvements over the standard pathlib module and pathlib2 package -Url: https://bitbucket.org/ruamel/std.pathlib +License: MIT Group: Development/Languages/Python +URL: https://sourceforge.net/projects/ruamel-std-pathlib/ Source: https://files.pythonhosted.org/packages/source/r/ruamel.std.pathlib/ruamel.std.pathlib-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-ruamel.base >= 1.0.0+post1 -%ifpython2 -Requires: python-pathlib2 -%endif BuildArch: noarch - %python_subpackages %description @@ -49,8 +46,9 @@ sed -i '/keywords=/d' setup.py export RUAMEL_NO_PIP_INSTALL_CHECK=1 %python_install # This makes this package the owner of the Python 2 namespace ruamel.std -touch %{buildroot}%{python2_sitelib}/ruamel/std/__init__.py -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand touch %{buildroot}%{$python_sitelib}/ruamel/std/__init__.py +%fdupes %{buildroot}%{$python_sitelib} +} %files %{python_files} %doc README.rst From 65acea0d5dcd166f2006a4fa9dbc6cd976fe8c514c5b5b2fd0a99a096568ede3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 22 Apr 2020 11:21:42 +0000 Subject: [PATCH 2/3] So, just in case somebody asks for python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.std.pathlib?expand=0&rev=4 --- python-ruamel.std.pathlib.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-ruamel.std.pathlib.spec b/python-ruamel.std.pathlib.spec index c130022..b2a4887 100644 --- a/python-ruamel.std.pathlib.spec +++ b/python-ruamel.std.pathlib.spec @@ -30,6 +30,9 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ruamel.base >= 1.0.0+post1 BuildArch: noarch +%ifpython2 +Requires: python-pathlib2 +%endif %python_subpackages %description From e5dcd35475adc5b2e7a10c6c2f096f8d523c828cd18d10046022a0d9f240c03f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 22 Apr 2020 11:27:20 +0000 Subject: [PATCH 3/3] - Make package neutral on the Python version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.std.pathlib?expand=0&rev=5 --- python-ruamel.std.pathlib.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-ruamel.std.pathlib.changes b/python-ruamel.std.pathlib.changes index b1c5dcd..85dd6b3 100644 --- a/python-ruamel.std.pathlib.changes +++ b/python-ruamel.std.pathlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 22 11:27:12 UTC 2020 - Matej Cepl + +- Make package neutral on the Python version + ------------------------------------------------------------------- Fri Jul 12 07:20:24 AM UTC 2019 - John Vandenberg