047473d
# Share docs between packages for multiple python versions
71ec20e
%global _docdir_fmt %{name}
cvsextras aa0934e
71ec20e
# Single python3 version in Fedora, python3_pkgversion macro not available
71ec20e
%{!?python3_pkgversion:%global python3_pkgversion 3}
71ec20e
52aa704
Summary:	Cryptography library for Python
52aa704
Name:		python-crypto
51f8a80
Version:	2.6.1
611318a
Release:	50%{?dist}
347ade9
# Mostly LicenseRef-Fedora-Public-Domain apart from parts of HMAC.py and setup.py, which are PSF-2.0
347ade9
License:	LicenseRef-Fedora-Public-Domain AND PSF-2.0
8e2c78d
URL:		http://www.pycrypto.org/
8e2c78d
Source0:	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
f7bc52f
Patch0:		python-crypto-2.4-optflags.patch
5067373
Patch1:		python-crypto-2.4-fix-pubkey-size-divisions.patch
c1648a0
Patch2:		pycrypto-2.6.1-CVE-2013-7459.patch
c1648a0
Patch3:		pycrypto-2.6.1-unbundle-libtomcrypt.patch
37e0f20
Patch4:		python-crypto-2.6.1-link.patch
cd23639
Patch5:		pycrypto-2.6.1-CVE-2018-6594.patch
a5fd714
Patch6:		pycrypto-2.6.1-use-os-random.patch
a5fd714
Patch7:		pycrypto-2.6.1-drop-py2.1-support.patch
d58575d
Patch8:		python-crypto-2.6.1-python3.10.patch
56ccdc2
Patch9:		python-crypto-2.6.1-python3.11.patch
f386e9c
Patch10:	python-crypto-2.6.1-python3only.patch
c0acebf
Patch11:	python-crypto-2.6.1-no-distutils.patch
84cd9c6
Patch12:	python-crypto-2.6.1-SyntaxWarning.patch
1c15d4c
Patch13:	python-crypto-2.6.1-python3.12.patch
07c50e4
Patch14:	python-crypto-2.6.1-python3.13.patch
71ec20e
BuildRequires:	coreutils
71ec20e
BuildRequires:	findutils
71ec20e
BuildRequires:	gcc
71ec20e
BuildRequires:	gmp-devel >= 4.1
71ec20e
BuildRequires:	libtomcrypt-devel >= 1.16
71ec20e
BuildRequires:	python%{python3_pkgversion}-devel
c0acebf
BuildRequires:	python%{python3_pkgversion}-setuptools
8e2c78d
cvsextras aa0934e
%description
5067373
PyCrypto is a collection of both secure hash functions (such as MD5 and
5067373
SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).
5067373
224c7a8
This software is no longer maintained upstream. Please use the Cryptography
224c7a8
or PyCryptodome software instead.
224c7a8
71ec20e
%package -n python%{python3_pkgversion}-crypto
5067373
Summary:	Cryptography library for Python 3
Orion Poplawski 07a4928
%{?python_provide:%python_provide python%{python3_pkgversion}-crypto}
5067373
71ec20e
%description -n python%{python3_pkgversion}-crypto
5067373
PyCrypto is a collection of both secure hash functions (such as MD5 and
dd5125f
SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).
7b95cf4
5067373
This is the Python 3 build of the package.
5067373
224c7a8
This software is no longer maintained upstream. Please use the Cryptography
224c7a8
or PyCryptodome software instead.
224c7a8
cvsextras aa0934e
%prep
dd5125f
%setup -n pycrypto-%{version} -q
7b95cf4
8e2c78d
# Use distribution compiler flags rather than upstream's
d41955b
%patch -P 0 -p1
8e2c78d
5067373
# Fix divisions within benchmarking suite:
d41955b
%patch -P 1 -p1
5067373
c1648a0
# AES.new with invalid parameter crashes python
c1648a0
# https://github.com/dlitz/pycrypto/issues/176
c1648a0
# CVE-2013-7459
d41955b
%patch -P 2 -p1
c1648a0
88a061a
# Unbundle libtomcrypt (#1087557)
88a061a
rm -rf src/libtom
d41955b
%patch -P 3
88a061a
37e0f20
# log() not available in libgmp, need libm too
d41955b
%patch -P 4
37e0f20
cd23639
# When creating ElGamal keys, the generator wasn't a square residue: ElGamal
cd23639
# encryption done with those keys cannot be secure under the DDH assumption
cd23639
# https://bugzilla.redhat.com/show_bug.cgi?id=1542313 (CVE-2018-6594)
cd23639
# https://github.com/TElgamal/attack-on-pycrypto-elgamal
cd23639
# https://github.com/Legrandin/pycryptodome/issues/90
cd23639
# https://github.com/dlitz/pycrypto/issues/253
cd23639
# Patch based on this commit from cryptodome:
cd23639
# https://github.com/Legrandin/pycryptodome/commit/99c27a3b
cd23639
# Converted to pull request for pycrypto:
cd23639
# https://github.com/dlitz/pycrypto/pull/256
d41955b
%patch -P 5
cd23639
a5fd714
# Replace the user-space RNG with a thin wrapper to os.urandom
a5fd714
# Based on https://github.com/Legrandin/pycryptodome/commit/afd6328f
a5fd714
# Fixes compatibility with Python 3.8 (#1718332)
d41955b
%patch -P 6
a5fd714
a5fd714
# We already require Python 2.4 or later, so drop support for Python 2.1
a5fd714
# in the code
d41955b
%patch -P 7
a5fd714
d58575d
# Fix Python 3.10 compatibility
d58575d
# https://bugzilla.redhat.com/show_bug.cgi?id=1897544
d41955b
%patch -P 8
d58575d
56ccdc2
# Fix Python 3.11 compatibility
56ccdc2
# https://bugzilla.redhat.com/show_bug.cgi?id=2021808
d41955b
%patch -P 9
56ccdc2
f386e9c
# Convert all code to Python 3 before the ability to use 2to3 goes away
d41955b
%patch -P 10
5067373
c0acebf
# Drop use of deprecated distutils, going away in Python 3.12
d41955b
%patch -P 11
c0acebf
84cd9c6
# Get rid of a SyntaxWarning in test_random.py
d41955b
%patch -P 12
84cd9c6
1c15d4c
# Fix Python 3.12 compatibility
d41955b
%patch -P 13
1c15d4c
07c50e4
# Fix Python 3.13 compatibility
07c50e4
%patch -P 14
07c50e4
8e2c78d
%build
71ec20e
%global optflags %{optflags} -fno-strict-aliasing
71ec20e
%py3_build
5067373
cvsextras aa0934e
%install
71ec20e
%py3_install
cvsextras aa0934e
8e2c78d
# Remove group write permissions on shared objects
5067373
find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod -c g-w {} \;
cvsextras aa0934e
8e2c78d
%check
5067373
%{__python3} setup.py test
5067373
71ec20e
# Benchmark
f386e9c
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} pct-speedtest.py
cvsextras aa0934e
71ec20e
%files -n python%{python3_pkgversion}-crypto
71ec20e
%license COPYRIGHT LEGAL/
71ec20e
%doc README TODO ACKS ChangeLog Doc/
5067373
%{python3_sitearch}/Crypto/
71ec20e
%{python3_sitearch}/pycrypto-%{version}-py3.*.egg-info
5067373
cvsextras aa0934e
%changelog
611318a
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-50
611318a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
611318a
afb1628
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-49
afb1628
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
afb1628
07c50e4
* Fri Oct 27 2023 Paul Howarth <paul@city-fan.org> - 2.6.1-48
07c50e4
- Fix Python 3.13 compatibility (rhbz#2245851)
07c50e4
ed7c497
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-47
ed7c497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
ed7c497
a552716
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.6.1-46
a552716
- Rebuilt for Python 3.12
a552716
347ade9
* Mon Jun  5 2023 Paul Howarth <paul@city-fan.org> - 2.6.1-45
347ade9
- Use SPDX-format license tag
347ade9
d41955b
* Thu Apr 13 2023 Paul Howarth <paul@city-fan.org> - 2.6.1-44
d41955b
- More Python 3.12 compatibility fixes (rhbz#2186406)
d41955b
- Avoid deprecated patch syntax
d41955b
1c15d4c
* Mon Mar 13 2023 Paul Howarth <paul@city-fan.org> - 2.6.1-43
1c15d4c
- Fix Python 3.12 compatibility (rhbz#2177718)
1c15d4c
76b0def
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-42
76b0def
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
76b0def
bc306c8
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-41
bc306c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
bc306c8
6e591eb
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.6.1-40
6e591eb
- Rebuilt for Python 3.11
6e591eb
352f3fc
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-39
352f3fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
352f3fc
f386e9c
* Thu Nov 11 2021 Paul Howarth <paul@city-fan.org> - 2.6.1-38
f386e9c
- Convert all code to Python 3 before the ability to use 2to3 goes away
c0acebf
- Drop use of deprecated distutils, going away in Python 3.12
84cd9c6
- Get rid of a SyntaxWarning in test_random.py
f386e9c
56ccdc2
* Wed Nov 10 2021 Paul Howarth <paul@city-fan.org> - 2.6.1-37
56ccdc2
- Fix Python 3.11 compatibility (#2021808)
56ccdc2
b56d69a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-36
b56d69a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b56d69a
e9aef5f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.6.1-35
e9aef5f
- Rebuilt for Python 3.10
e9aef5f
4d5dd00
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-34
4d5dd00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4d5dd00
d58575d
* Fri Nov 20 2020 Paul Howarth <paul@city-fan.org> - 2.6.1-33
d58575d
- Fix Python 3.10 compatibility (#1897544)
d58575d
01b837d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-32
01b837d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
01b837d
965e521
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-31
965e521
- Rebuilt for Python 3.9
965e521
047473d
* Wed Jan 29 2020 Paul Howarth <paul@city-fan.org> - 2.6.1-30
047473d
- Drop Python 2 support
047473d
ccf4dc9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-29
ccf4dc9
- Rebuilt for Python 3.8.0rc1 (#1748018)
ccf4dc9
d1b7a1a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-28
d1b7a1a
- Rebuilt for Python 3.8
d1b7a1a
fea5d78
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-27
fea5d78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fea5d78
a5fd714
* Fri Jun  7 2019 Paul Howarth <paul@city-fan.org> - 2.6.1-26
a5fd714
- Replace the user-space RNG with a thin wrapper to os.urandom
a5fd714
  - Based on https://github.com/Legrandin/pycryptodome/commit/afd6328f
a5fd714
  - Fixes compatibility with Python 3.8 (#1718332)
a5fd714
- Drop support for Python 2.1
a5fd714
eee44a9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-25
eee44a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
eee44a9
1a8f3e1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-24
1a8f3e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1a8f3e1
1dae38c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-23
1dae38c
- Rebuilt for Python 3.7
1dae38c
cd23639
* Fri Feb 23 2018 Paul Howarth <paul@city-fan.org> - 2.6.1-22
cd23639
- When creating ElGamal keys, the generator wasn't a square residue: ElGamal
cd23639
  encryption done with those keys cannot be secure under the DDH assumption
cd23639
  https://bugzilla.redhat.com/show_bug.cgi?id=1542313 (CVE-2018-6594)
cd23639
  https://github.com/TElgamal/attack-on-pycrypto-elgamal
cd23639
  https://github.com/Legrandin/pycryptodome/issues/90
cd23639
  https://github.com/dlitz/pycrypto/issues/253
cd23639
  https://github.com/dlitz/pycrypto/pull/256
cd23639
bb64be5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-21
bb64be5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bb64be5
37e0f20
* Thu Jan 25 2018 Paul Howarth <paul@city-fan.org> - 2.6.1-20
37e0f20
- log() not available in libgmp, need libm too
37e0f20
4f0dcb6
* Mon Oct 23 2017 Simone Caronni <negativo17@gmail.com> - 2.6.1-19
37e0f20
- Rebuild for libtomcrypt update
4f0dcb6
1acd2f5
* Tue Sep 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.6.1-18
1acd2f5
- Depend on %%{_bindir}/2to3 instead of python2-tools
1acd2f5
9be6b74
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-17
9be6b74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9be6b74
bec2f0e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-16
bec2f0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bec2f0e
007180e
* Thu Jun 29 2017 Paul Howarth <paul@city-fan.org> - 2.6.1-15
007180e
- BR: python2-tools (for 2to3) rather than plain python-tools
007180e
be78e67
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-14
be78e67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
be78e67
c1648a0
* Wed Jan 18 2017 Paul Howarth <paul@city-fan.org> - 2.6.1-13
c1648a0
- AES.new with invalid parameter crashes python (CVE-2013-7459)
c1648a0
  (https://github.com/dlitz/pycrypto/issues/176)
c1648a0
fecd33e
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.6.1-12
fecd33e
- Rebuild for Python 3.6
fecd33e
c85c62d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-11
c85c62d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c85c62d
e40098d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-10
e40098d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e40098d
71ec20e
* Wed Dec 30 2015 Paul Howarth <paul@city-fan.org> - 2.6.1-9
71ec20e
- Enable python3 builds from EPEL-7 (#1110373)
71ec20e
- Modernize spec
71ec20e
Matej Stuchlik f4c1fee
* Wed Nov 04 2015 Matej Stuchlik <mstuchli@redhat.com> - 2.6.1-8
Matej Stuchlik f4c1fee
- Rebuilt for Python 3.5
Matej Stuchlik f4c1fee
9278ab1
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-7
9278ab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9278ab1
4741cac
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-6
4741cac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4741cac
92db8ac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-5
92db8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
92db8ac
fc7303d
* Tue May 27 2014 Paul Howarth <paul@city-fan.org> - 2.6.1-4
fc7303d
- Rebuild for python3 3.4 in Rawhide again
fc7303d
88a061a
* Wed May 14 2014 Paul Howarth <paul@city-fan.org> - 2.6.1-3
88a061a
- Unbundle libtomcrypt (#1087557)
88a061a
- Drop %%defattr, redundant since rpm 4.4
88a061a
30f2827
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.6.1-2
30f2827
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
30f2827
51f8a80
* Fri Oct 18 2013 Paul Howarth <paul@city-fan.org> - 2.6.1-1
51f8a80
- Update to 2.6.1
51f8a80
  - Fix PRNG not correctly reseeded in some situations (CVE-2013-1445)
51f8a80
1369318
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-6
1369318
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1369318
a550624
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-5
a550624
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a550624
cc09eae
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 2.6-4
cc09eae
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
cc09eae
d9b838f
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.6-3
d9b838f
- remove rhel logic from with_python3 conditional
d9b838f
b191621
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-2
b191621
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b191621
f5cf3b4
* Thu May 24 2012 Paul Howarth <paul@city-fan.org> - 2.6-1
f5cf3b4
- Update to 2.6
f5cf3b4
  - Fix insecure ElGamal key generation (launchpad bug #985164, CVE-2012-2417)
f5cf3b4
  - Huge documentation cleanup
f5cf3b4
  - Added more tests, including test vectors from NIST 800-38A
f5cf3b4
  - Remove broken MODE_PGP, which never actually worked properly
f5cf3b4
  - A new mode, MODE_OPENPGP, has been added for people wishing to write
f5cf3b4
    OpenPGP implementations (see also launchpad bug #996814)
f5cf3b4
  - Fix: getPrime with invalid input causes Python to abort with fatal error
f5cf3b4
    (launchpad bug #988431)
f5cf3b4
  - Fix: Segfaults within error-handling paths (launchpad bug #934294)
f5cf3b4
  - Fix: Block ciphers allow empty string as IV (launchpad bug #997464)
f5cf3b4
  - Fix DevURandomRNG to work with Python3's new I/O stack
f5cf3b4
  - Remove automagic dependencies on libgmp and libmpir; let the caller
f5cf3b4
    disable them using args
f5cf3b4
  - Many other minor bug fixes and improvements
f5cf3b4
- Drop upstream patches
f5cf3b4
bda7f75
* Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 2.5-2
bda7f75
- Add upstream fixes for issues found by Dave Malcolm's experimental static
bda7f75
  analysis tool (#790584)
bda7f75
fcafd43
* Mon Jan 16 2012 Paul Howarth <paul@city-fan.org> - 2.5-1
fcafd43
- Update to 2.5
fcafd43
  - Added PKCS#1 encryption schemes (v1.5 and OAEP); we now have a decent,
fcafd43
    easy-to-use non-textbook RSA implementation
fcafd43
  - Added PKCS#1 signature schemes (v1.5 and PSS); v1.5 required some
fcafd43
    extensive changes to Hash modules to contain the algorithm-specific ASN.1
fcafd43
    OID, and to that end we now always have a (thin) Python module to hide the
fcafd43
    one in pure C
fcafd43
  - Added 2 standard Key Derivation Functions (PBKDF1 and PBKDF2)
fcafd43
  - Added export/import of RSA keys in OpenSSH and PKCS#8 formats
fcafd43
  - Added password-protected export/import of RSA keys (one old method for
fcafd43
    PKCS#8 PEM only)
fcafd43
  - Added ability to generate RSA key pairs with configurable public
fcafd43
    exponent e
fcafd43
  - Added ability to construct an RSA key pair even if only the private
fcafd43
    exponent d is known, and not p and q
fcafd43
  - Added SHA-2 C source code (fully from Lorenz Quack)
fcafd43
  - Unit tests for all the above
fcafd43
  - Updates to documentation (both inline and in Doc/pycrypt.rst)
fcafd43
  - Minor bug fixes (setup.py and tests)
fcafd43
- Upstream no longer ships python-3-changes.txt
fcafd43
615ac3b
* Sat Jan  7 2012 Paul Howarth <paul@city-fan.org> - 2.4.1-2
615ac3b
- Rebuild with gcc 4.7
615ac3b
5e1a9b9
* Mon Nov  7 2011 Paul Howarth <paul@city-fan.org> - 2.4.1-1
5e1a9b9
- Update to 2.4.1
5e1a9b9
  - Fix "error: Setup script exited with error: src/config.h: No such file or
5e1a9b9
    directory" when installing via easy_install
5e1a9b9
3d93d2a
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.4-2.1
5e1a9b9
- Rebuild with new gmp without compat lib
3d93d2a
5067373
* Tue Oct 25 2011 Paul Howarth <paul@city-fan.org> - 2.4-2
5067373
- Add python3-crypto subpackage (based on patch from Dave Malcolm - #748529)
5067373
f7bc52f
* Mon Oct 24 2011 Paul Howarth <paul@city-fan.org> - 2.4-1
f7bc52f
- Update to 2.4
f7bc52f
  - Python 3 support! PyCrypto now supports every version of Python from 2.1
f7bc52f
    through to 3.2
f7bc52f
  - Timing-attack countermeasures in _fastmath: when built against libgmp
f7bc52f
    version 5 or later, we use mpz_powm_sec instead of mpz_powm, which should
f7bc52f
    prevent the timing attack described by Geremy Condra at PyCon 2011
f7bc52f
  - New hash modules (for Python ≥ 2.5 only): SHA224, SHA384 and SHA512
f7bc52f
  - Configuration using GNU autoconf, which should help fix a bunch of build
f7bc52f
    issues
f7bc52f
  - Support using MPIR as an alternative to GMP
f7bc52f
  - Improve the test command in setup.py, by allowing tests to be performed on
f7bc52f
    a single sub-package or module only
f7bc52f
  - Fix double-decref of "counter" when Cipher object initialization fails
f7bc52f
  - Apply patches from Debian's python-crypto 2.3-3 package:
f7bc52f
    - fix-RSA-generate-exception.patch
f7bc52f
    - epydoc-exclude-introspect.patch
f7bc52f
    - no-usr-local.patch
f7bc52f
  - Fix launchpad bug #702835: "Import key code is not compatible with GMP
f7bc52f
    library"
f7bc52f
  - More tests, better documentation, various bugfixes
f7bc52f
- Update patch for imposing our own compiler optimization flags
f7bc52f
- Drop lib64 patch, no longer needed
f7bc52f
- No longer need to fix up permissions and remove shellbangs
f7bc52f
6e2e72e
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 2.3-5.1
f7bc52f
- Rebuild with new gmp
6e2e72e
dd5125f
* Wed May 11 2011 Paul Howarth <paul@city-fan.org> - 2.3-5
dd5125f
- Upstream rolled new tarball with top-level directory restored
dd5125f
- Nobody else likes macros for commands
dd5125f
4316659
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
4316659
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4316659
Jesse Keating 7d08ba5
* Wed Sep 29 2010 jkeating - 2.3-3
Jesse Keating 7d08ba5
- Rebuilt for gcc bug 634757
Jesse Keating 7d08ba5
7df176f
* Fri Sep 24 2010 David Malcolm <dmalcolm@redhat.com> - 2.3-2
f7bc52f
- Add "-fno-strict-aliasing" to compilation flags
7df176f
b05e574
* Fri Aug 27 2010 Paul Howarth <paul@city-fan.org> - 2.3-1
b05e574
- Update to 2.3
b05e574
  - Fix NameError when attempting to use deprecated getRandomNumber() function
b05e574
  - _slowmath: Compute RSA u parameter when it's not given to RSA.construct;
b05e574
    this makes _slowmath behave the same as _fastmath in this regard
b05e574
  - Make RSA.generate raise a more user-friendly exception message when the
b05e574
    user tries to generate a bogus-length key
b05e574
- Add -c option to %%setup because upstream tarball has dropped the top-level
b05e574
  directory
b05e574
- Run benchmark as part of %%check if we have python 2.4 or later
b05e574
- BR: python2-devel rather than just python-devel
b05e574
- Add patch to make sure we can find libgmp in 64-bit multilib environments
b05e574
6e1e1b3
* Tue Aug  3 2010 Paul Howarth <paul@city-fan.org> - 2.2-1
6e1e1b3
- Update to 2.2
6e1e1b3
  - Deprecated Crypto.Util.number.getRandomNumber()
6e1e1b3
  - It's been replaced by getRandomNBitInteger and getRandomInteger
6e1e1b3
  - Better isPrime() and getPrime() implementations
6e1e1b3
  - getStrongPrime() implementation for generating RSA primes
6e1e1b3
  - Support for importing and exporting RSA keys in DER and PEM format
6e1e1b3
  - Fix PyCrypto when floor division (python -Qnew) is enabled
6e1e1b3
  - When building using gcc, use -std=c99 for compilation
6e1e1b3
- Update optflags patch
6e1e1b3
e1b37c3
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.0-2
e1b37c3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
e1b37c3
8e2c78d
* Tue Feb 16 2010 Paul Howarth <paul@city-fan.org> - 2.1.0-1
8e2c78d
- Update to 2.1.0 (see ChangeLog for details)
8e2c78d
- Remove patches (no longer needed)
8e2c78d
- Use new upstream URLs
8e2c78d
- Upstream has replaced LICENSE with LEGAL/ and COPYRIGHT
8e2c78d
- Clarify that license is mostly Public Domain, partly Python
8e2c78d
- Add %%check section and run the test suite in it
8e2c78d
- Remove upstream's fiddling with compiler optimization flags so we get
8e2c78d
  usable debuginfo
8e2c78d
- Filter out unwanted provides for python shared objects
8e2c78d
- Tidy up egg-info handling
8e2c78d
- Simplify %%files list
8e2c78d
- Pacify rpmlint as much as is reasonable
8e2c78d
- Add dist tag
8e2c78d
c042095
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-19
c042095
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c042095
4d97d94
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-18
4d97d94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4d97d94
966c970
* Fri Feb 13 2009 Stewart Adam <s.adam at diffingo.com> - 2.0.1-17
3491ecd
- Use patches in upstream git to fix #484473
3491ecd
966c970
* Fri Feb 13 2009 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.0.1-16.1
34bd83b
- add patch to fix #485298 / CVE-2009-0544
34bd83b
0fcc524
* Sat Feb 7 2009 Stewart Adam <s.adam at diffingo.com> - 2.0.1-15.1
0fcc524
- Oops, actually apply the patch
0fcc524
- Modify patch so modules remain compatible with PEP 247
0fcc524
f7ff1fe
* Sat Feb 7 2009 Stewart Adam <s.adam at diffingo.com> - 2.0.1-15
f7ff1fe
- Add patch to hashlib instead of deprecated md5 and sha modules (#484473)
f7ff1fe
d02da07
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.1-14.1
d02da07
- Rebuild for Python 2.6
d02da07
0e2cbb5
* Sun May 04 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.0.1-13
0e2cbb5
- provide pycrypto
0e2cbb5
20b818a
* Sat Feb 09 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.0.1-12
20b818a
- rebuilt
20b818a
a391e18
* Fri Jan 04 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.0.1-11
a391e18
- egg-info file in python_sitearch and not in python_sitelib
a391e18
f86636c
* Fri Jan 04 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.0.1-10
f86636c
- ship egg-file
f86636c
b47b532
* Tue Aug 21 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.0.1-9
b47b532
- Remove the old and outdated python-abi hack
b47b532
75e47dc
* Fri Aug 03 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info>
75e47dc
- Update License field due to the "Licensing guidelines changes"
75e47dc
ea90e2c
* Mon Jun 04 2007 David Woodhouse <dwmw2@infradead.org> - 2.0.1-8
ea90e2c
- Fix libdir handling so it works on more arches than x86_64
ea90e2c
970b758
* Wed Apr 18 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-7
970b758
- Fix typo
970b758
970b758
* Wed Apr 18 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-6
67c24c3
- Remove dist
67c24c3
- rebuild, because the older version was much bigger, as it was build when
67c24c3
  distutils was doing static links of libpython
67c24c3
cf6d2b4
* Sat Dec 09 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-5
cf6d2b4
- Rebuild for python 2.5
cf6d2b4
b26796d
* Thu Sep 07 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-4
b26796d
- Don't ghost pyo files (#205408)
b26796d
883c6bb
* Tue Aug 29 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-3
883c6bb
- Rebuild for Fedora Extras 6
883c6bb
883c6bb
* Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.0.1-2
e2d1539
- Rebuild for Fedora Extras 5
e2d1539
7b95cf4
* Wed Aug 17 2005 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0.1-1
7b95cf4
- Update to 2.0.1
7b95cf4
- Use Dist
88a061a
- Drop python-crypto-64bit-unclean.patch, similar patch was applied
7b95cf4
  upstream
7b95cf4
7c598f6
* Thu May 05 2005 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-4
7c598f6
- add python-crypto-64bit-unclean.patch (#156173)
7c598f6
Seth Vidal fbdcb7b
* Mon Mar 21 2005 Seth Vidal <skvidal at phy.duke.edu> - 0:2.0-3
Seth Vidal fbdcb7b
- iterate release for build on python 2.4 based systems
Seth Vidal fbdcb7b
7563796
* Sat Dec 18 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-2
7563796
- Fix build on x86_64: use python_sitearch for files and patch source
52aa704
  to find gmp
7563796
cvsextras 04247e3
* Thu Aug 26 2004 Thorsten Leemhuis <fedora at leemhuis dot info> - 0:2.0-0.fdr.1
cvsextras 04247e3
- Update to 2.00
cvsextras 04247e3
cvsextras 04247e3
* Fri Aug 13 2004 Ville Skytta <ville.skytta at iki.fi> - 0:1.9-0.fdr.6.a6
cvsextras aa0934e
- Don't use get_python_version(), it's available in Python >= 2.3 only.
cvsextras aa0934e
cvsextras 04247e3
* Thu Aug 12 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.5.a6
cvsextras aa0934e
- Own dir python_sitearch/Crypto/
cvsextras aa0934e
cvsextras 04247e3
* Wed Aug 11 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.4.a6
cvsextras aa0934e
- Match python spec template more
cvsextras aa0934e
cvsextras 04247e3
* Sat Jul 17 2004 Thorsten Leemhuis <fedora at leemhuis dot info> 0:1.9-0.fdr.3.a6
cvsextras aa0934e
- Own _libdir/python/site-packages/Crypto/
cvsextras aa0934e
cvsextras aa0934e
* Wed Mar 24 2004 Panu Matilainen <pmatilai@welho.com> 0.3.2-0.fdr.2.a6
cvsextras aa0934e
- generate .pyo files during install
cvsextras aa0934e
- require exact version of python used to build the package
cvsextras aa0934e
- include more docs + demos
cvsextras aa0934e
- fix dependency on /usr/local/bin/python
cvsextras aa0934e
- use fedora.us style buildroot
cvsextras aa0934e
- buildrequires gmp-devel
cvsextras aa0934e
- use description from README
cvsextras aa0934e
cvsextras aa0934e
* Sun Jan 11 2004 Ryan Boder <icanoop@bitwiser.org>  0.3.2-0.fdr.1.a6
cvsextras aa0934e
- Initial build.
cvsextras aa0934e