Subpackage python2-flask has been removed
This commit is contained in:
parent
c698455ead
commit
a2e5caf1cf
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
|
Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
|
||||||
|
|
||||||
@ -25,35 +25,6 @@ authentication technologies and more.
|
|||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python2-%{modname}
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python2-%{modname}}
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
BuildRequires: python2-pytest
|
|
||||||
%if 0%{?fedora} >= 26
|
|
||||||
BuildRequires: python2-werkzeug
|
|
||||||
Requires: python2-werkzeug
|
|
||||||
BuildRequires: python2-jinja2
|
|
||||||
Requires: python2-jinja2
|
|
||||||
BuildRequires: python2-click
|
|
||||||
Requires: python2-click
|
|
||||||
BuildRequires: python2-itsdangerous
|
|
||||||
Requires: python2-itsdangerous
|
|
||||||
%else
|
|
||||||
BuildRequires: python-werkzeug
|
|
||||||
Requires: python-werkzeug
|
|
||||||
BuildRequires: python-jinja2
|
|
||||||
Requires: python-jinja2
|
|
||||||
BuildRequires: python-click
|
|
||||||
Requires: python-click
|
|
||||||
BuildRequires: python-itsdangerous
|
|
||||||
Requires: python-itsdangerous
|
|
||||||
%endif
|
|
||||||
%description -n python2-%{modname} %{_description}
|
|
||||||
|
|
||||||
Python 2 version.
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{modname}
|
%package -n python%{python3_pkgversion}-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||||
@ -68,6 +39,7 @@ Requires: python%{python3_pkgversion}-jinja2
|
|||||||
Requires: python%{python3_pkgversion}-werkzeug
|
Requires: python%{python3_pkgversion}-werkzeug
|
||||||
Requires: python%{python3_pkgversion}-itsdangerous
|
Requires: python%{python3_pkgversion}-itsdangerous
|
||||||
Requires: python%{python3_pkgversion}-click
|
Requires: python%{python3_pkgversion}-click
|
||||||
|
Conflicts: python2-%{modname} < 1.0.2-8
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
||||||
|
|
||||||
@ -86,38 +58,22 @@ rm -rf examples/flaskr/
|
|||||||
rm -rf examples/minitwit/
|
rm -rf examples/minitwit/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
mv %{buildroot}%{_bindir}/%{modname}{,-%{python2_version}}
|
|
||||||
ln -s %{modname}-%{python2_version} %{buildroot}%{_bindir}/%{modname}-2
|
|
||||||
|
|
||||||
%py3_install
|
%py3_install
|
||||||
mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}}
|
mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}}
|
||||||
ln -s %{modname}-%{python3_version} %{buildroot}%{_bindir}/%{modname}-3
|
ln -s %{modname}-%{python3_version} %{buildroot}%{_bindir}/%{modname}-3
|
||||||
|
ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname}
|
||||||
ln -sf %{modname}-2 %{buildroot}%{_bindir}/%{modname}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v -k "not test_send_from_directory_bad_request"
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v || :
|
|
||||||
|
|
||||||
%files -n python2-%{modname}
|
|
||||||
%license LICENSE
|
|
||||||
%doc CHANGES.rst README.rst
|
|
||||||
%{_bindir}/%{modname}-2
|
|
||||||
%{_bindir}/%{modname}-%{python2_version}
|
|
||||||
%{python2_sitelib}/%{srcname}-*.egg-info/
|
|
||||||
%{python2_sitelib}/%{modname}/
|
|
||||||
|
|
||||||
%{_bindir}/%{modname}
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{modname}
|
%files -n python%{python3_pkgversion}-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
|
%{_bindir}/%{modname}
|
||||||
%{_bindir}/%{modname}-3
|
%{_bindir}/%{modname}-3
|
||||||
%{_bindir}/%{modname}-%{python3_version}
|
%{_bindir}/%{modname}-%{python3_version}
|
||||||
%{python3_sitelib}/%{srcname}-*.egg-info/
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||||
@ -128,6 +84,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v || :
|
|||||||
%doc examples
|
%doc examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-8
|
||||||
|
- Subpackage python2-flask has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|
||||||
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-7
|
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-7
|
||||||
- Rebuilt for Python 3.8
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user