2020-07-09 06:50:22 +00:00
|
|
|
#
|
2023-01-06 10:12:31 +00:00
|
|
|
# spec file for package python-ldapdomaindump
|
|
|
|
|
#
|
2025-04-07 12:03:22 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
|
# Copyright (c) 2020-2025, Martin Hauke <mardnh@gmx.de>
|
2020-07-09 06:50:22 +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.
|
|
|
|
|
|
2023-01-06 10:12:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2020-07-09 06:50:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-ldapdomaindump
|
2025-04-07 12:03:22 +00:00
|
|
|
Version: 0.10.0
|
2020-07-09 06:50:22 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Active Directory information dumper via LDAP
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/dirkjanm/ldapdomaindump/
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/l/ldapdomaindump/ldapdomaindump-%{version}.tar.gz
|
2025-04-07 12:03:22 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/dirkjanm/ldapdomaindump/pull/73
|
|
|
|
|
Patch0: https://patch-diff.githubusercontent.com/raw/dirkjanm/ldapdomaindump/pull/73.patch
|
2023-09-06 05:58:33 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-07-09 06:50:22 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-09-06 05:58:33 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: dos2unix
|
2020-07-09 06:50:22 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-dnspython
|
|
|
|
|
Requires: python-ldap3 >= 2.5
|
2023-09-06 05:58:33 +00:00
|
|
|
Requires(post): update-alternatives
|
2025-04-07 12:03:22 +00:00
|
|
|
Requires(postun): update-alternatives
|
2020-07-09 06:50:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module dnspython}
|
|
|
|
|
BuildRequires: %{python_module ldap3 >= 2.5}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Active Directory information dumper via LDAP.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-09-06 05:58:33 +00:00
|
|
|
%autosetup -p1 -n ldapdomaindump-%{version}
|
2020-07-09 06:50:22 +00:00
|
|
|
sed -i 's|#!%{_bindir}/env python|#!%{_bindir}/python3|g' \
|
|
|
|
|
bin/ldd2pretty \
|
|
|
|
|
bin/ldapdomaindump \
|
|
|
|
|
bin/ldd2bloodhound
|
|
|
|
|
sed -i '/^#!\//, 1d' ldapdomaindump/__main__.py
|
2023-09-06 05:58:33 +00:00
|
|
|
find . -type f -exec dos2unix {} \;
|
2020-07-09 06:50:22 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-09-06 05:58:33 +00:00
|
|
|
%pyproject_wheel
|
2020-07-09 06:50:22 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-09-06 05:58:33 +00:00
|
|
|
%pyproject_install
|
2020-07-09 06:50:22 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/ldapdomaindump
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/ldd2bloodhound
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/ldd2pretty
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative ldapdomaindump ldd2bloodhound ldd2pretty
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative ldapdomaindump ldd2bloodhound ldd2pretty
|
|
|
|
|
|
|
|
|
|
#%%check
|
|
|
|
|
# Upstream does not provide tests
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
2025-04-07 12:03:22 +00:00
|
|
|
%doc README.md
|
2020-07-09 06:50:22 +00:00
|
|
|
%python_alternative %{_bindir}/ldapdomaindump
|
|
|
|
|
%python_alternative %{_bindir}/ldd2bloodhound
|
|
|
|
|
%python_alternative %{_bindir}/ldd2pretty
|
2023-09-06 05:58:33 +00:00
|
|
|
%{python_sitelib}/ldapdomaindump
|
|
|
|
|
%{python_sitelib}/ldapdomaindump-%{version}.dist-info
|
2020-07-09 06:50:22 +00:00
|
|
|
|
|
|
|
|
%changelog
|