|
|
8e1e28c |
%if 0%{?fedora}
|
|
|
8e1e28c |
%global with_python3 1
|
|
|
8e1e28c |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%{!?_licensedir: %global license %%doc}
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
8e1e28c |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
8e1e28c |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
8e1e28c |
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
8e1e28c |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%global modname flask-migrate
|
|
|
8e1e28c |
|
|
|
8e1e28c |
Name: python-flask-migrate
|
|
|
8e1e28c |
Version: 2.0.0
|
|
|
189d81c |
Release: 5%{?dist}
|
|
|
b22c77f |
Summary: SQLAlchemy database migrations for Flask applications using Alembic
|
|
|
8e1e28c |
|
|
|
8e1e28c |
License: MIT
|
|
|
8e1e28c |
URL: http://pypi.python.org/pypi/flask-migrate
|
|
|
8e1e28c |
Source0: https://pypi.python.org/packages/d4/42/9e1bab5b15495e7acd25cb6b164a050b90da20af7e801aa2a7b1f74efdfa/Flask-Migrate-%{version}.tar.gz
|
|
|
8e1e28c |
BuildArch: noarch
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%description
|
|
|
8e1e28c |
SQLAlchemy database migrations for Flask applications using Alembic.
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%package -n python2-%{modname}
|
|
|
8e1e28c |
Summary: SQLAlchemy database migrations for Flask applications using Alembic
|
|
|
8e1e28c |
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
8e1e28c |
|
|
|
8e1e28c |
BuildRequires: python2-devel
|
|
|
8e1e28c |
|
|
|
8e1e28c |
# TODO - rename these to python2-* once those renames are done.
|
|
|
8e1e28c |
BuildRequires: python-flask
|
|
|
8e1e28c |
BuildRequires: python-alembic
|
|
|
8e1e28c |
BuildRequires: python-flask-script
|
|
|
8e1e28c |
|
|
|
8e1e28c |
Requires: python-flask
|
|
|
8e1e28c |
Requires: python-alembic
|
|
|
8e1e28c |
Requires: python-flask-script
|
|
|
4b26847 |
|
|
|
4b26847 |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
4b26847 |
BuildRequires: python-setuptools
|
|
|
4b26847 |
BuildRequires: python-flask-sqlalchemy
|
|
|
4b26847 |
Requires: python-flask-sqlalchemy
|
|
|
4b26847 |
%else
|
|
|
4b26847 |
BuildRequires: python2-setuptools
|
|
|
4b26847 |
BuildRequires: python2-flask-sqlalchemy
|
|
|
8e1e28c |
Requires: python2-flask-sqlalchemy
|
|
|
4b26847 |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%description -n python2-%{modname}
|
|
|
8e1e28c |
SQLAlchemy database migrations for Flask applications using Alembic.
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%if 0%{?with_python3}
|
|
|
8e1e28c |
%package -n python3-%{modname}
|
|
|
8e1e28c |
Summary: SQLAlchemy database migrations for Flask applications using Alembic
|
|
|
8e1e28c |
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
8e1e28c |
|
|
|
8e1e28c |
BuildRequires: python3-devel
|
|
|
8e1e28c |
BuildRequires: python3-setuptools
|
|
|
8e1e28c |
BuildRequires: python3-flask
|
|
|
8e1e28c |
BuildRequires: python3-flask-sqlalchemy
|
|
|
8e1e28c |
BuildRequires: python3-alembic
|
|
|
8e1e28c |
BuildRequires: python3-flask-script
|
|
|
8e1e28c |
Requires: python3-flask
|
|
|
8e1e28c |
Requires: python3-flask-sqlalchemy
|
|
|
8e1e28c |
Requires: python3-alembic
|
|
|
8e1e28c |
Requires: python3-flask-script
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%description -n python3-%{modname}
|
|
|
8e1e28c |
SQLAlchemy database migrations for Flask applications using Alembic.
|
|
|
8e1e28c |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%prep
|
|
|
8e1e28c |
%autosetup -n Flask-Migrate-%{version}
|
|
|
8e1e28c |
|
|
|
b22c77f |
# For rpmlint
|
|
|
b22c77f |
chmod 0644 flask_migrate/templates/flask-multidb/*
|
|
|
b22c77f |
chmod 0644 flask_migrate/templates/flask/*
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%build
|
|
|
8e1e28c |
%py2_build
|
|
|
8e1e28c |
%if 0%{?with_python3}
|
|
|
8e1e28c |
%py3_build
|
|
|
8e1e28c |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%install
|
|
|
8e1e28c |
%py2_install
|
|
|
8e1e28c |
%if 0%{?with_python3}
|
|
|
8e1e28c |
%py3_install
|
|
|
8e1e28c |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
# Tests are expecting flaskcli which we don't have packaged.
|
|
|
8e1e28c |
#%check
|
|
|
8e1e28c |
#%{__python2} setup.py test
|
|
|
8e1e28c |
#%if 0%{?with_python3}
|
|
|
8e1e28c |
#%{__python3} setup.py test
|
|
|
8e1e28c |
#%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%files -n python2-%{modname}
|
|
|
8e1e28c |
%doc README.md
|
|
|
8e1e28c |
%license LICENSE
|
|
|
8e1e28c |
%{python2_sitelib}/flask_migrate/
|
|
|
8e1e28c |
%{python2_sitelib}/Flask_Migrate-%{version}*
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%if 0%{?with_python3}
|
|
|
8e1e28c |
%files -n python3-%{modname}
|
|
|
8e1e28c |
%doc README.md
|
|
|
8e1e28c |
%license LICENSE
|
|
|
8e1e28c |
%{python3_sitelib}/flask_migrate/
|
|
|
8e1e28c |
%{python3_sitelib}/Flask_Migrate-%{version}*
|
|
|
8e1e28c |
%endif
|
|
|
8e1e28c |
|
|
|
8e1e28c |
%changelog
|
|
|
189d81c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
|
|
|
189d81c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
189d81c |
|
|
|
326a574 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
|
|
326a574 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
326a574 |
|
|
|
4b26847 |
* Wed Jan 18 2017 Ralph Bean <rbean@redhat.com> - 2.0.0-3
|
|
|
4b26847 |
- Conditionalize deps for EL7.
|
|
|
4b26847 |
|
|
|
62efa27 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
|
|
|
62efa27 |
- Rebuild for Python 3.6
|
|
|
62efa27 |
|
|
|
8e1e28c |
* Wed Aug 10 2016 Ralph Bean <rbean@redhat.com> - 2.0.0-1
|
|
|
8e1e28c |
- Initial package for Fedora! \ó/
|