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
7568210
Version:        2.1
b0fdfa8
Release:        4%{?dist}
Praveen 788a4bd
Summary:        Adds SQLAlchemy support to Flask application
Praveen 788a4bd
Praveen 788a4bd
Group:          Development/Libraries
Praveen 788a4bd
License:        BSD
Praveen 788a4bd
URL:            http://github.com/mitsuhiko/flask-sqlalchemy
Praveen 788a4bd
Source0:        http://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
Praveen 788a4bd
Praveen 788a4bd
BuildArch:      noarch
Praveen 788a4bd
BuildRequires:  python-devel
Praveen 788a4bd
BuildRequires:  python-setuptools
Praveen 788a4bd
BuildRequires:  python-flask
b90fb1c
Requires:       python-sqlalchemy
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}
7568210
BuildRequires:  python2-setuptools
b8502fd
%else
b8502fd
BuildRequires:  python-setuptools
b8502fd
%endif
7568210
BuildRequires:  python-flask
7568210
BuildRequires:  python-sqlalchemy
7568210
Requires:       python-flask
7568210
Requires:       python-sqlalchemy
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
7568210
BuildRequires:  python3-setuptools
7568210
BuildRequires:  python3-flask
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
chmod -x docs/_static/flask-sqlalchemy-small.png
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
7568210
%{__python2} setup.py test
Praveen 788a4bd
258af6b
%if 0%{?with_python3}
7568210
%{__python3} setup.py test
258af6b
%endif
Praveen 788a4bd
 
7568210
%files -n python2-flask-sqlalchemy
7568210
%license LICENSE
7568210
%doc docs/ README CHANGES PKG-INFO
7568210
%{python2_sitelib}/*.egg-info/
7568210
%{python2_sitelib}/flask_sqlalchemy/
258af6b
258af6b
%if 0%{?with_python3}
258af6b
%files -n python3-flask-sqlalchemy
7568210
%license LICENSE
7568210
%doc docs/ README CHANGES PKG-INFO
258af6b
%{python3_sitelib}/*.egg-info/
7568210
%{python3_sitelib}/flask_sqlalchemy/
258af6b
%endif # with_python3
Praveen 788a4bd
Praveen 788a4bd
%changelog
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