commit 03885494154c589fdb7aeeeb07c2a8c3c284c851 Author: tigro Date: Sun Nov 19 23:21:11 2023 +0300 import python-rsa-4.9-2.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..085bdc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rsa-4.9.tar.gz diff --git a/.python-rsa.metadata b/.python-rsa.metadata new file mode 100644 index 0000000..427308a --- /dev/null +++ b/.python-rsa.metadata @@ -0,0 +1 @@ +71e3485aa2bbe020426a8604151b5175e157091b SOURCES/rsa-4.9.tar.gz diff --git a/SPECS/python-rsa.spec b/SPECS/python-rsa.spec new file mode 100644 index 0000000..0865a12 --- /dev/null +++ b/SPECS/python-rsa.spec @@ -0,0 +1,223 @@ +%global pypi_name rsa + +Name: python-%{pypi_name} +Version: 4.9 +Release: 2%{?dist} +Summary: Pure-Python RSA implementation + +License: Apache-2.0 +URL: http://stuvel.eu/rsa +Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%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 command-line. + +%package -n python3-%{pypi_name} +Summary: Pure-Python RSA implementation +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +#BuildRequires: python3-mypy +BuildRequires: python3-pyasn1 >= 0.1.3 +Requires: python3-pyasn1 >= 0.1.3 +Requires: python3-setuptools + +%description -n python3-%{pypi_name} +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 command-line. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install +cp %{buildroot}%{_bindir}/pyrsa-priv2pub %{buildroot}%{_bindir}/pyrsa-priv2pub-3 +cp %{buildroot}%{_bindir}/pyrsa-keygen %{buildroot}%{_bindir}/pyrsa-keygen-3 +cp %{buildroot}%{_bindir}/pyrsa-encrypt %{buildroot}%{_bindir}/pyrsa-encrypt-3 +cp %{buildroot}%{_bindir}/pyrsa-decrypt %{buildroot}%{_bindir}/pyrsa-decrypt-3 +cp %{buildroot}%{_bindir}/pyrsa-sign %{buildroot}%{_bindir}/pyrsa-sign-3 +cp %{buildroot}%{_bindir}/pyrsa-verify %{buildroot}%{_bindir}/pyrsa-verify-3 + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{_bindir}/pyrsa-priv2pub +%{_bindir}/pyrsa-keygen +%{_bindir}/pyrsa-encrypt +%{_bindir}/pyrsa-decrypt +%{_bindir}/pyrsa-sign +%{_bindir}/pyrsa-verify +%{_bindir}/pyrsa-priv2pub-3 +%{_bindir}/pyrsa-keygen-3 +%{_bindir}/pyrsa-encrypt-3 +%{_bindir}/pyrsa-decrypt-3 +%{_bindir}/pyrsa-sign-3 +%{_bindir}/pyrsa-verify-3 +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%check +# Disabled following https://github.com/sybrenstuvel/python-rsa/issues/153 +# As for the multiple comments, it seems more like a test problem than a code problem +# Please re-enable tests as soon as that Issue got solved +# %{__python3} setup.py test + +%changelog +* Sun Nov 19 2023 Arkady L. Shane - 4.9-2 +- Rebuilt for MSVSphere 9.2 + +* Tue Jul 18 2023 Jason Montleon - 4.9-2 +- Migrate to SPDX license + +* Mon Jul 17 2023 Jason Montleon - 4.9-1 +- Update to 4.9 + +* Wed Jun 14 2023 Python Maint - 4.8-6 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 4.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 4.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 4.8-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 4.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 29 2021 Jason Montleon - 4.8-1 +- Update to 4.8 + +* Wed Sep 15 2021 Jason Montleon - 4.7.2-1 +- Update to 4.7.2 + +* Fri Jul 23 2021 Fedora Release Engineering - 4.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 4.6-4 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 4.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jul 05 2020 Fabio Alessandro Locati - 4.6-1 +- Bump version to 4.6 + +* Sun May 24 2020 Miro Hrončok - 3.4.2-15 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.4.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 9 2020 Zbigniew Jędrzejewski-Szmek - 3.4.2-13 +- Remove dependency on unittest2 (#1789200) + +* Fri Sep 20 2019 Miro Hrončok - 3.4.2-12 +- Subpackage python2-rsa has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Mon Aug 19 2019 Miro Hrončok - 3.4.2-11 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.4.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 3.4.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 3.4.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 3.4.2-7 +- Rebuilt for Python 3.7 + +* Tue Mar 13 2018 Iryna Shcherbina - 3.4.2-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 3.4.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.4.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 3.4.2-2 +- Rebuild for Python 3.6 + +* Sat Oct 29 2016 Fabio Alessnadro Locati - 3.4.2-1 +- Update to 3.4.2 + +* Tue Jul 19 2016 Fedora Release Engineering - 3.4.1-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Sat Mar 26 2016 Fabio Alessandro Locati - 3.4.1-1 +- Update to 3.4.1 + +* Fri Mar 18 2016 Fabio Alessandro Locati - 3.4-1 +- Bump to 3.4 +- Remove the patch that is no longer needed since it has been merged upstream + +* Tue Feb 09 2016 Fabio Alessandro Locati - 3.3-5 +- Fix bug #1305644 + +* Thu Feb 04 2016 Fedora Release Engineering - 3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Feb 02 2016 Fabio Alessandro Locati - 3.3-3 +- Fix bug #1303660 + +* Wed Jan 13 2016 Fabio Alessandro Locati - 3.3-2 +- Fix for EL6 and EPEL7 + +* Wed Jan 13 2016 Fabio Alessandro Locati - 3.3-1 +- Update to current upstream +- Fix CVE-2016-1494 +- Bring spec compliant with current policy + +* Tue Dec 8 2015 Paul Howarth - 3.1.4-3 +- Fix FTBFS (Debian Bug #804430) +- Run the tests for both python2 and python3 + +* Tue Nov 10 2015 Fedora Release Engineering - 3.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Tue Oct 13 2015 Paul Howarth - 3.1.4-1 +- Update to 3.1.4 (#1226667) + +* Thu Jun 18 2015 Fedora Release Engineering - 3.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Jul 25 2014 Lubomir Rintel - 3.1.1-6 +- Add Python 3 subpackage + +* Sat Jun 07 2014 Fedora Release Engineering - 3.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Aug 05 2013 Yohan Graterol - 3.1.1-4 +- Fix build in F20 +* Sun Aug 04 2013 Fedora Release Engineering - 3.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun May 26 2013 Yohan Graterol - 3.1.1-2 +- Change license name, remove MANIFEST.in + +* Sun May 19 2013 Yohan Graterol - 3.1.1-1 +- Initial packaging