Python 2 binary package renamed to python2-pyyaml

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-08-19 09:43:37 -04:00
parent 2d121d6561
commit c877a9f6cf

View File

@ -6,7 +6,7 @@
Name: PyYAML
Version: 3.12
Release: 5%{?dist}
Release: 6%{?dist}
Summary: YAML parser and emitter for Python
Group: Development/Libraries
@ -16,29 +16,40 @@ Source0: http://pyyaml.org/download/pyyaml/%{name}-%{version}.tar.gz
BuildRequires: python-devel, python-setuptools, libyaml-devel
BuildRequires: Cython
BuildRequires: libyaml-devel
Provides: python-yaml = %{version}-%{release}
Provides: python-yaml%{?_isa} = %{version}-%{release}
Provides: python2-yaml = %{version}-%{release}
Provides: python2-yaml%{?_isa} = %{version}-%{release}
%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
%endif
%description
YAML is a data serialization format designed for human readability and
interaction with scripting languages. PyYAML is a YAML parser and
emitter for Python.
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
support, capable extension API, and sensible error messages. PyYAML
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
%global _description\
YAML is a data serialization format designed for human readability and\
interaction with scripting languages. PyYAML is a YAML parser and\
emitter for Python.\
\
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle\
support, capable extension API, and sensible error messages. PyYAML\
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.
%description %_description
%package -n python2-pyyaml
Summary: %summary
Provides: python-yaml = %{version}-%{release}
Provides: python-yaml%{?_isa} = %{version}-%{release}
Provides: python2-yaml = %{version}-%{release}
Provides: python2-yaml%{?_isa} = %{version}-%{release}
%{?python_provide:%python_provide python2-pyyaml}
# Remove before F30
Provides: PyYAML%{?_isa} = %{version}-%{release}
Obsoletes: PyYAML < %{version}-%{release}
%description -n python2-pyyaml %_description
%if 0%{?with_python3}
%package -n python3-PyYAML
Summary: YAML parser and emitter for Python
@ -105,7 +116,7 @@ popd
%endif
%files
%files -n python2-pyyaml
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc CHANGES PKG-INFO README examples
@ -121,6 +132,10 @@ popd
%changelog
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.12-6
- Python 2 binary package renamed to python2-pyyaml
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.12-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild