diff --git a/python-construct.spec b/python-construct.spec index 75a057e..e128bc1 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -1,19 +1,23 @@ -%if 0%{?fedora} && 0%{?fedora} < 31 +%if 0%{?fedora} && 0%{?fedora} < 32 %global with_python2 1 %endif Summary: A powerful declarative parser/builder for binary data Name: python-construct Version: 2.9.45 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: http://construct.readthedocs.org Source0: https://pypi.python.org/packages/source/c/construct/construct-%{version}.tar.gz BuildArch: noarch + +%if 0%{?with_python2} BuildRequires: python2-devel #BuildRequires: python2-pytest +%endif BuildRequires: python3-devel #BuildRequires: python3-pytest + %global _description\ Construct is a powerful declarative parser (and builder) for binary\ data.\ @@ -74,6 +78,10 @@ Requires: python3-six %{python3_sitelib}/construct-%{version}-py?.?.egg-info %changelog +* Tue Jun 18 2019 Peter Robinson 2.9.45-2 +- Add python2 build deps to conditional +- Re-enable python2 builds on rawhide as it's still a build requirement + * Mon May 13 2019 Terje Rosten - 2.9.45-1 - 2.9.45 - Remove Python 2 subpackage