## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond tests 1 %bcond pypi_source 0 %global forgeurl https://codeberg.org/allauth/django-allauth Name: python-django-allauth Version: 65.18.0 Release: %autorelease Summary: Integrated set of Django authentication apps License: MIT URL: https://allauth.org/ %if %{with pypi_source} # PyPI source has no tests # Source: %%{pypi_source django-allauth} %else Source: %{forgeurl}/archive/%{version}.tar.gz#/django-allauth-%{version}.tar.gz %endif Patch: django-allauth-no-setuptools_scm.diff BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: sed %if %{with tests} BuildRequires: python3dist(pytest) # pytest-django reads DJANGO_SETTINGS_MODULE from pytest.ini and runs # django.setup() before conftest.py is imported; without it the test suite # fails to collect (INSTALLED_APPS undefined / "Apps aren't loaded yet") BuildRequires: python3dist(pytest-django) # async tests require the asyncio plugin BuildRequires: python3dist(pytest-asyncio) # other test dependencies BuildRequires: python3dist(djangorestframework) BuildRequires: python3dist(psycopg) BuildRequires: python3dist(pyyaml) %endif %global _description %{expand: Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication. ## Rationale Most existing Django apps that address the problem of social authentication focus on just that. You typically need to integrate another app in order to support authentication via a local account. This approach separates the worlds of local and social authentication. However, there are common scenarios to be dealt with in both worlds. For example, an e-mail address passed along by an OpenID provider is not guaranteed to be verified. So, before hooking an OpenID account up to a local account the e-mail address must be verified. So, e-mail verification needs to be present in both worlds. Integrating both worlds is quite a tedious process. It is definitely not a matter of simply adding one social authentication app, and one local account registration app to your INSTALLED_APPS list. This is the reason this project got started – to offer a fully integrated authentication app that allows for both local and social authentication, with flows that just work.} %description %{_description} %package -n python%{python3_pkgversion}-django-allauth Summary: %{summary} %description -n python%{python3_pkgversion}-django-allauth %{_description} %pyproject_extras_subpkg -n python%{python3_pkgversion}-django-allauth mfa openid saml socialaccount steam %prep %autosetup -p1 -n django-allauth # we don't have django-ninja packaged yet: remove the unusable ninja modules # (deleting source so an unsatisfiable `import ninja` fails at build, not at the # user's runtime), their now-dead tests, and the test-project URLs that include # them -- otherwise the broken include cascades through the shared URLconf and # fails ~all tests. rm -rf allauth/headless/contrib/ninja/ rm -rf allauth/idp/oidc/contrib/ninja/ rm -rf tests/apps/headless/contrib/ninja/ rm -rf tests/apps/idp/oidc/contrib/ninja/ rm -rf tests/projects/common/idp/ninja/ rm -rf tests/projects/common/headless/ninja/ sed -i '/ninja/d' tests/projects/common/idp/urls.py \ tests/projects/common/headless/urls.py # the JWT strategy tests also probe a removed /headless/ninja/resource endpoint # inline; drop those list entries so the (non-ninja) JWT/DRF coverage still runs sed -i '\#/headless/ninja/resource#d' \ tests/apps/headless/tokens/test_jwttokenstrategy.py %generate_buildrequires %pyproject_buildrequires -x mfa,openid,saml,socialaccount,steam %build %pyproject_wheel %install %pyproject_install %pyproject_save_files allauth %check %if %{with tests} %pytest -v %endif %files -n python%{python3_pkgversion}-django-allauth -f %{pyproject_files} %doc AUTHORS ChangeLog.rst README.rst %changelog ## START: Generated by rpmautospec * Tue Jun 16 2026 Michel Lind - 65.18.0-1 - Update to version 65.18.0; Resolves RHBZ#2334129 - Fixes CVE-2026-27982: Open redirect via crafted URL in SAML IdP initiated SSO * Sat Jun 06 2026 Python Maint - 65.8.1-3 - Rebuilt for Python 3.15 * Sat Jan 17 2026 Fedora Release Engineering - 65.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Oct 10 2025 Michel Lind - 65.8.1-1 - Update to version 65.8.1; Fixes: RHBZ#2389646 * Fri Sep 19 2025 Python Maint - 65.3.0-6 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 65.3.0-5 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 65.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jun 27 2025 Python Maint - 65.3.0-3 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 65.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Dec 20 2024 Michel Lind - 65.3.0-1 - Update to version 65.3.0; Fixes: RHBZ#2329656 * Wed Nov 13 2024 Michel Lind - 65.2.0-1 - Update to 65.2.0 - Resolves: rhbz#2315110 - Update URL - Update source URL to use Codeberg * Mon Sep 23 2024 Michel Lind - 65.0.1-1 - Update to version 65.0.1; Fixes: RHBZ#2314071 * Tue Sep 17 2024 Michel Lind - 64.2.1-1 - Update to version 64.2.1; Fixes: RHBZ#2309039 - Enable extra subpackages * Wed Aug 28 2024 Michel Lind - 64.1.0-1 - Update to version 64.1.0; Fixes: RHBZ#2276536 * Fri Jul 19 2024 Fedora Release Engineering - 0.61.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 20 2024 Python Maint - 0.61.1-2 - Rebuilt for Python 3.13 * Thu Feb 29 2024 Michel Lind - 0.61.1-1 - Update to 0.61.1 * Fri Jan 26 2024 Fedora Release Engineering - 0.54.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.54.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Michel Alexandre Salim - 0.54.0-1 - Update to 0.54.0 (rhbz#2220192) * Thu May 04 2023 Michel Alexandre Salim - 0.46.0-6 - Pass --source to `coverage` so it can find the source files (needed for coverage 7.x) - Run tests with verbose output * Fri Jan 20 2023 Fedora Release Engineering - 0.46.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.46.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 0.46.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.46.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 08 2021 Michel Alexandre Salim - 0.46.0-1 - Initial Fedora package ## END: Generated by rpmautospec