|
|
1ffcbe1 |
%global pkg_name flask-security
|
|
|
1ffcbe1 |
%global mod_name Flask-Security
|
|
|
1ffcbe1 |
%global desc Flask-Security quickly adds security features to your Flask application.
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
Name: python-%{pkg_name}
|
|
|
1ffcbe1 |
Version: 3.0.0
|
|
|
1ffcbe1 |
Release: 1%{?dist}
|
|
|
1ffcbe1 |
Summary: Simple security for Flask apps
|
|
|
1ffcbe1 |
Group: Development/Libraries
|
|
|
1ffcbe1 |
License: MIT
|
|
|
1ffcbe1 |
URL: http://github.com/mattupstate/%{pkg_name}/
|
|
|
1ffcbe1 |
Source0: https://files.pythonhosted.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
|
|
1ffcbe1 |
BuildArch: noarch
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
BuildRequires: python2-devel, python%{python3_pkgversion}-devel
|
|
|
1ffcbe1 |
BuildRequires: python2-pytest-runner, python%{python3_pkgversion}-pytest-runner
|
|
|
1ffcbe1 |
BuildRequires: python2-babel, python%{python3_pkgversion}-babel
|
|
|
1ffcbe1 |
BuildRequires: python2-flask-sphinx-themes, python%{python3_pkgversion}-flask-sphinx-themes
|
|
|
1ffcbe1 |
BuildRequires: python2-flask-babelex, python%{python3_pkgversion}-flask-babelex
|
|
|
1ffcbe1 |
BuildRequires: python2-flask-login, python%{python3_pkgversion}-flask-login
|
|
|
1ffcbe1 |
BuildRequires: python2-flask-principal, python%{python3_pkgversion}-flask-principal
|
|
|
1ffcbe1 |
BuildRequires: python2-passlib, python%{python3_pkgversion}-passlib
|
|
|
1ffcbe1 |
BuildRequires: python2-flask-wtf, python%{python3_pkgversion}-flask-wtf
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%description
|
|
|
1ffcbe1 |
%{desc}
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%package -n python2-%{pkg_name}
|
|
|
1ffcbe1 |
Summary: Simple security for Flask apps
|
|
|
1ffcbe1 |
Requires: python2-flask
|
|
|
1ffcbe1 |
Requires: python2-flask-login
|
|
|
1ffcbe1 |
Requires: python2-flask-mail
|
|
|
1ffcbe1 |
Requires: python2-flask-principal
|
|
|
1ffcbe1 |
Requires: python2-flask-wtf
|
|
|
1ffcbe1 |
Requires: python2-flask-babel
|
|
|
1ffcbe1 |
Requires: python2-itsdangerous
|
|
|
1ffcbe1 |
Requires: python2-passlib
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%{?python_provide:%python_provide python2-%{pkg_name}}
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%description -n python2-%{pkg_name}
|
|
|
1ffcbe1 |
%{desc}
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%package -n python%{python3_pkgversion}-%{pkg_name}
|
|
|
1ffcbe1 |
Summary: Simple security for Flask apps
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-flask
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-flask-login
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-flask-mail
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-flask-principal
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-flask-wtf
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-flask-babel
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-itsdangerous
|
|
|
1ffcbe1 |
Requires: python%{python3_pkgversion}-passlib
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkg_name}}
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%description -n python%{python3_pkgversion}-%{pkg_name}
|
|
|
1ffcbe1 |
%{desc}
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%package doc
|
|
|
1ffcbe1 |
Summary: Documentation for %{name}, includes full API docs
|
|
|
1ffcbe1 |
%{?python_provide:%python_provide python2-%{pkg_name}-doc}
|
|
|
1ffcbe1 |
%description doc
|
|
|
1ffcbe1 |
This package contains the full API documentation for %{name}.
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%prep
|
|
|
1ffcbe1 |
%setup -q -n %{mod_name}-%{version}
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%build
|
|
|
1ffcbe1 |
%py2_build
|
|
|
1ffcbe1 |
%py3_build
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
pushd docs
|
|
|
1ffcbe1 |
make html
|
|
|
1ffcbe1 |
make man
|
|
|
1ffcbe1 |
rm -f docs/_build/html/.buildinfo
|
|
|
1ffcbe1 |
popd
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%install
|
|
|
1ffcbe1 |
%py2_install
|
|
|
1ffcbe1 |
%py3_install
|
|
|
1ffcbe1 |
install -Dp docs/_build/man/flask-security.1 %{buildroot}%{_mandir}/man1/flask-security.1
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%files doc
|
|
|
1ffcbe1 |
%doc README.rst AUTHORS CHANGES docs/_build/html
|
|
|
1ffcbe1 |
%license LICENSE
|
|
|
1ffcbe1 |
%{_mandir}/man1/flask-security.*
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%files -n python2-%{pkg_name}
|
|
|
1ffcbe1 |
%{python2_sitelib}/*.egg-info/
|
|
|
1ffcbe1 |
%{python2_sitelib}/flask_security
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%files -n python%{python3_pkgversion}-%{pkg_name}
|
|
|
1ffcbe1 |
%{python3_sitelib}/*.egg-info/
|
|
|
1ffcbe1 |
%{python3_sitelib}/flask_security
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
%changelog
|
|
|
1ffcbe1 |
* Thu Mar 01 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.0.0-1
|
|
|
1ffcbe1 |
- new version 3.0.0
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
* Thu Mar 01 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 1.7.5-2
|
|
|
1ffcbe1 |
- improve spec file
|
|
|
1ffcbe1 |
|
|
|
1ffcbe1 |
* Tue Jan 3 2017 Jakub Dorňák <jakub.dornak@misli.cz> - 1.7.5-1
|
|
|
1ffcbe1 |
- Initial package
|