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
ede9fba
Release:    6%{?dist}
1ffcbe1
Summary:    Simple security for Flask apps
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
607f202
BuildRequires: python%{python3_pkgversion}-devel
607f202
BuildRequires: python%{python3_pkgversion}-pytest-runner
607f202
BuildRequires: python%{python3_pkgversion}-babel
607f202
BuildRequires: python%{python3_pkgversion}-flask-sphinx-themes
607f202
BuildRequires: python%{python3_pkgversion}-flask-babelex
607f202
BuildRequires: python%{python3_pkgversion}-flask-login
607f202
BuildRequires: python%{python3_pkgversion}-flask-principal
607f202
BuildRequires: python%{python3_pkgversion}-passlib
607f202
BuildRequires: python%{python3_pkgversion}-flask-wtf
1ffcbe1
1ffcbe1
1ffcbe1
%description
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
%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
%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 python%{python3_pkgversion}-%{pkg_name}
1ffcbe1
%{python3_sitelib}/*.egg-info/
1ffcbe1
%{python3_sitelib}/flask_security
1ffcbe1
1ffcbe1
%changelog
ede9fba
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-6
ede9fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ede9fba
d3d2507
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
d3d2507
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d3d2507
607f202
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.0-4
607f202
- Subpackage python2-flask-security has been removed
607f202
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
607f202
ee9d293
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
ee9d293
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ee9d293
3a5ae9c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-2
3a5ae9c
- Rebuilt for Python 3.7
3a5ae9c
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