commit python-pycrypto for openSUSE:Factory

2017-05-16 Thread root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2017-05-16 14:29:29

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto"

Tue May 16 14:29:29 2017 rev:18 rq:493100 version:2.6.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2017-01-09 11:52:22.558690117 +0100
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2017-05-16 14:29:31.586876252 +0200
@@ -1,0 +2,11 @@
+Fri May  5 21:50:18 UTC 2017 - toddrme2...@gmail.com
+
+- There was never a python3-crypto so don't provide it.
+
+---
+Mon May  1 16:20:20 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+- Use Pypi source URL.
+
+---



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.8TBT17/_old  2017-05-16 14:29:32.206789167 +0200
+++ /var/tmp/diff_new_pack.8TBT17/_new  2017-05-16 14:29:32.210788604 +0200
@@ -16,6 +16,10 @@
 #
 
 
+%bcond_without tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:   python-pycrypto
 Version:2.6.1
 Release:0
@@ -23,18 +27,20 @@
 Summary:Cryptographic modules for Python
 License:Python-2.0
 Group:  Development/Languages/Python
-Source: 
https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
+Source: 
https://files.pythonhosted.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
 # PATCH-FIX-SUSE: We don't have libgmp5 on SLE11
 Patch0: ignore-fastmath-warning.diff
 Patch1: CVE-2013-7459.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
 BuildRequires:  gmp-devel
-BuildRequires:  python-devel
-Provides:   python-crypto = %{version}
-Obsoletes:  python-crypto < %{version}
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%ifpython2
+Obsoletes:  %{oldpython}-crypto < %{version}
+Provides:   %{oldpython}-crypto = %{version}
 %endif
+%python_subpackages
 
 %description
 The package contains:
@@ -57,15 +63,19 @@
 %patch1 -p1
 
 %build
-CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
+%if %{with tests}
 %check
-python setup.py test
+%python_exec setup.py test
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc ACKS ChangeLog COPYRIGHT README
 %{python_sitearch}/Crypto/




commit python-pycrypto for openSUSE:Factory

2014-04-26 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2014-04-26 10:11:18

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto"

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2013-11-28 07:39:52.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2014-04-26 10:11:20.0 +0200
@@ -1,0 +2,5 @@
+Wed Apr 23 12:28:21 UTC 2014 - rschweik...@suse.com
+
+- Include in SLE 12 (FATE #315990)
+
+---



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.53aUj1/_old  2014-04-26 10:11:20.0 +0200
+++ /var/tmp/diff_new_pack.53aUj1/_new  2014-04-26 10:11:20.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pycrypto
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-pycrypto for openSUSE:Factory

2013-11-27 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2013-11-28 07:39:50

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto"

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2013-06-19 17:05:08.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2013-11-28 07:39:52.0 +0100
@@ -1,0 +2,52 @@
+Wed Nov 27 17:37:14 UTC 2013 - p.drou...@gmail.com
+
+- Update to version 2.6.1
+  * [CVE-2013-1445] Fix PRNG not correctly reseeded in some situations.
+   In previous versions of PyCrypto, the Crypto.Random PRNG exhibits a
+   race condition that may cause forked processes to generate identical
+   sequences of 'random' numbers.
+   This is a fairly obscure bug that will (hopefully) not affect many
+   applications, but the failure scenario is pretty bad.  Here is some
+   sample code that illustrates the problem:
+ from binascii import hexlify
+ import multiprocessing, pprint, time
+ import Crypto.Random
+
+ def task_main(arg):
+ a = Crypto.Random.get_random_bytes(8)
+ time.sleep(0.1)
+ b = Crypto.Random.get_random_bytes(8)
+ rdy, ack = arg
+ rdy.set()
+ ack.wait()
+ return "%s,%s" % (hexlify(a).decode(),
+   hexlify(b).decode())
+
+ n_procs = 4
+ manager = multiprocessing.Manager()
+ rdys = [manager.Event() for i in range(n_procs)]
+ acks = [manager.Event() for i in range(n_procs)]
+ Crypto.Random.get_random_bytes(1)
+ pool = multiprocessing.Pool(processes=n_procs,
+ initializer=Crypto.Random.atfork)
+ res_async = pool.map_async(task_main, zip(rdys, acks))
+ pool.close()
+ [rdy.wait() for rdy in rdys]
+ [ack.set() for ack in acks]
+ res = res_async.get()
+ pprint.pprint(sorted(res))
+ pool.join()
+
+   The output should be random, but it looked like this:
+
+ ['c607803ae01aa8c0,2e4de6457a304b34',
+  'c607803ae01aa8c0,af80d08942b4c987',
+  'c607803ae01aa8c0,b0e4c0853de927c4',
+  'c607803ae01aa8c0,f0362585b3fceba4']
+
+   This release fixes the problem by resetting the rate-limiter when
+   Crypto.Random.atfork() is invoked.  It also adds some tests and a
+   few related comments.
+- Add "-fno-strict-aliasing" to CFLAGS
+
+---

Old:

  pycrypto-2.6.tar.gz

New:

  pycrypto-2.6.1.tar.gz



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.X2Be6c/_old  2013-11-28 07:39:53.0 +0100
+++ /var/tmp/diff_new_pack.X2Be6c/_new  2013-11-28 07:39:53.0 +0100
@@ -17,13 +17,13 @@
 
 
 Name:   python-pycrypto
-Version:2.6
+Version:2.6.1
 Release:0
 Url:http://www.pycrypto.org/
 Summary:Cryptographic modules for Python
 License:Python-2.0
 Group:  Development/Languages/Python
-Source: 
http://pypi.python.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
+Source: 
https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
 # PATCH-FIX-SUSE: We don't have libgmp5 on SLE11
 Patch0: ignore-fastmath-warning.diff
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -55,7 +55,7 @@
 %endif
 
 %build
-CFLAGS="%{optflags}" python setup.py build
+CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}

++ pycrypto-2.6.tar.gz -> pycrypto-2.6.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pycrypto-2.6/ChangeLog new/pycrypto-2.6.1/ChangeLog
--- old/pycrypto-2.6/ChangeLog  2012-05-24 14:55:30.0 +0200
+++ new/pycrypto-2.6.1/ChangeLog2013-10-14 23:38:10.0 +0200
@@ -1,3 +1,55 @@
+2.6.1
+=
+   * [CVE-2013-1445] Fix PRNG not correctly reseeded in some situations.
+
+ In previous versions of PyCrypto, the Crypto.Random PRNG exhibits a
+ race condition that may cause forked processes to generate identical
+ sequences of 'random' numbers.
+
+ This is a fairly obscure bug that will (hopefully) not affect many
+ applications, but the failure scenario is p

commit python-pycrypto for openSUSE:Factory

2013-06-19 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2013-06-19 17:05:07

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto"

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2013-04-24 16:00:31.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2013-06-19 17:05:08.0 +0200
@@ -1,0 +2,5 @@
+Wed Jun 12 15:18:46 UTC 2013 - dmuel...@suse.com
+
+- add ignore-fastmath-warning.diff for SLE11 and older 
+
+---

Old:

  python3-pycrypto.changes
  python3-pycrypto.spec

New:

  ignore-fastmath-warning.diff



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.MURv0n/_old  2013-06-19 17:05:08.0 +0200
+++ /var/tmp/diff_new_pack.MURv0n/_new  2013-06-19 17:05:08.0 +0200
@@ -24,6 +24,8 @@
 License:Python-2.0
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
+# PATCH-FIX-SUSE: We don't have libgmp5 on SLE11
+Patch0: ignore-fastmath-warning.diff
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gmp-devel
 BuildRequires:  python-devel
@@ -48,6 +50,9 @@
 
 %prep
 %setup -q -n pycrypto-%{version}
+%if 0%{?suse_version} < 1120
+%patch0
+%endif
 
 %build
 CFLAGS="%{optflags}" python setup.py build

++ ignore-fastmath-warning.diff ++
--- lib/Crypto/Util/number.py
+++ lib/Crypto/Util/number.py
@@ -52,10 +52,6 @@
 # "not being in the path. _fastmath was found at "+_fm_path)
 _fastmath = None
 
-# You need libgmp v5 or later to get mpz_powm_sec.  Warn if it's not available.
-if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:
-_warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to 
avoid timing attack vulnerability.", PowmInsecureWarning)
-
 # New functions
 from _number_new import *
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-pycrypto for openSUSE:Factory

2013-04-24 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2013-04-24 16:00:27

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto", Maintainer is "radma...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2012-09-06 09:01:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2013-04-24 16:00:31.0 +0200
@@ -1,0 +2,55 @@
+Wed Apr 24 06:56:10 UTC 2013 - highwaystar...@gmail.com
+
+- update to 2.6 
+  * [CVE-2012-2417] Fix LP#985164: insecure ElGamal key generation.
+(thanks: Legrandin)
+
+In the ElGamal schemes (for both encryption and signatures), g is
+supposed to be the generator of the entire Z^*_p group.  However, in
+PyCrypto 2.5 and earlier, g is more simply the generator of a random
+sub-group of Z^*_p.
+
+The result is that the signature space (when the key is used for
+signing) or the public key space (when the key is used for encryption)
+may be greatly reduced from its expected size of log(p) bits, possibly
+down to 1 bit (the worst case if the order of g is 2).
+
+While it has not been confirmed, it has also been suggested that an
+attacker might be able to use this fact to determine the private key.
+
+Anyone using ElGamal keys should generate new keys as soon as practical.
+
+Any additional information about this bug will be tracked at
+https://bugs.launchpad.net/pycrypto/+bug/985164
+
+  * Huge documentation cleanup (thanks: Legrandin).
+
+  * Added more tests, including test vectors from NIST 800-38A
+(thanks: Legrandin)
+
+  * Remove broken MODE_PGP, which never actually worked properly.
+A new mode, MODE_OPENPGP, has been added for people wishing to write
+OpenPGP implementations.  Note that this does not implement the full
+OpenPGP specification, only the "OpenPGP CFB mode" part of that
+specification.
+https://bugs.launchpad.net/pycrypto/+bug/996814
+
+  * Fix: getPrime with invalid input causes Python to abort with fatal error
+https://bugs.launchpad.net/pycrypto/+bug/988431
+
+  * Fix: Segfaults within error-handling paths
+(thanks: Paul Howarth & Dave Malcolm)
+https://bugs.launchpad.net/pycrypto/+bug/934294
+
+  * Fix: Block ciphers allow empty string as IV
+https://bugs.launchpad.net/pycrypto/+bug/997464
+
+  * Fix DevURandomRNG to work with Python3's new I/O stack.
+(thanks: Sebastian Ramacher)
+
+  * Remove automagic dependencies on libgmp and libmpir, let the caller
+disable them using args.
+
+  * Many other minor bug fixes and improvements (mostly thanks to Legrandin)
+
+---
--- /work/SRC/openSUSE:Factory/python-pycrypto/python3-pycrypto.changes 
2012-11-28 14:34:02.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python3-pycrypto.changes
2013-04-24 16:00:31.0 +0200
@@ -1,0 +2,55 @@
+Wed Apr 24 06:55:47 UTC 2013 - highwaystar...@gmail.com
+
+- update to 2.6 
+  * [CVE-2012-2417] Fix LP#985164: insecure ElGamal key generation.
+(thanks: Legrandin)
+
+In the ElGamal schemes (for both encryption and signatures), g is
+supposed to be the generator of the entire Z^*_p group.  However, in
+PyCrypto 2.5 and earlier, g is more simply the generator of a random
+sub-group of Z^*_p.
+
+The result is that the signature space (when the key is used for
+signing) or the public key space (when the key is used for encryption)
+may be greatly reduced from its expected size of log(p) bits, possibly
+down to 1 bit (the worst case if the order of g is 2).
+
+While it has not been confirmed, it has also been suggested that an
+attacker might be able to use this fact to determine the private key.
+
+Anyone using ElGamal keys should generate new keys as soon as practical.
+
+Any additional information about this bug will be tracked at
+https://bugs.launchpad.net/pycrypto/+bug/985164
+
+  * Huge documentation cleanup (thanks: Legrandin).
+
+  * Added more tests, including test vectors from NIST 800-38A
+(thanks: Legrandin)
+
+  * Remove broken MODE_PGP, which never actually worked properly.
+A new mode, MODE_OPENPGP, has been added for people wishing to write
+OpenPGP implementations.  Note that this does not implement the full
+OpenPGP specification, only the "OpenPGP CFB mode" part of that
+specification.
+https://bugs.launchpad.net/pycrypto/+bug/996814
+
+  * Fix: getPrime with invalid input causes Python to abort with fatal error
+https://bugs.launchpad.net/pycrypto/+bug/988431
+
+  * Fix: Segfaults within error-handling 

commit python-pycrypto for openSUSE:Factory

2012-11-28 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2012-11-28 14:34:00

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto", Maintainer is "cth...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python3-pycrypto.changes 
2012-05-29 10:35:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python3-pycrypto.changes
2012-11-28 14:34:02.0 +0100
@@ -1,0 +2,5 @@
+Thu Nov 22 13:47:34 UTC 2012 - toddrme2...@gmail.com
+
+- Removed openSUSE 11.4 spec file workarounds
+
+---



Other differences:
--
++ python3-pycrypto.spec ++
--- /var/tmp/diff_new_pack.PlMiOT/_old  2012-11-28 14:34:03.0 +0100
+++ /var/tmp/diff_new_pack.PlMiOT/_new  2012-11-28 14:34:03.0 +0100
@@ -29,11 +29,6 @@
 BuildRequires:  python3
 BuildRequires:  python3-2to3
 BuildRequires:  python3-devel
-
-%if 0%{?suse_version} <= 1140
-%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-%{!?py3_ver: %global py3_ver %(python3 -c "import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version)")}
-%endif
 Requires:   python(abi) = %{py3_ver}
 
 %description

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-pycrypto for openSUSE:Factory

2012-09-06 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2012-09-06 09:01:38

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto", Maintainer is "cth...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2012-05-29 10:35:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2012-09-06 09:01:42.0 +0200
@@ -1,0 +2,5 @@
+Mon Sep  3 01:20:34 UTC 2012 - jeng...@inai.de
+
+- Make package build on RH6-like systems
+
+---



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.4Vv410/_old  2012-09-06 09:01:44.0 +0200
+++ /var/tmp/diff_new_pack.4Vv410/_new  2012-09-06 09:01:44.0 +0200
@@ -59,9 +59,9 @@
 python setup.py test
 
 %files
-%defattr(-,root,root,-)
+%defattr(-,root,root)
 %doc ACKS ChangeLog COPYRIGHT README
 %{python_sitearch}/Crypto/
-%{python_sitearch}/pycrypto-%{version}-py%{py_ver}.egg-info
+%{python_sitearch}/pycrypto-%{version}-py*.egg-info
 
 %changelog

++ python3-pycrypto.spec ++
--- /var/tmp/diff_new_pack.4Vv410/_old  2012-09-06 09:01:44.0 +0200
+++ /var/tmp/diff_new_pack.4Vv410/_new  2012-09-06 09:01:44.0 +0200
@@ -27,8 +27,8 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gmp-devel
 BuildRequires: python3
-BuildRequires:  python3-devel
 BuildRequires: python3-2to3
+BuildRequires:  python3-devel
 
 %if 0%{?suse_version} <= 1140
 %{!?python3_sitearch: %global python3_sitearch %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
@@ -36,7 +36,6 @@
 %endif
 Requires:   python(abi) = %{py3_ver}
 
-
 %description
 The package contains:
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-pycrypto for openSUSE:Factory

2012-05-29 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2012-05-29 10:35:50

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2012-03-13 09:39:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2012-05-29 10:35:52.0 +0200
@@ -1,0 +2,6 @@
+Thu May 24 03:12:33 UTC 2012 - highwaystar...@gmail.com
+
+- python3 package added 
+- minor spec improvement
+
+---
New Changes file:

--- /dev/null   2012-05-03 01:24:41.895590051 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python3-pycrypto.changes
2012-05-29 10:35:52.0 +0200
@@ -0,0 +1,5 @@
+---
+Thu May 24 03:07:52 UTC 2012 - highwaystar...@gmail.com
+
+- python3-pycrypto package added 
+

New:

  python3-pycrypto.changes
  python3-pycrypto.spec



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.dmERIU/_old  2012-05-29 10:35:54.0 +0200
+++ /var/tmp/diff_new_pack.dmERIU/_new  2012-05-29 10:35:54.0 +0200
@@ -61,6 +61,7 @@
 %files
 %defattr(-,root,root,-)
 %doc ACKS ChangeLog COPYRIGHT README
-%{python_sitearch}/*
+%{python_sitearch}/Crypto/
+%{python_sitearch}/pycrypto-%{version}-py%{py_ver}.egg-info
 
 %changelog

++ python3-pycrypto.spec ++
#
# spec file for package python3-pycrypto
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:   python3-pycrypto
Version:2.5
Release:0
Url:http://www.pycrypto.org/
Summary:Cryptographic modules for Python
License:Python-2.0
Group:  Development/Languages/Python
Source: 
http://pypi.python.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gmp-devel
BuildRequires:  python3
BuildRequires:  python3-devel
BuildRequires:  python3-2to3

%if 0%{?suse_version} <= 1140
%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version)")}
%endif
Requires:   python(abi) = %{py3_ver}


%description
The package contains:

  * Hash functions: MD2, MD4, RIPEMD, SHA256.
  * Block encryption algorithms: AES, ARC2, Blowfish, CAST, DES,
Triple-DES, IDEA, RC5.
  * Stream encryption algorithms: ARC4, simple XOR.
  * Public-key algorithms: RSA, DSA, ElGamal, qNEW.
  * Protocols: All-or-nothing transforms, chaffing/winnowing.
  * Miscellaneous: RFC1751 module for converting 128-key keys into a
set of English words, primality testing.
  * Some demo programs (currently all quite old and outdated).

%prep
%setup -q -n pycrypto-%{version}

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
python3 setup.py test

%files
%defattr(-,root,root,-)
%doc ACKS ChangeLog COPYRIGHT README
%{python3_sitearch}/Crypto/
%{python3_sitearch}/pycrypto-%{version}-py%{py3_ver}.egg-info

%changelog
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-pycrypto for openSUSE:Factory

2012-03-13 Thread h_root
Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2012-03-13 09:38:59

Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and  /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)


Package is "python-pycrypto", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2011-09-23 12:43:08.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes 
2012-03-13 09:39:03.0 +0100
@@ -1,0 +2,52 @@
+Mon Mar 12 21:03:54 UTC 2012 - sasc...@gmx.de
+
+- Update to version 2.5:
+  * Added PKCS#1 encryption schemes (v1.5 and OAEP).  We now have
+a decent, easy-to-use non-textbook RSA implementation.  Yay!
+  * Added PKCS#1 signature schemes (v1.5 and PSS). v1.5 required some
+extensive changes to Hash modules to contain the algorithm specific
+ASN.1 OID. To that end, we now always have a (thin) Python module to
+hide the one in pure C.
+  * Added 2 standard Key Derivation Functions (PBKDF1 and PBKDF2).
+  * Added export/import of RSA keys in OpenSSH and PKCS#8 formats.
+  * Added password-protected export/import of RSA keys (one old method
+for PKCS#8 PEM only).
+  * Added ability to generate RSA key pairs with configurable public
+exponent e.
+  * Added ability to construct an RSA key pair even if only the private
+exponent d is known, and not p and q.
+  * Added SHA-2 C source code (fully from Lorenz Quack).
+  * Unit tests for all the above.
+  * Updates to documentation (both inline and in Doc/pycrypt.rst)
+  * All of the above changes were put together by Legrandin (Thanks!)
+  * Minor bug fixes (setup.py and tests).
+- Changes from version 2.4.1:
+  * Fix "error: Setup script exited with error: src/config.h: No such file or
+directory" when installing via easy_install.  (Sebastian Ramacher)
+- Changes from version 2.4:
+  * Python 3 support!  (Thorsten E. Behrens, Anders Sundman)
+PyCrypto now supports every version of Python from 2.1 through 3.2.
+  * Timing-attack countermeasures in _fastmath: When built against
+libgmp version 5 or later, we use mpz_powm_sec instead of mpz_powm.
+This should prevent the timing attack described by Geremy Condra at
+PyCon 2011:
+
http://blip.tv/pycon-us-videos-2009-2010-2011/pycon-2011-through-the-side-channel-timing-and-implementation-attacks-in-python-4897955
+  * New hash modules (for Python >= 2.5 only): SHA224, SHA384, and
+SHA512 (Frédéric Bertolus)
+  * Configuration using GNU autoconf.  This should help fix a bunch of
+build issues.
+  * Support using MPIR as an alternative to GMP.
+  * Improve the test command in setup.py, by allowing tests to be
+performed on a single sub-package or module only. (Legrandin)
+  * Fix double-decref of "counter" when Cipher object initialisation
+fails (Ryan Kelly)
+  * Apply patches from Debian's python-crypto 2.3-3 package (Jan
+Dittberner, Sebastian Ramacher):
+   - fix-RSA-generate-exception.patch
+   - epydoc-exclude-introspect.patch
+   - no-usr-local.patch
+  * Fix launchpad bug #702835: "Import key code is not compatible with
+GMP library" (Legrandin)
+  * More tests, better documentation, various bugfixes.
+
+---

Old:

  pycrypto-2.3.tar.gz

New:

  pycrypto-2.5.tar.gz



Other differences:
--
++ python-pycrypto.spec ++
--- /var/tmp/diff_new_pack.H7SBFs/_old  2012-03-13 09:39:04.0 +0100
+++ /var/tmp/diff_new_pack.H7SBFs/_new  2012-03-13 09:39:04.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pycrypto
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,22 @@
 #
 
 
-
 Name:   python-pycrypto
-Version:2.3
-Release:1
+Version:2.5
+Release:0
 Url:http://www.pycrypto.org/
 Summary:Cryptographic modules for Python
 License:Python-2.0
 Group:  Development/Languages/Python
 Source: 
http://pypi.python.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
 BuildRequires:  gmp-devel
-%if 0%{?suse_version}
-%py_requires
-%endif
+BuildRequires:  python-devel
 Provides:   python-crypto = %{version}
-#TODO: Change to '<' after next version update:
-Obsoletes:  python-crypto <= %{version}
-%{!?python_sitearch: %global python_sitearch %(%{__p

commit python-pycrypto for openSUSE:Factory

2011-09-01 Thread h_root

Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory
checked in at Thu Sep 1 17:41:05 CEST 2011.




New Changes file:

--- /dev/null   2010-08-26 16:28:41.0 +0200
+++ python-pycrypto/python-pycrypto.changes 2011-09-01 15:05:54.0 
+0200
@@ -0,0 +1,15 @@
+---
+Thu Sep  1 13:04:04 UTC 2011 - sasc...@suse.de
+
+- Set license to Python-2.0, fixes bnc#715456
+
+---
+Wed Aug 31 16:46:21 UTC 2011 - sasc...@gmx.de
+
+- Drop pycrypto-2.1.0-ssize.patch to fix SLE build
+
+---
+Wed Aug 31 16:10:43 UTC 2011 - sasc...@gmx.de
+
+- Initial version, replaces python-crypto
+

calling whatdependson for head-i586


New:

  pycrypto-2.3.tar.gz
  python-pycrypto.changes
  python-pycrypto.spec



Other differences:
--
++ python-pycrypto.spec ++
#
# spec file for package python-pycrypto
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:   python-pycrypto
Version:2.3
Release:1
Url:http://www.pycrypto.org/
Summary:Cryptographic modules for Python
License:Python-2.0
Group:  Development/Languages/Python
Source: 
http://pypi.python.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  gmp-devel
%if 0%{?suse_version}
%py_requires
%endif
Provides:   python-crypto = %{version}
#TODO: Change to '<' after next version update:
Obsoletes:  python-crypto <= %{version}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%description
The package contains:

  * Hash functions: MD2, MD4, RIPEMD, SHA256.
  * Block encryption algorithms: AES, ARC2, Blowfish, CAST, DES,
Triple-DES, IDEA, RC5.
  * Stream encryption algorithms: ARC4, simple XOR.
  * Public-key algorithms: RSA, DSA, ElGamal, qNEW.
  * Protocols: All-or-nothing transforms, chaffing/winnowing.
  * Miscellaneous: RFC1751 module for converting 128-key keys into a
set of English words, primality testing.
  * Some demo programs (currently all quite old and outdated).

%prep
%setup -q -n pycrypto-%{version}
sed -i "1d" lib/Crypto/Util/RFC1751.py # Fix non-executable script

%build
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
python setup.py test

%files
%defattr(-,root,root,-)
%doc ACKS ChangeLog COPYRIGHT README TODO
%{python_sitearch}/*

%changelog





Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org