summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 03:42:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 03:42:35 +0000
commit2f51fff660679a7446c4722ca23bfa984fea8219 (patch)
tree9c2fee8c31ba8335ae8f9e37d6dd78e5c316b6f0
parent5c77d873a07c04eeec292d6a8e58fadd18ca4077 (diff)
automatic import of python-cracklibopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-cracklib.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..084c7fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cracklib-2.9.6.tar.gz
diff --git a/python-cracklib.spec b/python-cracklib.spec
new file mode 100644
index 0000000..1eb3310
--- /dev/null
+++ b/python-cracklib.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cracklib
+Version: 2.9.6
+Release: 1
+Summary: A CPython extension module wrapping the libcrack library
+License: GPLv2+
+URL: http://cracklib.sourceforge.net/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/05/96/ef45729b4e86e394bd53f1148a9a8c95d6124b957fb3352eebd4b7e9bdff/cracklib-2.9.6.tar.gz
+BuildArch: noarch
+
+
+%description
+This CPython extension provides Python bindings for cracklib. It
+contains a pythonic interface to cracklib's functions and some Python
+convenience functions.
+
+
+%package -n python3-cracklib
+Summary: A CPython extension module wrapping the libcrack library
+Provides: python-cracklib
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cracklib
+This CPython extension provides Python bindings for cracklib. It
+contains a pythonic interface to cracklib's functions and some Python
+convenience functions.
+
+
+%package help
+Summary: Development documents and examples for cracklib
+Provides: python3-cracklib-doc
+%description help
+This CPython extension provides Python bindings for cracklib. It
+contains a pythonic interface to cracklib's functions and some Python
+convenience functions.
+
+
+%prep
+%autosetup -n cracklib-2.9.6
+
+%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-cracklib -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.9.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..034d949
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+41adbcce1b8aa0fd20c04a48f8fe6b95 cracklib-2.9.6.tar.gz