[packages/python-rsa] - last version of rsa for python2.7

qboosh qboosh at pld-linux.org
Wed Nov 15 21:12:46 CET 2023


commit 4dc11fd8ea0c333ffc4efc1c99027fcf746bc33b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Nov 15 20:59:35 2023 +0100

    - last version of rsa for python2.7

 python-rsa.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
---
diff --git a/python-rsa.spec b/python-rsa.spec
new file mode 100644
index 0000000..a3d942b
--- /dev/null
+++ b/python-rsa.spec
@@ -0,0 +1,63 @@
+%define		module	rsa
+Summary:	Pure-Python RSA implementation
+Summary(pl.UTF-8):	Czysto pythonowa implementacja RSA
+Name:		python-%{module}
+Version:	4.5
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/rsa/
+Source0:	https://files.pythonhosted.org/packages/source/r/rsa/%{module}-%{version}.tar.gz
+# Source0-md5:	f6d05e133e715d77b207bb7bd90d7854
+URL:		https://pypi.org/project/rsa/
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python-RSA is a pure-Python RSA implementation. It supports encryption
+and decryption, signing and verifying signatures, and key generation
+according to PKCS#1 version 1.5. It can be used as a Python library as
+well as on the commandline.
+
+%description -l pl.UTF-8
+Python-RSA to implementacja RSA w czystym Pythonie. Obsługuje
+szyfrowanie i odszyfrowywanie, podpisywanie i sprawdzanie podpisów
+oraz generowanie kluczy zgodnie z PKCS#1 w wersji 1.5. Moduł może być
+używany jako biblioteka Pythona, jak i z linii poleceń.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+for f in $RPM_BUILD_ROOT%{_bindir}/pyrsa-* ; do
+	%{__mv} "$f" "${f}-2"
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.txt LICENSE README.md
+%attr(755,root,root) %{_bindir}/pyrsa-decrypt-2
+%attr(755,root,root) %{_bindir}/pyrsa-encrypt-2
+%attr(755,root,root) %{_bindir}/pyrsa-keygen-2
+%attr(755,root,root) %{_bindir}/pyrsa-priv2pub-2
+%attr(755,root,root) %{_bindir}/pyrsa-sign-2
+%attr(755,root,root) %{_bindir}/pyrsa-verify-2
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-rsa.git/commitdiff/4dc11fd8ea0c333ffc4efc1c99027fcf746bc33b



More information about the pld-cvs-commit mailing list