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:
Ana Guerrero 2024-02-22 19:58:33 +00:00 committed by Git OBS Bridge
commit f6876692d6
2 changed files with 13 additions and 7 deletions

View File

@ -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>

View File

@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@ -23,7 +23,6 @@ Release: 0
License: MIT
Summary: Flask user session protection
URL: http://github.com/miguelgrinberg/flask-paranoid/
Group: Development/Languages/Python
# Pypi sources don't include tests
#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
@ -33,6 +32,7 @@ Patch0: fix-ParanoidTests-fail.patch
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# 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.
%prep
%setup -q -n flask-paranoid-%{version}
%patch0 -p1
%autosetup -p1 -n flask-paranoid-%{version}
cp %{SOURCE99} .
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -72,6 +71,7 @@ cp %{SOURCE99} .
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/flask_paranoid
%{python_sitelib}/Flask_Paranoid-%{version}.dist-info
%changelog