]>
Commit | Line | Data |
---|---|---|
bf0fa8a4 MK |
1 | %define module cryptkit |
2 | Summary: Small, fast cryptographic toolkit for python | |
5a3207b4 | 3 | Summary(pl.UTF-8): Mały i szybki zbiór narzędzi kryptograficznych dla pythona |
bf0fa8a4 MK |
4 | Name: python-%{module} |
5 | Version: 0.9 | |
5a3207b4 | 6 | Release: 1 |
bf0fa8a4 MK |
7 | License: BSD |
8 | Group: Development/Languages/Python | |
9 | Source0: http://dl.sourceforge.net/project/cryptkit/_cryptkit/Complete%20Kit/cryptkit-%{version}.tar.gz | |
10 | # Source0-md5: 77e4693a153c31170e9ef6f4e29819ff | |
11 | URL: http://sourceforge.net/projects/cryptkit/ | |
12 | BuildRequires: python-devel | |
13 | BuildRequires: rpm-pythonprov | |
14 | # if py_postclean is used | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | #Requires: python-libs | |
17 | Requires: python-modules | |
18 | # BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | CryptKit is a small, fast cryptographic toolkit for python. It | |
23 | implements Rijndael(AES), SHA 256, Elliptic Curve PKI, Diffie-Hellman | |
24 | key exchange and Nyberg-Ruppel signature/verification. Comprehensive | |
25 | enough to provide a secure socket alternative to SSL | |
26 | ||
27 | %description -l pl.UTF-8 | |
5a3207b4 MK |
28 | CryptKit to mały, szybki zbiór narzędzi kryptograficznych dla |
29 | pythona. Implementuje Rijndael(AES), SHA 256, kryptografię krzywych | |
30 | eliptycznych, wymianę kluczy Diffie-Hellman i sytem Nyberg-Ruppel. | |
31 | Wystarczająco jasny aby być alternatywą dla SSL. | |
bf0fa8a4 MK |
32 | |
33 | %prep | |
34 | %setup -q -n %{module}-%{version} | |
35 | ||
36 | %build | |
37 | export CFLAGS="%{rpmcflags}" | |
38 | %{__python} setup.py build | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | %{__python} setup.py install \ | |
43 | --optimize=2 \ | |
44 | --root=$RPM_BUILD_ROOT | |
45 | ||
46 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
47 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
48 | %py_postclean | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | #%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
56 | # %{py_sitedir}/*.py[co] | |
57 | # %{py_sitescriptdir}/%{module} | |
58 | %attr(755,root,root) %{py_sitedir}/*.so | |
59 | %{py_sitedir}/aes | |
60 | %{py_sitedir}/cryptsock | |
61 | %{py_sitedir}/ecc | |
62 | %{py_sitedir}/entropy | |
63 | %{py_sitedir}/sha256 | |
64 | %if "%{py_ver}" > "2.4" | |
65 | %{py_sitedir}/TEMPLATE-*.egg-info | |
66 | %endif |