2013-06-07 05:07:20 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-django-auth-ldap
|
|
|
|
|
#
|
2026-01-22 09:32:50 +00:00
|
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
2013-06-07 05:07:20 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2013-12-04 18:49:14 +00:00
|
|
|
|
2019-01-14 08:09:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-07 05:07:20 +00:00
|
|
|
#
|
|
|
|
|
|
2013-12-04 18:49:14 +00:00
|
|
|
|
2018-07-06 08:44:49 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-09-16 10:05:07 +00:00
|
|
|
%define skip_python2 1
|
2013-06-07 05:07:20 +00:00
|
|
|
Name: python-django-auth-ldap
|
2026-01-22 09:32:50 +00:00
|
|
|
Version: 5.3.0
|
2013-06-07 05:07:20 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Django LDAP authentication backend
|
|
|
|
|
License: BSD-2-Clause
|
2018-08-14 07:08:52 +00:00
|
|
|
URL: https://github.com/django-auth-ldap/django-auth-ldap
|
2025-02-24 12:15:21 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/django-auth-ldap/django_auth_ldap-%{version}.tar.gz
|
2020-01-07 09:59:15 +00:00
|
|
|
BuildRequires: %{python_module Django >= 2.2}
|
2018-08-14 07:08:52 +00:00
|
|
|
BuildRequires: %{python_module ldap >= 3.1}
|
2022-02-21 13:54:04 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-07-18 08:01:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-02-21 13:54:04 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: fdupes
|
2018-07-06 08:44:49 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-01-14 08:09:47 +00:00
|
|
|
# needed for slapd binary in tests
|
|
|
|
|
BuildRequires: openldap2
|
|
|
|
|
# needed for ldapadd binary in tests
|
|
|
|
|
BuildRequires: openldap2-client
|
2020-01-07 09:59:15 +00:00
|
|
|
Requires: python-Django >= 2.2
|
2018-08-14 07:08:52 +00:00
|
|
|
Requires: python-ldap >= 3.1
|
2013-06-07 05:07:20 +00:00
|
|
|
BuildArch: noarch
|
2018-07-06 08:44:49 +00:00
|
|
|
%python_subpackages
|
2013-06-07 05:07:20 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a Django authentication backend that authenticates against an LDAP service.
|
|
|
|
|
Configuration can be as simple as a single distinguished name template, but there
|
|
|
|
|
are many rich configuration options for working with users, groups, and permissions.
|
|
|
|
|
|
|
|
|
|
%prep
|
2025-02-24 12:15:21 +00:00
|
|
|
%setup -q -n django_auth_ldap-%{version}
|
2013-06-07 05:07:20 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-02-21 13:54:04 +00:00
|
|
|
%pyproject_wheel
|
2013-06-07 05:07:20 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-02-21 13:54:04 +00:00
|
|
|
%pyproject_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-06-07 05:07:20 +00:00
|
|
|
|
2018-08-14 07:08:52 +00:00
|
|
|
%check
|
|
|
|
|
export LANG=en_US.UTF8
|
2024-07-04 07:06:56 +00:00
|
|
|
export PATH=/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin
|
2025-02-24 12:15:21 +00:00
|
|
|
# Running in short path to avoid slapdtest issue with long paths
|
|
|
|
|
TEST_PATH=$(mktemp -d)
|
|
|
|
|
cp -r tests django_auth_ldap $TEST_PATH
|
|
|
|
|
pushd $TEST_PATH
|
2022-02-21 13:54:04 +00:00
|
|
|
%python_exec -m django test --settings tests.settings -v2
|
2025-02-24 12:15:21 +00:00
|
|
|
popd
|
2018-08-14 07:08:52 +00:00
|
|
|
|
2018-07-06 08:44:49 +00:00
|
|
|
%files %{python_files}
|
2018-08-14 07:08:52 +00:00
|
|
|
%license LICENSE
|
2024-07-04 07:06:56 +00:00
|
|
|
%doc README.rst
|
2013-06-07 05:07:20 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|