From 0ffe65d95f053014516403fd50b288769aca7a5d1c7061c551a97a77b6191325 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 22 Apr 2020 11:09:08 +0000 Subject: [PATCH] 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