From 24f9809fb51d3f75c74b465ef24ae47290684ddedc8ed4406234579e153443a5 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 25 Apr 2017 03:45:11 +0000 Subject: [PATCH] Accepting request 490856 from home:alois:branches:devel:languages:python - Update to 0.14.9 (see included CHANGES file) - Converted to single-spec - LICENSE file is now provided internally, so dropped Source1 - Dropped python-ruamel.ordereddict as build requirement OBS-URL: https://build.opensuse.org/request/show/490856 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=3 --- LICENSE | 21 --------------------- python-ruamel.yaml.changes | 8 ++++++++ python-ruamel.yaml.spec | 38 ++++++++++++++++++++++++-------------- ruamel.yaml-0.12.14.tar.gz | 3 --- ruamel.yaml-0.14.9.tar.gz | 3 +++ 5 files changed, 35 insertions(+), 38 deletions(-) delete mode 100644 LICENSE delete mode 100644 ruamel.yaml-0.12.14.tar.gz create mode 100644 ruamel.yaml-0.14.9.tar.gz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index ee63b38..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - - The MIT License (MIT) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - diff --git a/python-ruamel.yaml.changes b/python-ruamel.yaml.changes index 36d6bb4..5ed66ac 100644 --- a/python-ruamel.yaml.changes +++ b/python-ruamel.yaml.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Apr 24 20:16:56 UTC 2017 - aloisio@gmx.com + +- Update to 0.14.9 (see included CHANGES file) +- Converted to single-spec +- LICENSE file is now provided internally, so dropped Source1 +- Dropped python-ruamel.ordereddict as build requirement + ------------------------------------------------------------------- Tue Oct 11 21:14:56 UTC 2016 - rjschwei@suse.com diff --git a/python-ruamel.yaml.spec b/python-ruamel.yaml.spec index 966c558..9c710db 100644 --- a/python-ruamel.yaml.spec +++ b/python-ruamel.yaml.spec @@ -1,7 +1,7 @@ # # spec file for package python-ruamel.yaml # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,19 +16,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ruamel.yaml -Version: 0.12.14 +Version: 0.14.9 Release: 0 -Url: https://bitbucket.org/ruamel/yaml Summary: Python YAML parser License: MIT Group: Development/Languages/Python -Source: ruamel.yaml-%{version}.tar.gz -Source1: LICENSE +Url: https://bitbucket.org/ruamel/yaml +Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml/ruamel.yaml-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%ifpython2 Requires: python-ruamel.ordereddict -BuildRequires: python-devel -BuildRequires: python-ruamel.ordereddict -Buildrequires: python-setuptools +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages %description ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation @@ -37,15 +42,20 @@ of comments, seq/map flow style, and map key order %prep %setup -q -n ruamel.yaml-%{version} rm -rf *egg-info -cp %{SOURCE1} . %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} --single-version-externally-managed +%python_install --single-version-externally-managed +%python_exec %fdupes -s %{buildroot}%{$python_sitearch} -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE README.rst -%{python_sitearch}/* +%doc CHANGES LICENSE README.rst +%{python_sitearch}/_ruamel_yaml*.so +%{python_sitearch}/ruamel +%{python_sitearch}/ruamel.yaml-%{version}-py%{python_version}-nspkg.pth +%{python_sitearch}/ruamel.yaml-%{version}-py%{python_version}.egg-info + +%changelog diff --git a/ruamel.yaml-0.12.14.tar.gz b/ruamel.yaml-0.12.14.tar.gz deleted file mode 100644 index de15cd8..0000000 --- a/ruamel.yaml-0.12.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7e2996bca3faf6eee94e13b72d32b9ba86089397c5e0c581f0860cd35b643f0 -size 228952 diff --git a/ruamel.yaml-0.14.9.tar.gz b/ruamel.yaml-0.14.9.tar.gz new file mode 100644 index 0000000..05c2ab4 --- /dev/null +++ b/ruamel.yaml-0.14.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e6b83ee98e1b71195ae9afc1e41b57ce8e858d091564b58e8007a100545cf7c +size 241660