summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:51:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:51:39 +0000
commitd931160716ad3bdebf390bd460b31d616a3ecf77 (patch)
treea9853c25329a13b4e627ebea74c4cf0fe657c016
parent1c66cb19e40b27faaa4f0fcfada6738ad6c5cd1d (diff)
automatic import of python-miscreant
-rw-r--r--.gitignore1
-rw-r--r--python-miscreant.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f5b794d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/miscreant-0.3.0.tar.gz
diff --git a/python-miscreant.spec b/python-miscreant.spec
new file mode 100644
index 0000000..17e07a1
--- /dev/null
+++ b/python-miscreant.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-miscreant
+Version: 0.3.0
+Release: 1
+Summary: Misuse-resistant authenticated symmetric encryption
+License: MIT license
+URL: https://github.com/miscreant/miscreant/tree/master/python/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/39/f6bc2144f9b6d5ccfed4a49339ab2dec42443a9c9e7df75394864a1db2f8/miscreant-0.3.0.tar.gz
+BuildArch: noarch
+
+
+%description
+Misuse resistant symmetric encryption library providing AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions
+
+%package -n python3-miscreant
+Summary: Misuse-resistant authenticated symmetric encryption
+Provides: python-miscreant
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-miscreant
+Misuse resistant symmetric encryption library providing AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions
+
+%package help
+Summary: Development documents and examples for miscreant
+Provides: python3-miscreant-doc
+%description help
+Misuse resistant symmetric encryption library providing AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions
+
+%prep
+%autosetup -n miscreant-0.3.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-miscreant -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..715abd0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a768213b684391a960ea8af837661e18 miscreant-0.3.0.tar.gz