File python-certipy-ad.spec of Package python-certipy-ad
#
# spec file for package python-certipy-ad
#
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-certipy-ad
Version: 4.8.2
Release: 0
Summary: Active Directory Certificate Services (AD CS) enumeration tool
License: MIT
URL: https://github.com/ly4k/Certipy
Source: https://files.pythonhosted.org/packages/source/c/certipy-ad/certipy-ad-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-asn1crypto
Requires: python-cryptography >= 39.0
Requires: python-dnspython
Requires: python-dsinternals
Requires: python-impacket
Requires: python-ldap3
Requires: python-pyOpenSSL >= 23.0.0
Requires: python-pyasn1
Requires: python-pycryptodome
Requires: python-requests
Requires: python-requests_ntlm
Requires: python-unicrypto
Requires(post): update-alternatives
Requires(postun): update-alternatives
Conflicts: python-certipy
BuildArch: noarch
%python_subpackages
%description
A tool to interact with Active Directory Certificate Services (AD CS).
%prep
%autosetup -p1 -n certipy-ad-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/certipy
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative certipy
%postun
%python_uninstall_alternative certipy
%check
# no tests exist
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/certipy
%{python_sitelib}/certipy
%{python_sitelib}/certipy_ad-%{version}.dist-info
%changelog