commit 19ba527e1a0c225b1b58dcc36e9046c7aaecba2ab59195a6d9329d068cdf03ff Author: Tomáš Chvátal Date: Thu Jul 9 06:50:22 2020 +0000 Accepting request 819605 from home:mnhauke Initial package for python-ldapdomaindump OBS-URL: https://build.opensuse.org/request/show/819605 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldapdomaindump?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ldapdomaindump-0.9.3.tar.gz b/ldapdomaindump-0.9.3.tar.gz new file mode 100644 index 0000000..2168d1e --- /dev/null +++ b/ldapdomaindump-0.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec293973209302eb6d925c3cde6b10693c15443933d1884bc4495d4a19d29181 +size 18745 diff --git a/python-ldapdomaindump.changes b/python-ldapdomaindump.changes new file mode 100644 index 0000000..124982a --- /dev/null +++ b/python-ldapdomaindump.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Jul 8 07:27:11 UTC 2020 - Martin Hauke + +- Initial package, version 0.9.3 diff --git a/python-ldapdomaindump.spec b/python-ldapdomaindump.spec new file mode 100644 index 0000000..7c62776 --- /dev/null +++ b/python-ldapdomaindump.spec @@ -0,0 +1,78 @@ +# # spec file for package python-ldapdomaindump +# +# Copyright (c) 2020, Martin Hauke +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-ldapdomaindump +Version: 0.9.3 +Release: 0 +Summary: Active Directory information dumper via LDAP +License: MIT +Group: Development/Languages/Python +URL: https://github.com/dirkjanm/ldapdomaindump/ +Source: https://files.pythonhosted.org/packages/source/l/ldapdomaindump/ldapdomaindump-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-dnspython +Requires: python-future +Requires: python-ldap3 >= 2.5 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module dnspython} +BuildRequires: %{python_module future} +BuildRequires: %{python_module ldap3 >= 2.5} +# /SECTION +%python_subpackages + +%description +Active Directory information dumper via LDAP. + +%prep +%setup -q -n ldapdomaindump-%{version} +sed -i 's|#!%{_bindir}/env python|#!%{_bindir}/python3|g' \ + bin/ldd2pretty \ + bin/ldapdomaindump \ + bin/ldd2bloodhound +sed -i '/^#!\//, 1d' ldapdomaindump/__main__.py + +%build +%python_build + +%install +%python_install +%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 +%doc Readme.md +%python_alternative %{_bindir}/ldapdomaindump +%python_alternative %{_bindir}/ldd2bloodhound +%python_alternative %{_bindir}/ldd2pretty +%{python_sitelib}/ldapdomaindump* + +%changelog