2012-01-31 13:28:26 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-PyYAML
|
|
|
|
#
|
2019-01-14 15:25:21 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-31 13:28:26 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-12-19 16:00:45 +00:00
|
|
|
|
2019-01-14 15:25:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-31 13:28:26 +00:00
|
|
|
#
|
|
|
|
|
2012-12-19 16:00:45 +00:00
|
|
|
|
2017-02-24 14:34:46 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-03-06 13:34:20 +00:00
|
|
|
%define oldpython python
|
2012-01-31 13:28:26 +00:00
|
|
|
Name: python-PyYAML
|
2018-07-15 20:31:27 +00:00
|
|
|
Version: 3.13
|
2012-01-31 13:28:26 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: YAML parser and emitter for Python
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2017-02-24 14:34:46 +00:00
|
|
|
Url: http://pyyaml.org/wiki/PyYAML
|
2017-03-06 13:34:20 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
2017-02-24 14:34:46 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2012-12-19 16:00:45 +00:00
|
|
|
BuildRequires: libyaml-devel
|
2017-02-24 14:34:46 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%ifpython2
|
2017-03-06 13:34:20 +00:00
|
|
|
# python-yaml was last used in openSUSE 12.1.
|
|
|
|
Provides: %{oldpython}-yaml = %{version}
|
|
|
|
Obsoletes: %{oldpython}-yaml < %{version}
|
2012-01-31 13:28:26 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
YAML is a data serialization format designed for human readability
|
2017-03-06 13:34:20 +00:00
|
|
|
and interaction with scripting languages. PyYAML is a YAML parser
|
2012-01-31 13:28:26 +00:00
|
|
|
and emitter for Python.
|
|
|
|
|
|
|
|
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
|
2017-03-06 13:34:20 +00:00
|
|
|
support, capable extension API, and sensible error messages. PyYAML
|
2012-01-31 13:28:26 +00:00
|
|
|
supports standard YAML tags and provides Python-specific tags that
|
|
|
|
allow to represent an arbitrary Python object.
|
|
|
|
|
|
|
|
PyYAML is applicable for a broad range of tasks from complex
|
|
|
|
configuration files to object serialization and persistance.
|
|
|
|
|
2017-03-06 13:34:20 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2012-01-31 13:28:26 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n PyYAML-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-02-24 14:34:46 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2017-03-06 13:34:20 +00:00
|
|
|
# Fix example permissions.
|
|
|
|
find examples/ -type f | xargs chmod a-x
|
2012-01-31 13:28:26 +00:00
|
|
|
|
|
|
|
%install
|
2017-02-24 14:34:46 +00:00
|
|
|
%python_install
|
2012-01-31 13:28:26 +00:00
|
|
|
|
|
|
|
%check
|
2017-03-06 13:34:20 +00:00
|
|
|
# Increase file-descriptor-count for ppc to make tests happy.
|
2014-02-05 14:03:45 +00:00
|
|
|
%ifarch ppc ppc64 s390 s390x
|
2017-02-24 14:34:46 +00:00
|
|
|
ulimit -Sn 2048
|
2013-03-08 08:59:51 +00:00
|
|
|
%endif
|
2017-02-24 14:34:46 +00:00
|
|
|
%python_exec setup.py test
|
2012-01-31 13:28:26 +00:00
|
|
|
|
2017-02-24 14:34:46 +00:00
|
|
|
%files %{python_files}
|
2017-03-06 13:34:20 +00:00
|
|
|
%defattr(-,root,root)
|
2019-01-14 15:25:21 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README examples/
|
2016-09-05 05:25:49 +00:00
|
|
|
%{python_sitearch}/yaml
|
2017-02-24 14:34:46 +00:00
|
|
|
%{python_sitearch}/_yaml.*so
|
|
|
|
%{python_sitearch}/PyYAML-%{version}-py%{python_version}.egg-info
|
2012-01-31 13:28:26 +00:00
|
|
|
|
|
|
|
%changelog
|