1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
%define module Crypto
Summary: Python Cryptography Toolkit
Summary(pl): Kryptograficzny przybornik dla języka Python
Name: python-%{module}
Version: 2.0
Release: 4
License: Free
Source0: http://www.amk.ca/files/python/crypto/pycrypto-%{version}.tar.gz
# Source0-md5: 55f9875c554ede75ad605d2c7504d94f
URL: http://www.amk.ca/python/code/crypto.html
Group: Development/Languages/Python
%pyrequires_eq python-modules
BuildRequires: python
BuildRequires: python-devel >= 2.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
The Toolkit is a collection of cryptographic algorithms and protocols,
implemented for use from Python. Among the contents of the package:
- hash functions: MD2, MD4, RIPEMD
- 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)
%description -l pl
Ten przybornik jest zbiorem kryptograficznych algorytmów i protokołów
zaimplementowanych dla języka Python. Pakiet zawiera między innymi:
- funkcje haszujące: MD2, MD4, RIPEMD
- blokowe algorytmy szyfrujące: AES,ARC2, Blowfish, CAST, DES, Triple-DES,
IDEA, RC5
- strumieniowe algorytmu szyfrujące: ARC4, zwykły XOR
- algorytmy z kluczem publicznym: RSA, DSA,ElGamal, qNEW
- protokoły: przekształcenia wszystko-albo-nic, chaffing/winnowing
- inne: RFC1751 moduł do konwersji kluczy 128 bitowych w zbiory słów
angielskich, test liczb pierwszych
- programy demo (aktualnie odrobinę starych)
%prep
%setup -q -n pycrypto-%{version}
%build
CFLAGS="%{rpmcflags}"
export CFLAGS
python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_sitedir}
python setup.py install \
--root=$RPM_BUILD_ROOT --optimize=2
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc ACKS ChangeLog README TODO Doc Demo
%dir %{py_sitedir}/%{module}
%{py_sitedir}/%{module}/*.py[co]
%dir %{py_sitedir}/%{module}/Cipher
%attr(755,root,root) %{py_sitedir}/%{module}/Cipher/*.so
%{py_sitedir}/%{module}/Cipher/*.py[co]
%dir %{py_sitedir}/%{module}/Hash
%attr(755,root,root) %{py_sitedir}/%{module}/Hash/*.so
%{py_sitedir}/%{module}/Hash/*.py[co]
%dir %{py_sitedir}/%{module}/Protocol
%{py_sitedir}/%{module}/Protocol/*.py[co]
%dir %{py_sitedir}/%{module}/PublicKey
%{py_sitedir}/%{module}/PublicKey/*.py[co]
%dir %{py_sitedir}/%{module}/Util
%{py_sitedir}/%{module}/Util/*.py[co]
|