Praveen 788a4bd
%global mod_name Flask-SQLAlchemy
63f27ea
%if 0%{?fedora}
63f27ea
# there's no python3 in el*, disabling the python3 build
258af6b
%global with_python3 1
63f27ea
%endif
Praveen 788a4bd
Praveen 788a4bd
Name:           python-flask-sqlalchemy
11533c2
Version:        2.4.0
dfb46b9
Release:        2%{?dist}
Praveen 788a4bd
Summary:        Adds SQLAlchemy support to Flask application
Praveen 788a4bd
Praveen 788a4bd
License:        BSD
0ee6b8f
URL:            https://github.com/mitsuhiko/flask-sqlalchemy
0ee6b8f
Source0:        https://pypi.io/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
Praveen 788a4bd
Praveen 788a4bd
BuildArch:      noarch
bbd0b70
BuildRequires:  python2-devel
b90fb1c
Praveen 788a4bd
%description
Praveen 788a4bd
Flask-SQLAlchemy is an extension for Flask that adds support for
7568210
SQLAlchemy to your application. It aims to simplify using SQLAlchemy with
7568210
Flask by providing useful defaults and extra helpers that make it easier
7568210
to accomplish common tasks.
7568210
7568210
%package -n python2-flask-sqlalchemy
7568210
Summary:        Adds SQLAlchemy support to Flask application
7568210
%{?python_provide:%python_provide python2-%{mod_name}}
7568210
%{?python_provide:%python_provide python2-flask-sqlalchemy}
7568210
BuildRequires:  python2-devel
b8502fd
%if 0%{?fedora}
11533c2
BuildRequires:  python2-mock
7568210
BuildRequires:  python2-setuptools
0ee6b8f
BuildRequires:  python2-pytest
bbd0b70
BuildRequires:  python2-flask
bbd0b70
BuildRequires:  python2-sqlalchemy
bbd0b70
Requires:       python2-flask
bbd0b70
Requires:       python2-sqlalchemy
0ee6b8f
%else
11533c2
BuildRequires:  python-mock
0ee6b8f
BuildRequires:  python-setuptools
0ee6b8f
BuildRequires:  pytest
0ee6b8f
BuildRequires:  python-flask
0ee6b8f
BuildRequires:  python-sqlalchemy
0ee6b8f
Requires:       python-flask
0ee6b8f
Requires:       python-sqlalchemy
0ee6b8f
%endif
7568210
7568210
%description -n python2-flask-sqlalchemy
7568210
Flask-SQLAlchemy is an extension for Flask that adds support for
7568210
SQLAlchemy to your application. It aims to simplify using SQLAlchemy with
7568210
Flask by providing useful defaults and extra helpers that make it easier
Praveen 788a4bd
to accomplish common tasks.
Praveen 788a4bd
7568210
Python 2 version.
7568210
258af6b
%if 0%{?with_python3}
258af6b
%package -n python3-flask-sqlalchemy
258af6b
Summary:        Adds SQLAlchemy support to Flask application
7568210
%{?python_provide:%python_provide python3-%{mod_name}}
7568210
%{?python_provide:%python_provide python3-flask-sqlalchemy}
7568210
BuildRequires:  python3-devel
11533c2
BuildRequires:  python3-mock
7568210
BuildRequires:  python3-setuptools
7568210
BuildRequires:  python3-flask
11533c2
BuildRequires:  python3-pytest
7568210
BuildRequires:  python3-sqlalchemy
7568210
Requires:       python3-flask
7fb0c22
Requires:       python3-sqlalchemy
258af6b
258af6b
%description -n python3-flask-sqlalchemy
258af6b
Flask-SQLAlchemy is an extension for Flask that adds support for
7568210
SQLAlchemy to your application. It aims to simplify using SQLAlchemy with
7568210
Flask by providing useful defaults and extra helpers that make it easier
258af6b
to accomplish common tasks.
258af6b
7568210
Python 3 version.
258af6b
%endif # with_python3
258af6b
Praveen 788a4bd
%prep
Praveen 788a4bd
%setup -q -n %{mod_name}-%{version}
Praveen 788a4bd
rm -f docs/_static/.DS_Store
Praveen 788a4bd
rm -f docs/.DS_Store
Praveen 788a4bd
rm -f docs/_themes/.gitignore
Praveen 788a4bd
Praveen 788a4bd
%build
7568210
%py2_build
Praveen 788a4bd
258af6b
%if 0%{?with_python3}
7568210
%py3_build
258af6b
%endif
Praveen 788a4bd
Praveen 788a4bd
%install
7568210
%py2_install
7568210
7568210
%if 0%{?with_python3}
7568210
%py3_install
7568210
%endif
7568210
7568210
%check
0ee6b8f
%if 0%{?fedora}
0ee6b8f
PYTHONPATH=%{buildroot}/%{python2_sitelib} py.test-2
0ee6b8f
%else
0ee6b8f
# pytest is too old on el7..
0ee6b8f
#PYTHONPATH=%%{buildroot}/%%{python2_sitelib} py.test
0ee6b8f
%endif
Praveen 788a4bd
258af6b
%if 0%{?with_python3}
0ee6b8f
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3
258af6b
%endif
0ee6b8f
7568210
%files -n python2-flask-sqlalchemy
11533c2
%license LICENSE.rst
11533c2
%doc docs/ README.rst CHANGES.rst PKG-INFO
7568210
%{python2_sitelib}/*.egg-info/
7568210
%{python2_sitelib}/flask_sqlalchemy/
258af6b
258af6b
%if 0%{?with_python3}
258af6b
%files -n python3-flask-sqlalchemy
11533c2
%license LICENSE.rst
11533c2
%doc docs/ README.rst CHANGES.rst PKG-INFO
258af6b
%{python3_sitelib}/*.egg-info/
7568210
%{python3_sitelib}/flask_sqlalchemy/
258af6b
%endif # with_python3
Praveen 788a4bd
Praveen 788a4bd
%changelog
dfb46b9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
dfb46b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dfb46b9
11533c2
* Tue May 14 2019 Pavel Raiskup <praiskup@redhat.com> - 2.4.0-1
11533c2
- latest upstream release
11533c2
55641d7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-4
55641d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
55641d7
a4b0d2a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
a4b0d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a4b0d2a
77dc513
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.2-2
77dc513
- Rebuilt for Python 3.7
77dc513
0ee6b8f
* Mon Mar 05 2018 Ralph Bean <rbean@redhat.com> - 2.3.2-1
0ee6b8f
- Latest upstream.
0ee6b8f
bbd0b70
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1-8
bbd0b70
- Update Python 2 dependency declarations to new packaging standards
bbd0b70
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bbd0b70
b7a9531
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-7
b7a9531
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b7a9531
eccdcf5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-6
eccdcf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eccdcf5
0f06a6b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-5
0f06a6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0f06a6b
b0fdfa8
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.1-4
b0fdfa8
- Rebuild for Python 3.6
b0fdfa8
46a4f2b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3
46a4f2b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
46a4f2b
24ad0fa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
24ad0fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
24ad0fa
7568210
* Fri Jan 29 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.1-1
7568210
- Update to 2.1
7568210
- Follow new packaging guidelines
7568210
- Run tests
7568210
89d7e2c
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
89d7e2c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
89d7e2c
4a4fe77
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
4a4fe77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4a4fe77
613db67
* Wed Dec 10 2014 Tim Flink <tflink@fedoraproject.org> - 2.0-1
63f27ea
- enable python3 builds only for fedora - there's no python3 in el*
63f27ea
63f27ea
* Wed Dec 10 2014 Tim Flink <tflink@fedoraproject.org> - 2.0-1
613db67
- Upgraded to upstream 2.0
613db67
- Enhanced internal signal control, made more customizable and less global to play nice with non-flask-sqlalchemy sessions
613db67
b40e730
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
b40e730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b40e730
b82e2cb
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0-3
b82e2cb
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
b82e2cb
7fb0c22
* Tue Jan 21 2014 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> 1.0-2
7fb0c22
- Fixed #1055251
7fb0c22
258af6b
* Wed Aug 07 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0-1
258af6b
- Upgraded to upstream 1.0 and added python3 support
258af6b
0c9e9b2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
0c9e9b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0c9e9b2
41a5c4e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
41a5c4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
41a5c4e
de54ec0
* Tue Oct 09 2012 Tim Flink <tflink@fedoraproject.ort> - 0.16-1
de54ec0
- Upgraded to upstream 0.16
de54ec0
258af6b
* Tue Aug 21 2012 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.14-4
b90fb1c
- Added python-sqlalchemy as requires
b90fb1c
069168d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-3
069168d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
069168d
3e09a05
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
3e09a05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3e09a05
Praveen 788a4bd
* Thu Jul 21 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.14-1
Praveen 788a4bd
- Initial RPM release