8464392
%global srcname ecdsa
8464392
8464392
Name:           python-%{srcname}
Jonathan 5c9b90b
Version:        0.18.0
dcfdc24
Release:        2%{?dist}
8464392
Summary:        ECDSA cryptographic signature library
8464392
8464392
License:        MIT
8464392
URL:            https://pypi.python.org/pypi/ecdsa
Jonathan 3021e28
Source0:        %{pypi_source ecdsa}
8464392
dcfdc24
# tighter bounds for hypothesis parameters
dcfdc24
# fixes https://bugzilla.redhat.com/2137441
dcfdc24
# merged upstream
dcfdc24
Patch:          https://github.com/tlsfuzzer/python-ecdsa/pull/308.patch
dcfdc24
8464392
BuildArch:      noarch
Jonathan 9c6ec6d
Jonathan 9c6ec6d
BuildRequires:  python3-devel
8464392
# For tests
8464392
BuildRequires:  openssl
Jonathan 3021e28
BuildRequires:  python3-pytest
Jonathan 3021e28
BuildRequires:  python3-hypothesis
Jonathan 9c6ec6d
%if 0%{!?rhel}
Jonathan 9c6ec6d
# for better performance
Jonathan 9c6ec6d
BuildRequires:  python3-gmpy2
Jonathan 9c6ec6d
%endif
8464392
8464392
%description
8464392
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
8464392
Digital Signature Algorithm), implemented purely in Python, released under
8464392
the MIT license. With this library, you can quickly create keypairs (signing
8464392
key and verifying key), sign messages, and verify the signatures. The keys
8464392
and signatures are very short, making them easy to handle and incorporate
8464392
into other protocols.
8464392
Jonathan 3021e28
%package -n python3-%{srcname}
8464392
Summary:        ECDSA cryptographic signature library
8464392
Jonathan 3021e28
%description -n python3-%{srcname}
8464392
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
8464392
Digital Signature Algorithm), implemented purely in Python, released under
8464392
the MIT license. With this library, you can quickly create keypairs (signing
8464392
key and verifying key), sign messages, and verify the signatures. The keys
8464392
and signatures are very short, making them easy to handle and incorporate
8464392
into other protocols.
8464392
8464392
8464392
%prep
dcfdc24
%autosetup -p1 -n %{srcname}-%{version}
8464392
# Remove extraneous #!
265f06c
find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
8464392
Jonathan 3021e28
%generate_buildrequires
Jonathan 3021e28
%pyproject_buildrequires
Jonathan 3021e28
8464392
8464392
%build
Jonathan 3021e28
%pyproject_wheel
8464392
8464392
8464392
%install
Jonathan 3021e28
%pyproject_install
Jonathan 3021e28
%pyproject_save_files %{srcname}
8464392
8464392
8464392
%check
Jonathan 0e56244
%if 0%{?rhel}
Jonathan 0e56244
# el9 openssl doesn't support these
Jonathan 0e56244
%pytest \
Jonathan 0e56244
-k "not test_from_openssl_nist224p  \
Jonathan 0e56244
and not test_from_openssl_nist256p  \
Jonathan 0e56244
and not test_from_openssl_nist384p  \
Jonathan 0e56244
and not test_from_openssl_nist521p  \
Jonathan 0e56244
and not test_from_openssl_secp256k1 \
Jonathan 0e56244
and not test_to_openssl_nist224p    \
Jonathan 0e56244
and not test_to_openssl_nist256p    \
Jonathan 0e56244
and not test_to_openssl_nist384p    \
Jonathan 0e56244
and not test_to_openssl_nist521p    \
Jonathan 0e56244
and not test_to_openssl_secp256k1"
Jonathan 0e56244
%else
Jonathan 3021e28
%pytest
Jonathan 0e56244
%endif
8464392
8464392
Jonathan 3021e28
%files -n python3-%{srcname} -f %{pyproject_files}
Orion Poplawski ea70d76
%license LICENSE
Orion Poplawski ea70d76
%doc NEWS README.md
8464392
8464392
8464392
%changelog
dcfdc24
* Tue Oct 25 2022 Miro Hrončok <mhroncok@redhat.com> - 0.18.0-2
dcfdc24
- In the tests, tighter the bounds for hypothesis parameters
dcfdc24
- Fixes: rhbz#2137441
dcfdc24
Jonathan 5c9b90b
* Fri Aug 26 2022 Jonathan Wright <jonathan@almalinux.org> - 0.18.0-1
Jonathan 5c9b90b
- update to 0.18.0
Jonathan 5c9b90b
- rhbz#1873173
Jonathan 5c9b90b
Jonathan 9c6ec6d
* Fri Aug 26 2022 Jonathan Wright <jonathan@almalinux.org> - 0.17.0-9
Jonathan 9c6ec6d
- improve performance with gmpy2
Jonathan 9c6ec6d
Jonathan 3021e28
* Fri Aug 26 2022 Jonathan Wright <jonathan@almalinux.org> - 0.17.0-8
Jonathan 3021e28
- modernize spec file
Jonathan 3021e28
Jonathan 3021e28
* Fri Aug 26 2022 Jonathan Wright <jonathan@almalinux.org> - 0.17.0-7
Jonathan 9b3a69d
- remove python2-related code from spec
Jonathan 9b3a69d
398e9d9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-6
398e9d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
398e9d9
98cf9aa
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.17.0-5
98cf9aa
- Rebuilt for Python 3.11
98cf9aa
9a9378e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-4
9a9378e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9a9378e
63e755e
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-3
63e755e
- Second attempt - Rebuilt for
63e755e
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
63e755e
cd37ee5
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.17.0-2
cd37ee5
- Rebuilt for Python 3.10
cd37ee5
2f7ba0e
* Sun May 30 2021 Orion Poplawski <orion@nwra.com> - 0.17.0-1
2f7ba0e
- Update to 0.17.0
2f7ba0e
54ee67b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-2
54ee67b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
54ee67b
c7204f3
* Mon Nov 16 2020 Orion Poplawski <orion@nwra.com> - 0.16.1-1
c7204f3
- Update to 0.16.1
c7204f3
fb49e2b
* Thu Aug 27 2020 Orion Poplawski <orion@nwra.com> - 0.16.0-1
fb49e2b
- Update to 0.16.0
fb49e2b
020af3d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-3
020af3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
020af3d
aa560af
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.15-2
aa560af
- Rebuilt for Python 3.9
aa560af
a9be83c
* Thu Feb 27 2020 Orion Poplawski <orion@nwra.com> - 0.15-1
a9be83c
- Update to 0.15
a9be83c
b56e69d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-2
b56e69d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b56e69d
265f06c
* Sat Nov  9 2019 Orion Poplawski <orion@nwra.com> - 0.14.1-1
265f06c
- Update to 0.14.1
265f06c
12821d4
* Mon Oct  7 2019 Orion Poplawski <orion@nwra.com> - 0.13.3-1
12821d4
- Update to 0.13.3 - CVE-2019-14853 (bugz #1758704)
12821d4
4015e83
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.2-4
4015e83
- Rebuilt for Python 3.8.0rc1 (#1748018)
4015e83
3850e98
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.2-3
3850e98
- Rebuilt for Python 3.8
3850e98
bf9e027
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.2-2
bf9e027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bf9e027
b0f79e1
* Thu Apr 18 2019 Orion Poplawski <orion@nwra.com> - 0.13.2-1
b0f79e1
- Update to 0.13.2
b0f79e1
458ddd7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-15
458ddd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
458ddd7
Orion Poplawski eab7b78
* Sun Oct 07 2018 Orion Poplawski <orion@cora.nwra.com> - 0.13-14
Orion Poplawski eab7b78
- Drop Python 2 package for Fedora 30+ (bugz #1631326)
Orion Poplawski eab7b78
010045f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-13
010045f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
010045f
77cd6d7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13-12
77cd6d7
- Rebuilt for Python 3.7
77cd6d7
708a1d1
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13-11
708a1d1
- Update Python 2 dependency declarations to new packaging standards
708a1d1
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
708a1d1
58e7cb8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-10
58e7cb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
58e7cb8
Orion Poplawski ea70d76
* Wed Aug 09 2017 Orion Poplawski <orion@nwra.com> - 0.13-9
Orion Poplawski ea70d76
- Modernize spec
Orion Poplawski ea70d76
d2ee273
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-8
d2ee273
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d2ee273
f80650c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-7
f80650c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f80650c
1aa9ae0
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.13-6
1aa9ae0
- Rebuild for Python 3.6
1aa9ae0
c2b7f2e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-5
c2b7f2e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c2b7f2e
Orion Poplawski d6dda15
* Tue Apr 5 2016 Orion Poplawski <orion@cora.nwra.com> - 0.13-4
Orion Poplawski d6dda15
- Enable python3 builds for EPEL7
Orion Poplawski d6dda15
Orion Poplawski 2741c65
* Sat Feb 13 2016 Orion Poplawski <orion@cora.nwra.com> - 0.13-3
Orion Poplawski 2741c65
- Fix provide typo
Orion Poplawski 2741c65
8e282fc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
8e282fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8e282fc
Orion Poplawski 4a64ed5
* Mon Dec 14 2015 Orion Poplawski <orion@cora.nwra.com> - 0.13-1
Orion Poplawski 4a64ed5
- Update to 0.13
Orion Poplawski 4a64ed5
- Modernize spec
Orion Poplawski 4a64ed5
2414dd0
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
2414dd0
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2414dd0
c7a9e5f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
c7a9e5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c7a9e5f
cbf5e04
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
cbf5e04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cbf5e04
Orion Poplawski e131819
* Sat May 10 2014 Orion Poplawski <orion@cora.nwra.com> - 0.11-2
Orion Poplawski e131819
- Rebuild for Python 3.4
Orion Poplawski e131819
Orion Poplawski e0bdb46
* Sat May 10 2014 Orion Poplawski <orion@cora.nwra.com> - 0.11-1
Orion Poplawski e0bdb46
- Update to 0.11
Orion Poplawski e0bdb46
8464392
* Mon Feb 24 2014 Orion Poplawski <orion@cora.nwra.com> - 0.10-3
8464392
- Add python3 package
8464392
8464392
* Mon Feb 24 2014 Orion Poplawski <orion@cora.nwra.com> - 0.10-2
8464392
- Use system python-six
8464392
- Remove extraneous #!s
8464392
8464392
* Fri Feb 21 2014 Orion Poplawski <orion@cora.nwra.com> - 0.10-1
8464392
- Initial package