From e6c05407dd8483db97efb77549dd8bb1c9421dfe Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 19:07:13 +0000 Subject: automatic import of python-simple-crypt --- python-simple-crypt.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 python-simple-crypt.spec (limited to 'python-simple-crypt.spec') 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 `_. + +%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 `_. + +%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 `_. + +%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 - 4.1.7-1 +- Package Spec generated -- cgit v1.2.3