diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:03:27 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:03:27 +0000 |
| commit | 96608ac1d18d21f4220bc5ecb5eff336dbd9c833 (patch) | |
| tree | d1204948cf0110bb9e4ce7d379cca8b6f02e6a9c /python-authencoding.spec | |
| parent | c0db094c2cf7f41dcac836fd9fb288b819c1a4a8 (diff) | |
automatic import of python-authencoding
Diffstat (limited to 'python-authencoding.spec')
| -rw-r--r-- | python-authencoding.spec | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/python-authencoding.spec b/python-authencoding.spec new file mode 100644 index 0000000..6975e72 --- /dev/null +++ b/python-authencoding.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-AuthEncoding +Version: 5.0 +Release: 1 +Summary: Framework for handling LDAP style password hashes. +License: ZPL 2.1 +URL: https://github.com/zopefoundation/AuthEncoding +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/4c/f0eb18cb8b3dd477094ff07f11f78f859550f7416b15a6bf08d173809f89/AuthEncoding-5.0.tar.gz +BuildArch: noarch + +Requires: python3-bcrypt +Requires: python3-pytest + +%description +AuthEncoding is a framework for handling LDAP style password hashes. +It is used in Zope but does not depend on any other Zope package. + +%package -n python3-AuthEncoding +Summary: Framework for handling LDAP style password hashes. +Provides: python-AuthEncoding +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-AuthEncoding +AuthEncoding is a framework for handling LDAP style password hashes. +It is used in Zope but does not depend on any other Zope package. + +%package help +Summary: Development documents and examples for AuthEncoding +Provides: python3-AuthEncoding-doc +%description help +AuthEncoding is a framework for handling LDAP style password hashes. +It is used in Zope but does not depend on any other Zope package. + +%prep +%autosetup -n AuthEncoding-5.0 + +%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-AuthEncoding -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 5.0-1 +- Package Spec generated |
