Blame SPECS/python-rsa.spec

rdobuilder b52e26
%global pypi_name rsa
rdobuilder b52e26
rdobuilder b52e26
Name:           python-%{pypi_name}
rdobuilder b52e26
Version:        4.8
rdobuilder b52e26
Release:        1%{?dist}
rdobuilder b52e26
Summary:        Pure-Python RSA implementation
rdobuilder b52e26
rdobuilder b52e26
License:        ASL 2.0
rdobuilder b52e26
URL:            http://stuvel.eu/rsa
rdobuilder b52e26
Source0:        https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
rdobuilder b52e26
BuildArch:      noarch
rdobuilder b52e26
rdobuilder b52e26
%description
rdobuilder b52e26
Python-RSA is a pure-Python RSA implementation. It supports encryption
rdobuilder b52e26
and decryption, signing and verifying signatures, and key generation
rdobuilder b52e26
according to PKCS#1 version 1.5. It can be used as a Python library as
rdobuilder b52e26
well as on the command-line.
rdobuilder b52e26
rdobuilder b52e26
%package -n     python3-%{pypi_name}
rdobuilder b52e26
Summary:        Pure-Python RSA implementation
rdobuilder b52e26
%{?python_provide:%python_provide python3-%{pypi_name}}
rdobuilder b52e26
rdobuilder b52e26
BuildRequires:  python3-devel
rdobuilder b52e26
BuildRequires:  python3-setuptools
rdobuilder b52e26
#BuildRequires:  python3-mypy
rdobuilder b52e26
BuildRequires:  python3-pyasn1 >= 0.1.3
rdobuilder b52e26
Requires:       python3-pyasn1 >= 0.1.3
rdobuilder b52e26
Requires:       python3-setuptools
rdobuilder b52e26
rdobuilder b52e26
%description -n python3-%{pypi_name}
rdobuilder b52e26
Python-RSA is a pure-Python RSA implementation. It supports encryption
rdobuilder b52e26
and decryption, signing and verifying signatures, and key generation
rdobuilder b52e26
according to PKCS#1 version 1.5. It can be used as a Python library as
rdobuilder b52e26
well as on the command-line.
rdobuilder b52e26
rdobuilder b52e26
%prep
rdobuilder b52e26
%autosetup -n %{pypi_name}-%{version}
rdobuilder b52e26
rdobuilder b52e26
%build
rdobuilder b52e26
%py3_build
rdobuilder b52e26
rdobuilder b52e26
%install
rdobuilder b52e26
%py3_install
rdobuilder b52e26
cp %{buildroot}%{_bindir}/pyrsa-priv2pub %{buildroot}%{_bindir}/pyrsa-priv2pub-3
rdobuilder b52e26
cp %{buildroot}%{_bindir}/pyrsa-keygen %{buildroot}%{_bindir}/pyrsa-keygen-3
rdobuilder b52e26
cp %{buildroot}%{_bindir}/pyrsa-encrypt %{buildroot}%{_bindir}/pyrsa-encrypt-3
rdobuilder b52e26
cp %{buildroot}%{_bindir}/pyrsa-decrypt %{buildroot}%{_bindir}/pyrsa-decrypt-3
rdobuilder b52e26
cp %{buildroot}%{_bindir}/pyrsa-sign %{buildroot}%{_bindir}/pyrsa-sign-3
rdobuilder b52e26
cp %{buildroot}%{_bindir}/pyrsa-verify %{buildroot}%{_bindir}/pyrsa-verify-3
rdobuilder b52e26
rdobuilder b52e26
%files -n python3-%{pypi_name}
rdobuilder b52e26
%doc README.md
rdobuilder b52e26
%license LICENSE
rdobuilder b52e26
%{_bindir}/pyrsa-priv2pub
rdobuilder b52e26
%{_bindir}/pyrsa-keygen
rdobuilder b52e26
%{_bindir}/pyrsa-encrypt
rdobuilder b52e26
%{_bindir}/pyrsa-decrypt
rdobuilder b52e26
%{_bindir}/pyrsa-sign
rdobuilder b52e26
%{_bindir}/pyrsa-verify
rdobuilder b52e26
%{_bindir}/pyrsa-priv2pub-3
rdobuilder b52e26
%{_bindir}/pyrsa-keygen-3
rdobuilder b52e26
%{_bindir}/pyrsa-encrypt-3
rdobuilder b52e26
%{_bindir}/pyrsa-decrypt-3
rdobuilder b52e26
%{_bindir}/pyrsa-sign-3
rdobuilder b52e26
%{_bindir}/pyrsa-verify-3
rdobuilder b52e26
%{python3_sitelib}/%{pypi_name}/
rdobuilder b52e26
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
rdobuilder b52e26
rdobuilder b52e26
%check
rdobuilder b52e26
# Disabled following https://github.com/sybrenstuvel/python-rsa/issues/153
rdobuilder b52e26
# As for the multiple comments, it seems more like a test problem than a code problem
rdobuilder b52e26
# Please re-enable tests as soon as that Issue got solved
rdobuilder b52e26
# %{__python3} setup.py test
rdobuilder b52e26
rdobuilder b52e26
%changelog
rdobuilder b52e26
* Mon Nov 29 2021 Jason Montleon <jmontleo@redhat.com> - 4.8-1
rdobuilder b52e26
- Update to 4.8
rdobuilder b52e26
rdobuilder b52e26
* Wed Sep 15 2021 Jason Montleon <jmontleo@redhat.com> - 4.7.2-1
rdobuilder b52e26
- Update to 4.7.2
rdobuilder b52e26
rdobuilder b52e26
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6-5
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.6-4
rdobuilder b52e26
- Rebuilt for Python 3.10
rdobuilder b52e26
rdobuilder b52e26
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.6-3
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6-2
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Sun Jul 05 2020 Fabio Alessandro Locati <fale@fedoraproject.org> - 4.6-1
rdobuilder b52e26
- Bump version to 4.6
rdobuilder b52e26
rdobuilder b52e26
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-15
rdobuilder b52e26
- Rebuilt for Python 3.9
rdobuilder b52e26
rdobuilder b52e26
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-14
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Thu Jan  9 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.2-13
rdobuilder b52e26
- Remove dependency on unittest2 (#1789200)
rdobuilder b52e26
rdobuilder b52e26
* Fri Sep 20 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-12
rdobuilder b52e26
- Subpackage python2-rsa has been removed
rdobuilder b52e26
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
rdobuilder b52e26
rdobuilder b52e26
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-11
rdobuilder b52e26
- Rebuilt for Python 3.8
rdobuilder b52e26
rdobuilder b52e26
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-10
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-9
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-8
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-7
rdobuilder b52e26
- Rebuilt for Python 3.7
rdobuilder b52e26
rdobuilder b52e26
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.4.2-6
rdobuilder b52e26
- Update Python 2 dependency declarations to new packaging standards
rdobuilder b52e26
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
rdobuilder b52e26
rdobuilder b52e26
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-5
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-4
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-3
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.4.2-2
rdobuilder b52e26
- Rebuild for Python 3.6
rdobuilder b52e26
rdobuilder b52e26
* Sat Oct 29 2016 Fabio Alessnadro Locati <fale@fedoraproject.org> - 3.4.2-1
rdobuilder b52e26
- Update to 3.4.2
rdobuilder b52e26
rdobuilder b52e26
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-2
rdobuilder b52e26
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
rdobuilder b52e26
rdobuilder b52e26
* Sat Mar 26 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.4.1-1
rdobuilder b52e26
- Update to 3.4.1
rdobuilder b52e26
rdobuilder b52e26
* Fri Mar 18 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.4-1
rdobuilder b52e26
- Bump to 3.4
rdobuilder b52e26
- Remove the patch that is no longer needed since it has been merged upstream
rdobuilder b52e26
rdobuilder b52e26
* Tue Feb 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.3-5
rdobuilder b52e26
- Fix bug #1305644
rdobuilder b52e26
rdobuilder b52e26
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-4
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Tue Feb 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.3-3
rdobuilder b52e26
- Fix bug #1303660
rdobuilder b52e26
rdobuilder b52e26
* Wed Jan 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.3-2
rdobuilder b52e26
- Fix for EL6 and EPEL7
rdobuilder b52e26
rdobuilder b52e26
* Wed Jan 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.3-1
rdobuilder b52e26
- Update to current upstream
rdobuilder b52e26
- Fix CVE-2016-1494
rdobuilder b52e26
- Bring spec compliant with current policy
rdobuilder b52e26
rdobuilder b52e26
* Tue Dec  8 2015 Paul Howarth <paul@city-fan.org> - 3.1.4-3
rdobuilder b52e26
- Fix FTBFS (Debian Bug #804430)
rdobuilder b52e26
- Run the tests for both python2 and python3
rdobuilder b52e26
rdobuilder b52e26
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.4-2
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
rdobuilder b52e26
rdobuilder b52e26
* Tue Oct 13 2015 Paul Howarth <paul@city-fan.org> - 3.1.4-1
rdobuilder b52e26
- Update to 3.1.4 (#1226667)
rdobuilder b52e26
rdobuilder b52e26
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-7
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 3.1.1-6
rdobuilder b52e26
- Add Python 3 subpackage
rdobuilder b52e26
rdobuilder b52e26
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Mon Aug 05 2013 Yohan Graterol <yohangraterol92@gmail.com> - 3.1.1-4
rdobuilder b52e26
- Fix build in F20
rdobuilder b52e26
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-3
rdobuilder b52e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
rdobuilder b52e26
rdobuilder b52e26
* Sun May 26 2013 Yohan Graterol <yohangraterol92@gmail.com> - 3.1.1-2
rdobuilder b52e26
- Change license name, remove MANIFEST.in
rdobuilder b52e26
rdobuilder b52e26
* Sun May 19 2013 Yohan Graterol <yohangraterol92@gmail.com> - 3.1.1-1
rdobuilder b52e26
- Initial packaging