8464392
%global srcname ecdsa
8464392
8464392
Name:           python-%{srcname}
2f7ba0e
Version:        0.17.0
63e755e
Release:        3%{?dist}
8464392
Summary:        ECDSA cryptographic signature library
8464392
8464392
License:        MIT
8464392
URL:            https://pypi.python.org/pypi/ecdsa
Orion Poplawski 4a64ed5
Source0:        https://pypi.python.org/packages/source/e/%{srcname}/%{srcname}-%{version}.tar.gz
8464392
8464392
BuildArch:      noarch
8464392
# For tests
8464392
BuildRequires:  openssl
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
Orion Poplawski eab7b78
%if 0%{?fedora} < 30
Orion Poplawski 4a64ed5
%package -n python2-%{srcname}
Orion Poplawski 4a64ed5
Summary:        ECDSA cryptographic signature library
Orion Poplawski ea70d76
BuildRequires:  python2-devel
Orion Poplawski ea70d76
BuildRequires:  python2-setuptools
708a1d1
BuildRequires:  python2-six
708a1d1
Requires:       python2-six
Orion Poplawski 4a64ed5
%{?python_provide:%python_provide python2-%{srcname}}
Orion Poplawski 4a64ed5
Orion Poplawski 4a64ed5
%description -n python2-%{srcname}
Orion Poplawski 4a64ed5
This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
Orion Poplawski 4a64ed5
Digital Signature Algorithm), implemented purely in Python, released under
Orion Poplawski 4a64ed5
the MIT license. With this library, you can quickly create keypairs (signing
Orion Poplawski 4a64ed5
key and verifying key), sign messages, and verify the signatures. The keys
Orion Poplawski 4a64ed5
and signatures are very short, making them easy to handle and incorporate
Orion Poplawski 4a64ed5
into other protocols.
Orion Poplawski eab7b78
%endif
8464392
Orion Poplawski d6dda15
%package -n python%{python3_pkgversion}-%{srcname}
8464392
Summary:        ECDSA cryptographic signature library
Orion Poplawski ea70d76
BuildRequires:  python%{python3_pkgversion}-devel
Orion Poplawski ea70d76
BuildRequires:  python%{python3_pkgversion}-setuptools
Orion Poplawski ea70d76
BuildRequires:  python%{python3_pkgversion}-six
Orion Poplawski d6dda15
Requires:       python%{python3_pkgversion}-six
Orion Poplawski d6dda15
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
8464392
Orion Poplawski d6dda15
%description -n python%{python3_pkgversion}-%{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
Orion Poplawski 4a64ed5
%setup -q -n %{srcname}-%{version}
8464392
rm -rf %{srcname}.egg-info
8464392
# Remove extraneous #!
265f06c
find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
8464392
8464392
8464392
%build
Orion Poplawski eab7b78
%if 0%{?fedora} < 30
Orion Poplawski ea70d76
%py2_build
Orion Poplawski eab7b78
%endif
Orion Poplawski ea70d76
%py3_build
8464392
8464392
8464392
%install
Orion Poplawski ea70d76
%py3_install
Orion Poplawski eab7b78
%if 0%{?fedora} < 30
Orion Poplawski ea70d76
%py2_install
Orion Poplawski eab7b78
%endif
8464392
8464392
8464392
%check
Orion Poplawski eab7b78
%if 0%{?fedora} < 30
8464392
%{__python2} setup.py test
Orion Poplawski eab7b78
%endif
8464392
%{__python3} setup.py test
8464392
8464392
 
Orion Poplawski eab7b78
%if 0%{?fedora} < 30
Orion Poplawski 4a64ed5
%files -n python2-%{srcname}
Orion Poplawski ea70d76
%license LICENSE
Orion Poplawski ea70d76
%doc NEWS README.md
8464392
%{python2_sitelib}/*
Orion Poplawski eab7b78
%endif
8464392
Orion Poplawski d6dda15
%files -n python%{python3_pkgversion}-%{srcname}
Orion Poplawski ea70d76
%license LICENSE
Orion Poplawski ea70d76
%doc NEWS README.md
8464392
%{python3_sitelib}/*
8464392
8464392
8464392
%changelog
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