Notification time stamped 2021-03-31 17:01:14 UTC
From fe670f5dfe593c1c31f6eed2f8e92bfdc8a3b5c1 Mon Sep 17 00:00:00 2001
From: František Zatloukal <fzatlouk(a)redhat.com>
Date: Mar 27 2018 12:08:01 +0000
Subject: Python2 Declarations
---
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index 03d9c77..14a5e1b 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -13,7 +13,7 @@
Name: python-%{srcname}
Version: 0.3.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: %{sum}
Group: Development/Languages
@@ -24,16 +24,32 @@ Patch0: python-flask-restful.remove_q0_testcase.patch
BuildArch: noarch
# those are needed for tests:
+%if 0%{?rhel} || 0%{?fedora} <= 27
BuildRequires: python-flask
BuildRequires: python-six
BuildRequires: python-aniso8601
BuildRequires: pytz
+%else
+BuildRequires: python2-flask
+BuildRequires: python2-six
+BuildRequires: python2-aniso8601
+BuildRequires: python2-pytz
+%endif
BuildRequires: python2-devel
+
+%if 0%{?rhel} || 0%{?fedora} <= 27
BuildRequires: python-setuptools
BuildRequires: python-nose
BuildRequires: python-mock
BuildRequires: python-blinker
BuildRequires: python-crypto
+%else
+BuildRequires: python2-setuptools
+BuildRequires: python2-nose
+BuildRequires: python2-mock
+BuildRequires: python2-blinker
+BuildRequires: python2-crypto
+%endif
%if 0%{?with_python3}
BuildRequires: python3-flask
@@ -55,10 +71,17 @@ that works with your existing ORM/libraries.
%package -n python2-%{srcname}
Summary: %{sum}
+%if 0%{?rhel} || 0%{?fedora} <= 27
Requires: python-flask
Requires: python-six
Requires: python-aniso8601
Requires: pytz
+%else
+Requires: python2-flask
+Requires: python2-six
+Requires: python2-aniso8601
+Requires: python2-pytz
+%endif
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
@@ -117,6 +140,10 @@ rm -rf docs/_themes/.gitignore
%endif
%changelog
+* Mon Mar 26 2018 Iryna Shcherbina <ishcherb(a)redhat.com> - 0.3.6-2
+- Update Python 2 dependency declarations to new packaging standards
+ (See
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
+
* Thu Mar 15 2018 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.6-1
- Update to 0.3.6
https://src.fedoraproject.org/rpms/python-flask-restful/c/fe670f5dfe593c1...