15
0
forked from pool/python-PyYAML

- Update to 5.1:

* many changes, see CHANGES

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyYAML?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal
2019-03-14 14:53:39 +00:00
committed by Git OBS Bridge
parent 9413ff4420
commit 48b4e56339
4 changed files with 13 additions and 6 deletions

View File

@@ -19,15 +19,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-PyYAML
Version: 3.13
Version: 5.1
Release: 0
Summary: YAML parser and emitter for Python
License: MIT
Group: Development/Languages/Python
Url: http://pyyaml.org/wiki/PyYAML
URL: https://github.com/yaml/pyyaml
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libyaml-devel
BuildRequires: python-rpm-macros
%ifpython2
@@ -62,6 +63,7 @@ find examples/ -type f | xargs chmod a-x
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# Increase file-descriptor-count for ppc to make tests happy.
@@ -71,7 +73,6 @@ ulimit -Sn 2048
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root)
%license LICENSE
%doc CHANGES README examples/
%{python_sitearch}/yaml