%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: 2%{?dist} Summary: Adds SQLAlchemy support to Flask application License: BSD 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 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}} %{?python_provide:%python_provide python3-flask-sqlalchemy} BuildRequires: python3-devel BuildRequires: python3-mock BuildRequires: python3-setuptools BuildRequires: python3-flask BuildRequires: python3-pytest BuildRequires: python3-sqlalchemy Requires: python3-flask Requires: python3-sqlalchemy %description -n python3-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 3 version. %endif # with_python3 %prep %setup -q -n %{mod_name}-%{version} rm -f docs/_static/.DS_Store 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 * Fri Jul 26 2019 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue May 14 2019 Pavel Raiskup - 2.4.0-1 - latest upstream release * Sat Feb 02 2019 Fedora Release Engineering - 2.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.3.2-2 - Rebuilt for Python 3.7 * Mon Mar 05 2018 Ralph Bean - 2.3.2-1 - Latest upstream. * Wed Feb 21 2018 Iryna Shcherbina - 2.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.1-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 2.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 29 2016 Igor Gnatenko - 2.1-1 - Update to 2.1 - Follow new packaging guidelines - Run tests * Tue Nov 10 2015 Fedora Release Engineering - 2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Dec 10 2014 Tim Flink - 2.0-1 - enable python3 builds only for fedora - there's no python3 in el* * Wed Dec 10 2014 Tim Flink - 2.0-1 - Upgraded to upstream 2.0 - Enhanced internal signal control, made more customizable and less global to play nice with non-flask-sqlalchemy sessions * Sat Jun 07 2014 Fedora Release Engineering - 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 14 2014 Bohuslav Kabrda - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Tue Jan 21 2014 Praveen Kumar 1.0-2 - Fixed #1055251 * Wed Aug 07 2013 Praveen Kumar - 1.0-1 - Upgraded to upstream 1.0 and added python3 support * Sun Aug 04 2013 Fedora Release Engineering - 0.16-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Oct 09 2012 Tim Flink - 0.16-1 - Upgraded to upstream 0.16 * Tue Aug 21 2012 Praveen Kumar - 0.14-4 - Added python-sqlalchemy as requires * Sat Jul 21 2012 Fedora Release Engineering - 0.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jul 21 2011 Praveen Kumar - 0.14-1 - Initial RPM release