Bump to python3-pycrypto 2.6.1 32/254932/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.231709 accepted/tizen/7.0/unified/20221110.061347 accepted/tizen/7.0/unified/hotfix/20221116.111400 accepted/tizen/unified/20210311.083822 submit/tizen/20210311.004217 submit/tizen_6.5/20211028.163601 tizen_6.5.m2_release tizen_7.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 10 Mar 2021 08:08:56 +0000 (17:08 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 11 Mar 2021 00:24:56 +0000 (09:24 +0900)
Change-Id: Id8cdaf7c35a39f9fab09038a0e2d18f754db5f31
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
lib/Crypto/Random/_UserFriendlyRNG.py
packaging/python3-pycrypto.manifest [new file with mode: 0644]
packaging/python3-pycrypto.spec [new file with mode: 0755]

index 957e006..34e2a31 100644 (file)
@@ -74,7 +74,7 @@ class _EntropyCollector(object):
         self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
 
         # Add the fractional part of time.clock()
-        t = time.clock()
+        t = time.perf_counter()
         self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
 
 
diff --git a/packaging/python3-pycrypto.manifest b/packaging/python3-pycrypto.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-pycrypto.spec b/packaging/python3-pycrypto.spec
new file mode 100755 (executable)
index 0000000..5d32ee5
--- /dev/null
@@ -0,0 +1,45 @@
+Name:           python3-pycrypto
+Version:        2.6.1
+Release:        0
+Url:            http://www.pycrypto.org/
+Summary:        Cryptographic modules for Python
+License:        Public Domain
+Group:          Development/Languages/Python
+Source:         https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
+Source1001:     python3-pycrypto.manifest
+
+BuildRequires:  pkgconfig(python3)
+BuildRequires:  gmp-devel
+
+%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}
+cp %{SOURCE1001} .
+
+%build
+python3 setup.py build
+
+%check
+python3 setup.py test
+
+%install
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+
+%files
+%manifest %{name}.manifest
+%license COPYRIGHT
+%{python3_sitearch}/Crypto/
+%{python3_sitearch}/pycrypto-%{version}-py*.egg-info