From 1c022d5e7134f093b56d57dca19c4c6fe0f10417 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 10:15:17 +0000 Subject: automatic import of python-sshpubkeys --- python-sshpubkeys.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 python-sshpubkeys.spec (limited to 'python-sshpubkeys.spec') diff --git a/python-sshpubkeys.spec b/python-sshpubkeys.spec new file mode 100644 index 0000000..4a89f5a --- /dev/null +++ b/python-sshpubkeys.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sshpubkeys +Version: 3.3.1 +Release: 1 +Summary: SSH public key parser +License: BSD +URL: https://github.com/ojarva/python-sshpubkeys +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a3/b9/e5b76b4089007dcbe9a7e71b1976d3c0f27e7110a95a13daf9620856c220/sshpubkeys-3.3.1.tar.gz +BuildArch: noarch + +Requires: python3-cryptography +Requires: python3-ecdsa +Requires: python3-twine +Requires: python3-wheel +Requires: python3-yapf + +%description + + +%package -n python3-sshpubkeys +Summary: SSH public key parser +Provides: python-sshpubkeys +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sshpubkeys + + +%package help +Summary: Development documents and examples for sshpubkeys +Provides: python3-sshpubkeys-doc +%description help + + +%prep +%autosetup -n sshpubkeys-3.3.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-sshpubkeys -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 3.3.1-1 +- Package Spec generated -- cgit v1.2.3