15
0

Accepting request 715643 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/715643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ruamel.base?expand=0&rev=3
This commit is contained in:
2019-07-21 09:29:10 +00:00
committed by Git OBS Bridge
2 changed files with 24 additions and 12 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jul 15 15:06:26 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Replace namespace nspkg.pth and --single-version-externally-managed
with a normal namespace __init__.py
- Bumped version to 1.0.0+post1 due to incompatible namespace technique
- Tidy spec
-------------------------------------------------------------------
Mon Apr 24 13:16:01 UTC 2017 - aloisio@gmx.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ruamel.base
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,45 +12,49 @@
# 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.base
Version: 1.0.0
Version: 1.0.0+post1
Release: 0
Summary: Shared ruamel routines
License: MIT
Group: Development/Languages/Python
Url: https://bitbucket.org/ruamel/base
Source: https://files.pythonhosted.org/packages/source/r/ruamel.base/ruamel.base-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/r/ruamel.base/ruamel.base-1.0.0.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Shared code for ruamel implementations
This is a common package for the "ruamel" namespace.
%prep
%setup -q -n ruamel.base-%{version}
%setup -q -n ruamel.base-1.0.0
rm -rf *.egg-info
# https://bitbucket.org/ruamel/base/issues/1
sed -i '/sys.exit/d' setup.py
# Use normal namespaces with a __init__.py, so it is easier to
# managed the ordereddict and yaml packages which also include .so files
sed -i '/namespace_packages=/d' setup.py
%build
%python_build
%install
%python_install --single-version-externally-managed
export RUAMEL_NO_PIP_INSTALL_CHECK=1
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%doc README.rst
%license LICENSE
%{python_sitelib}/ruamel
%{python_sitelib}/ruamel.base-%{version}-py%{python_version}-nspkg.pth
%{python_sitelib}/ruamel.base-%{version}-py%{python_version}.egg-info
%{python_sitelib}/ruamel.base-1.0.0-py%{python_version}.egg-info
%changelog