From b81993749732c6dffbeecd756a3cef6350daf61f5f93f5337c5b8307d65d75c4 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 24 Jun 2024 04:50:44 +0000 Subject: [PATCH] - Switch back to PyPi tarball. - Inject setuptools_scm so we install the correct version number. - Switch to autosetup macro. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-djangorestframework-simplejwt?expand=0&rev=2 --- djangorestframework_simplejwt-5.3.1.tar.gz | 4 ++-- python-djangorestframework-simplejwt.changes | 8 ++++++++ python-djangorestframework-simplejwt.spec | 13 ++++++------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/djangorestframework_simplejwt-5.3.1.tar.gz b/djangorestframework_simplejwt-5.3.1.tar.gz index cd83bac..6d212de 100644 --- a/djangorestframework_simplejwt-5.3.1.tar.gz +++ b/djangorestframework_simplejwt-5.3.1.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:69c31dc2446715eda7e7da907f43e8a6cd4b3c369c2c5c6966b93b3831cbee24 -size 87935 +oid sha256:6c4bd37537440bc439564ebf7d6085e74c5411485197073f508ebdfa34bc9fae +size 94266 diff --git a/python-djangorestframework-simplejwt.changes b/python-djangorestframework-simplejwt.changes index 22b878b..8b9824b 100644 --- a/python-djangorestframework-simplejwt.changes +++ b/python-djangorestframework-simplejwt.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jun 24 04:49:38 UTC 2024 - Steve Kowalik + +- Switch back to PyPi tarball. +- Inject setuptools_scm so we install the correct version number. +- Switch to autosetup macro. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Jun 18 14:02:32 UTC 2024 - Markéta Machová diff --git a/python-djangorestframework-simplejwt.spec b/python-djangorestframework-simplejwt.spec index ebc3dfd..735f14d 100644 --- a/python-djangorestframework-simplejwt.spec +++ b/python-djangorestframework-simplejwt.spec @@ -16,23 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-djangorestframework-simplejwt Version: 5.3.1 Release: 0 Summary: JSON Web Token authentication for Django REST Framework License: MIT -Group: Development/Languages/Python URL: https://github.com/davesque/django-rest-framework-simplejwt -Source: https://github.com/davesque/django-rest-framework-simplejwt/archive/v%{version}.tar.gz#/djangorestframework_simplejwt-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/d/djangorestframework-simplejwt/djangorestframework_simplejwt-%{version}.tar.gz +BuildRequires: %{python_module Django} BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module djangorestframework} BuildRequires: %{python_module freezegun} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-django} BuildRequires: %{python_module python-jose} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -46,8 +45,7 @@ BuildArch: noarch A minimal JSON Web Token authentication plugin for the Django REST Framework. %prep -%setup -q -n djangorestframework-simplejwt-%{version} -%autopatch -p1 +%autosetup -p1 -n djangorestframework_simplejwt-%{version} %build export LANG=en_US.UTF-8 @@ -65,6 +63,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %license LICENSE.txt licenses/* %doc README.rst CHANGELOG.md -%{python_sitelib}/* +%{python_sitelib}/rest_framework_simplejwt +%{python_sitelib}/djangorestframework_simplejwt-%{version}.dist-info %changelog