summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 06:12:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 06:12:28 +0000
commit492c613b8a02bb19034a06b2003df3590612d89b (patch)
tree2237d075a1d590f90234bd23d97eaf2537cab5ab
parente740bcb9a26a21941081e86e664930403cf23627 (diff)
automatic import of python-pycrypt
-rw-r--r--.gitignore1
-rw-r--r--python-pycrypt.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1b94582 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pycrypt-0.7.2.tar.gz
diff --git a/python-pycrypt.spec b/python-pycrypt.spec
new file mode 100644
index 0000000..9603e14
--- /dev/null
+++ b/python-pycrypt.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pycrypt
+Version: 0.7.2
+Release: 1
+Summary: Fast TwoFish encryption.
+License: MIT
+URL: https://github.com/Noctem/pycrypt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a4/38/fcbb057da5cff63b5449efb119fba1a2f12471d6b194e4df30ad7878a161/pycrypt-0.7.2.tar.gz
+
+
+%description
+A fast C extension for TwoFish encryption in Python.
+
+%package -n python3-pycrypt
+Summary: Fast TwoFish encryption.
+Provides: python-pycrypt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pycrypt
+A fast C extension for TwoFish encryption in Python.
+
+%package help
+Summary: Development documents and examples for pycrypt
+Provides: python3-pycrypt-doc
+%description help
+A fast C extension for TwoFish encryption in Python.
+
+%prep
+%autosetup -n pycrypt-0.7.2
+
+%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-pycrypt -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9906091
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+be922a3d8c7ce97e3b137ae45dd1f414 pycrypt-0.7.2.tar.gz