diff --git a/.gitignore b/.gitignore index 80c7c7d..1afc17b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /Flask-Principal-0.4.0.tar.gz +/flask-principal-0.4.0.tar.gz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 85522fd..0000000 --- a/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2012 Ali Afshar - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/python-flask-principal.spec b/python-flask-principal.spec index 3cc63ab..c9d6fcb 100644 --- a/python-flask-principal.spec +++ b/python-flask-principal.spec @@ -1,53 +1,70 @@ -%global pypi_name Flask-Principal -%global sum Identity management for Flask applications +%global pkg_name flask-principal + Name: python-flask-principal Version: 0.4.0 -Release: 27%{?dist} -Summary: %{sum} - +Release: 29%{?dist} +Summary: Identity management for Flask applications License: MIT -URL: https://pypi.python.org/pypi/%{pypi_name} -Source0: https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz -# patch adding LICENSE to release tarball accepted upstream, will be included in the next version -Source1: LICENSE BuildArch: noarch +URL: https://pythonhosted.org/Flask-Principal/ +Source0: https://github.com/mattupstate/%{pkg_name}/archive/%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3dist(pytest) + %description Flask-Principal provides a very loose framework to tie in authentication and user information providers, often located in different parts of a web application. + %package -n python3-flask-principal -Summary: %{sum} -Requires: python3-flask -Requires: python3-blinker -%{?python_provide:%python_provide python3-flask-principal} +Summary: Identity management for Flask applications + %description -n python3-flask-principal Flask-Principal provides a very loose framework to tie in authentication and user information providers, often located in different parts of a web application. + %prep -%setup -q -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info -cp %{SOURCE1} . +%autosetup -p1 -n %{pkg_name}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -r + %build -%py3_build +%pyproject_wheel + %install -%py3_install +%pyproject_install +%pyproject_save_files flask_principal + + +%check +%pyproject_check_import +%pytest + + +%files -n python3-flask-principal -f %{pyproject_files} +%doc README.rst +%license LICENSE -%files -n python3-flask-principal -%doc LICENSE README.rst -%{python3_sitelib}/* %changelog +* Fri Dec 24 2021 Sandro Mani - 0.4.0-29 +- Switch to github tarball +- Run tests + +* Thu Nov 11 2021 Sandro Mani - 0.4.0-28 +- Revive package + * Fri Jun 04 2021 Python Maint - 0.4.0-27 - Rebuilt for Python 3.10 diff --git a/sources b/sources index cae18a0..660d0f7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -462d1345c9ddaddbec33a743e5821e2c Flask-Principal-0.4.0.tar.gz +SHA512 (flask-principal-0.4.0.tar.gz) = ed8cb28c4e8d936de96db0bf9f7cb45b253dc204c4b8f8dd8022ef1552592ff6324b4a33d3ee862794a6e20eb8c32a0365e7b9397d427da5022c5ded3dfa308a