Build without python2 by default (rhbz#1775075)

This commit is contained in:
John Eckersberg 2019-11-22 10:32:42 -05:00
parent 6cf2444e1f
commit f0fb35f7b6
3 changed files with 9 additions and 5 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ PyYAML-3.09.tar.gz
/PyYAML-5.1.tar.gz
/PyYAML-5.1.1.tar.gz
/PyYAML-5.1.2.tar.gz
/5.1.2.tar.gz

View File

@ -1,9 +1,9 @@
# Prepared for Python 2 removal
%bcond_without python2
# Python 2 removal, RHBZ#1775075
%bcond_with python2
Name: PyYAML
Version: 5.1.2
Release: 3%{?dist}
Release: 4%{?dist}
%global uversion %{version}
Summary: YAML parser and emitter for Python
@ -66,7 +66,7 @@ Obsoletes: python3-PyYAML < 4.1-5
%prep
%setup -q -n pyyaml-%{version}
%setup -q
chmod a-x examples/yaml-highlight/yaml_hl.py
# remove pre-generated file
@ -110,6 +110,9 @@ rm -rf ext/_yaml.c
%changelog
* Fri Nov 22 2019 John Eckersberg <eck@redhat.com> - 5.1.2-4
- Build without python2 by default (rhbz#1775075)
* Thu Sep 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.2-3
- Stop providing PyYAML from python2-pyyaml, Python now means Python 3

View File

@ -1 +1 @@
SHA512 (PyYAML-5.1.2.tar.gz) = b5ee201c612486a95c87b7e41d474313160284359b8b30ababc80b51325aef9dd7dc27eb3b8a03a4749cb8c7e3789c5684d5c285fe35d4b20be1f189641531e0
SHA512 (5.1.2.tar.gz) = b5ee201c612486a95c87b7e41d474313160284359b8b30ababc80b51325aef9dd7dc27eb3b8a03a4749cb8c7e3789c5684d5c285fe35d4b20be1f189641531e0