Update Python 2 dependency declarations to new packaging standards

This commit is contained in:
Iryna Shcherbina 2018-03-23 23:01:03 +01:00
parent 5b4651ae9a
commit 7064557d26

View File

@ -2,7 +2,7 @@
Name: python-%{pkgname} Name: python-%{pkgname}
Version: 5.1 Version: 5.1
Release: 10%{?dist} Release: 11%{?dist}
Summary: Python QR Code image generator Summary: Python QR Code image generator
License: BSD License: BSD
@ -12,9 +12,9 @@ Source0: http://pypi.python.org/packages/source/q/qrcode/qrcode-%{version
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python-setuptools BuildRequires: python2-setuptools
BuildRequires: python-imaging BuildRequires: python2-imaging
BuildRequires: python-six BuildRequires: python2-six
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
@ -30,14 +30,14 @@ generation of QR Codes.\
%package -n python2-%{pkgname} %package -n python2-%{pkgname}
Summary: %summary Summary: %summary
Requires: python-imaging Requires: python2-imaging
Requires: python2-%{pkgname}-core = %{version}-%{release} Requires: python2-%{pkgname}-core = %{version}-%{release}
%{?python_provide:%python_provide python2-%{pkgname}} %{?python_provide:%python_provide python2-%{pkgname}}
%description -n python2-%{pkgname} %_description %description -n python2-%{pkgname} %_description
%package -n python2-%{pkgname}-core %package -n python2-%{pkgname}-core
Requires: python-six Requires: python2-six
Conflicts: python-qrcode < 5.0 Conflicts: python-qrcode < 5.0
Summary: Python 2 QR Code image generator (core library) Summary: Python 2 QR Code image generator (core library)
%{?python_provide:%python_provide python2-%{pkgname}-core} %{?python_provide:%python_provide python2-%{pkgname}-core}
@ -182,6 +182,10 @@ popd
%changelog %changelog
* Fri Mar 23 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.1-11
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Tue Mar 20 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.1-10 * Tue Mar 20 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.1-10
- Also rename python-qrcode-core to python2-qrcode-core - Also rename python-qrcode-core to python2-qrcode-core