summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-active-directory.spec93
-rw-r--r--sources1
3 files changed, 95 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..86c7863 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/active_directory-0.67.1.tar.gz
diff --git a/python-active-directory.spec b/python-active-directory.spec
new file mode 100644
index 0000000..6512f03
--- /dev/null
+++ b/python-active-directory.spec
@@ -0,0 +1,93 @@
+%global _empty_manifest_terminate_build 0
+Name: python-active_directory
+Version: 0.67.1
+Release: 1
+Summary: Active Directory
+License: http://www.opensource.org/licenses/mit-license.php
+URL: http://timgolden.me.uk/python/active_directory.html
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f3/18/4c17c85824abff9c47a72dc6a1afb498b438a94aa23602c4017f4aee8c0e/active_directory-0.67.1.tar.gz
+BuildArch: noarch
+
+
+%description
+Active Directory (AD) is Microsoft's answer to LDAP, the industry-standard
+directory service holding information about users, computers and
+other resources in a tree structure, arranged by departments or
+geographical location, and optimized for searching.
+The Python Active Directory module is a lightweight wrapper on top of the
+pywin32 extensions, and hides some of the plumbing needed to get Python to
+talk to the AD API. It's pure Python and should work with any version of
+Python from 2.2 onwards (generators) and any recent version of pywin32.
+
+%package -n python3-active_directory
+Summary: Active Directory
+Provides: python-active_directory
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-active_directory
+Active Directory (AD) is Microsoft's answer to LDAP, the industry-standard
+directory service holding information about users, computers and
+other resources in a tree structure, arranged by departments or
+geographical location, and optimized for searching.
+The Python Active Directory module is a lightweight wrapper on top of the
+pywin32 extensions, and hides some of the plumbing needed to get Python to
+talk to the AD API. It's pure Python and should work with any version of
+Python from 2.2 onwards (generators) and any recent version of pywin32.
+
+%package help
+Summary: Development documents and examples for active_directory
+Provides: python3-active_directory-doc
+%description help
+Active Directory (AD) is Microsoft's answer to LDAP, the industry-standard
+directory service holding information about users, computers and
+other resources in a tree structure, arranged by departments or
+geographical location, and optimized for searching.
+The Python Active Directory module is a lightweight wrapper on top of the
+pywin32 extensions, and hides some of the plumbing needed to get Python to
+talk to the AD API. It's pure Python and should work with any version of
+Python from 2.2 onwards (generators) and any recent version of pywin32.
+
+%prep
+%autosetup -n active_directory-0.67.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-active_directory -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.67.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c6b6875
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+57d9caf925474de0b5b64abdf721f94a active_directory-0.67.1.tar.gz