summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 19:07:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 19:07:13 +0000
commite6c05407dd8483db97efb77549dd8bb1c9421dfe (patch)
tree5bb13402c5b1f7f27e68d0627ba4d41f62d32d95
parent1141277dad722a102b8abdbefdec12110358e102 (diff)
automatic import of python-simple-crypt
-rw-r--r--.gitignore1
-rw-r--r--python-simple-crypt.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4db540b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/simple-crypt-4.1.7.tar.gz
diff --git a/python-simple-crypt.spec b/python-simple-crypt.spec
new file mode 100644
index 0000000..722b531
--- /dev/null
+++ b/python-simple-crypt.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-simple-crypt
+Version: 4.1.7
+Release: 1
+Summary: Simple, secure encryption and decryption for Python 2.7 and 3
+License: UNKNOWN
+URL: https://github.com/andrewcooke/simple-crypt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/60/66/5bf6feb073f715a61492f8a6d444ad3d884ada71af317ce7a9c80bebee60/simple-crypt-4.1.7.tar.gz
+BuildArch: noarch
+
+
+%description
+Simple Crypt encrypts and decrypts data. It has two functions, ``encrypt``
+and ``decrypt``::
+ from simplecrypt import encrypt, decrypt
+ ciphertext = encrypt('password', plaintext)
+ plaintext = decrypt('password', ciphertext)
+That's it. You can see the implementation on
+`github <https://github.com/andrewcooke/simple-crypt/blob/master/src/simplecrypt/__init__.py>`_.
+
+%package -n python3-simple-crypt
+Summary: Simple, secure encryption and decryption for Python 2.7 and 3
+Provides: python-simple-crypt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-simple-crypt
+Simple Crypt encrypts and decrypts data. It has two functions, ``encrypt``
+and ``decrypt``::
+ from simplecrypt import encrypt, decrypt
+ ciphertext = encrypt('password', plaintext)
+ plaintext = decrypt('password', ciphertext)
+That's it. You can see the implementation on
+`github <https://github.com/andrewcooke/simple-crypt/blob/master/src/simplecrypt/__init__.py>`_.
+
+%package help
+Summary: Development documents and examples for simple-crypt
+Provides: python3-simple-crypt-doc
+%description help
+Simple Crypt encrypts and decrypts data. It has two functions, ``encrypt``
+and ``decrypt``::
+ from simplecrypt import encrypt, decrypt
+ ciphertext = encrypt('password', plaintext)
+ plaintext = decrypt('password', ciphertext)
+That's it. You can see the implementation on
+`github <https://github.com/andrewcooke/simple-crypt/blob/master/src/simplecrypt/__init__.py>`_.
+
+%prep
+%autosetup -n simple-crypt-4.1.7
+
+%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-simple-crypt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 4.1.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6a76284
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dc2b13ce6be9c9da08fb1e7d83498882 simple-crypt-4.1.7.tar.gz