diff --git a/python-flask-sqlalchemy.spec b/python-flask-sqlalchemy.spec index d3e4606..bb8b9dc 100644 --- a/python-flask-sqlalchemy.spec +++ b/python-flask-sqlalchemy.spec @@ -1,12 +1,8 @@ %global mod_name Flask-SQLAlchemy -%if 0%{?fedora} -# there's no python3 in el*, disabling the python3 build -%global with_python3 1 -%endif Name: python-flask-sqlalchemy Version: 2.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Adds SQLAlchemy support to Flask application License: BSD @@ -14,7 +10,6 @@ URL: https://github.com/mitsuhiko/flask-sqlalchemy Source0: https://pypi.io/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel %description Flask-SQLAlchemy is an extension for Flask that adds support for @@ -22,38 +17,6 @@ SQLAlchemy to your application. It aims to simplify using SQLAlchemy with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks. -%package -n python2-flask-sqlalchemy -Summary: Adds SQLAlchemy support to Flask application -%{?python_provide:%python_provide python2-%{mod_name}} -%{?python_provide:%python_provide python2-flask-sqlalchemy} -BuildRequires: python2-devel -%if 0%{?fedora} -BuildRequires: python2-mock -BuildRequires: python2-setuptools -BuildRequires: python2-pytest -BuildRequires: python2-flask -BuildRequires: python2-sqlalchemy -Requires: python2-flask -Requires: python2-sqlalchemy -%else -BuildRequires: python-mock -BuildRequires: python-setuptools -BuildRequires: pytest -BuildRequires: python-flask -BuildRequires: python-sqlalchemy -Requires: python-flask -Requires: python-sqlalchemy -%endif - -%description -n python2-flask-sqlalchemy -Flask-SQLAlchemy is an extension for Flask that adds support for -SQLAlchemy to your application. It aims to simplify using SQLAlchemy with -Flask by providing useful defaults and extra helpers that make it easier -to accomplish common tasks. - -Python 2 version. - -%if 0%{?with_python3} %package -n python3-flask-sqlalchemy Summary: Adds SQLAlchemy support to Flask application %{?python_provide:%python_provide python3-%{mod_name}} @@ -74,7 +37,6 @@ Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks. Python 3 version. -%endif # with_python3 %prep %setup -q -n %{mod_name}-%{version} @@ -83,46 +45,25 @@ rm -f docs/.DS_Store rm -f docs/_themes/.gitignore %build -%py2_build - -%if 0%{?with_python3} %py3_build -%endif %install -%py2_install - -%if 0%{?with_python3} %py3_install -%endif %check -%if 0%{?fedora} -PYTHONPATH=%{buildroot}/%{python2_sitelib} py.test-2 -%else -# pytest is too old on el7.. -#PYTHONPATH=%%{buildroot}/%%{python2_sitelib} py.test -%endif - -%if 0%{?with_python3} PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -%endif - -%files -n python2-flask-sqlalchemy -%license LICENSE.rst -%doc docs/ README.rst CHANGES.rst PKG-INFO -%{python2_sitelib}/*.egg-info/ -%{python2_sitelib}/flask_sqlalchemy/ -%if 0%{?with_python3} %files -n python3-flask-sqlalchemy %license LICENSE.rst %doc docs/ README.rst CHANGES.rst PKG-INFO %{python3_sitelib}/*.egg-info/ %{python3_sitelib}/flask_sqlalchemy/ -%endif # with_python3 %changelog +* Wed Sep 18 2019 Miro Hrončok - 2.4.0-4 +- Subpackage python2-flask-sqlalchemy has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Aug 19 2019 Miro Hrončok - 2.4.0-3 - Rebuilt for Python 3.8