Accepting request 1148952 from devel:languages:python:flask
- Switch to autosetup and pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1148952 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-Paranoid?expand=0&rev=7
This commit is contained in:
commit
f6876692d6
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 22 03:42:08 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 30 13:24:24 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
|
Thu Nov 30 13:24:24 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Flask-Paranoid
|
# spec file for package python-Flask-Paranoid
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -23,7 +23,6 @@ Release: 0
|
|||||||
License: MIT
|
License: MIT
|
||||||
Summary: Flask user session protection
|
Summary: Flask user session protection
|
||||||
URL: http://github.com/miguelgrinberg/flask-paranoid/
|
URL: http://github.com/miguelgrinberg/flask-paranoid/
|
||||||
Group: Development/Languages/Python
|
|
||||||
# Pypi sources don't include tests
|
# Pypi sources don't include tests
|
||||||
#Source: https://files.pythonhosted.org/packages/source/F/Flask-Paranoid/Flask-Paranoid-%%{version}.tar.gz
|
#Source: https://files.pythonhosted.org/packages/source/F/Flask-Paranoid/Flask-Paranoid-%%{version}.tar.gz
|
||||||
Source: https://github.com/miguelgrinberg/flask-paranoid/archive/refs/tags/v%{version}.tar.gz
|
Source: https://github.com/miguelgrinberg/flask-paranoid/archive/refs/tags/v%{version}.tar.gz
|
||||||
@ -33,6 +32,7 @@ Patch0: fix-ParanoidTests-fail.patch
|
|||||||
BuildRequires: %{python_module importlib-metadata}
|
BuildRequires: %{python_module importlib-metadata}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# Test requirements
|
# Test requirements
|
||||||
@ -52,15 +52,14 @@ The extension generates a "paranoid" token according to the IP address and user
|
|||||||
agent when a client connects to the flask application.
|
agent when a client connects to the flask application.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n flask-paranoid-%{version}
|
%autosetup -p1 -n flask-paranoid-%{version}
|
||||||
%patch0 -p1
|
|
||||||
cp %{SOURCE99} .
|
cp %{SOURCE99} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -72,6 +71,7 @@ cp %{SOURCE99} .
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/flask_paranoid
|
||||||
|
%{python_sitelib}/Flask_Paranoid-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user