diff --git PyYAML/PyYAML.spec PyYAML/PyYAML.spec.tmp index 4f9a2a7939..726cdd4b6e 100644 --- PyYAML/PyYAML.spec +++ PyYAML/PyYAML.spec.tmp @@ -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,28 +16,39 @@ 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. +%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. -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. +%description %_description -PyYAML is applicable for a broad range of tasks from complex -configuration files to object serialization and persistance. +%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 @@ -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 +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 3.12-6 +- Python 2 binary package renamed to python2-pyyaml + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Wed Aug 02 2017 Fedora Release Engineering - 3.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild