forked from pool/python-ruamel.yaml
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user