]>
Commit | Line | Data |
---|---|---|
297ff293 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %define module keyczar | |
6 | Summary: Toolkit for safe and simple cryptography | |
7 | Name: python-%{module} | |
8 | Version: 0.71c | |
9 | Release: 1 | |
10 | License: Apache v2.0 | |
11 | Group: Development/Languages | |
12 | Source0: http://keyczar.googlecode.com/files/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 57154b1e8ad3f59e2c8296d5d5a516eb | |
14 | URL: http://www.keyczar.org/ | |
15 | BuildRequires: python-Crypto | |
16 | BuildRequires: python-devel | |
17 | BuildRequires: python-pyasn1 | |
18 | BuildRequires: rpm-pythonprov | |
19 | BuildRequires: rpmbuild(macros) >= 1.219 | |
20 | Requires: python-Crypto | |
21 | Requires: python-pyasn1 | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Keyczar is an open source cryptographic toolkit designed to make it | |
27 | easier and safer for developers to use cryptography in their | |
28 | applications. Keyczar supports authentication and encryption with both | |
29 | symmetric and asymmetric keys. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | rm -r python_keyczar.egg-info | |
34 | ||
35 | %build | |
36 | %{__python} setup.py build | |
37 | ||
38 | %if %{with tests} | |
39 | cd tests/keyczar_tests | |
40 | PYTHONPATH=$PYTHONPATH:../../src/ ./alltests.py | |
41 | %endif | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | %{__python} setup.py install \ | |
46 | --skip-build \ | |
47 | --optimize=2 \ | |
48 | --root=$RPM_BUILD_ROOT | |
49 | ||
50 | %py_postclean | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc README LICENSE doc/pycrypt.pdf | |
58 | %{py_sitescriptdir}/keyczar | |
59 | %{py_sitescriptdir}/python_keyczar-*.egg-info |