]>
Commit | Line | Data |
---|---|---|
d6a1b263 MG |
1 | %define module pyOpenSSL |
2 | Summary: Binding of OpenSSL for Python | |
f91aab6a | 3 | Summary(pl.UTF-8): Interfejs OpenSSL dla Pythona |
d6a1b263 | 4 | Name: python-%{module} |
8043cd40 | 5 | Version: 0.6 |
691ea7ee | 6 | Release: 3 |
d6a1b263 MG |
7 | License: LGPL |
8 | Group: Libraries/Python | |
9 | Source0: http://dl.sourceforge.net/pyopenssl/%{module}-%{version}.tar.gz | |
8043cd40 | 10 | # Source0-md5: 6200b71d3eb294a312d52c4825fc71c5 |
d6a1b263 | 11 | URL: http://pyopenssl.sourceforge.net/ |
386d1028 | 12 | BuildRequires: lynx |
134d033f | 13 | BuildRequires: openssl-devel >= 0.9.7d |
ad74f233 | 14 | BuildRequires: python-devel >= 1:2.5 |
d6a1b263 | 15 | BuildRequires: tetex-latex |
e7ad74e2 | 16 | BuildRequires: tetex-metafont |
3380ab26 | 17 | %pyrequires_eq python-modules |
e5d1f0aa | 18 | Obsoletes: python-OpenSSL |
691ea7ee AM |
19 | Obsoletes: python-pyOpenSSL-doc |
20 | Obsoletes: python-pyOpenSSL-doc-html | |
d6a1b263 MG |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
2f049848 | 24 | Python interface to the OpenSSL library. |
d6a1b263 | 25 | |
f91aab6a | 26 | %description -l pl.UTF-8 |
2f049848 | 27 | Interfejs Pythona do biblioteki OpenSSL. |
d6a1b263 | 28 | |
d6a1b263 MG |
29 | %package examples |
30 | Summary: Examples for pyOpenSSL module | |
f91aab6a | 31 | Summary(pl.UTF-8): Przykłady do modułu pyOpenSSL |
d6a1b263 MG |
32 | Group: Libraries/Python |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description examples | |
36 | This package contains example files for pyOpenSSL Python module. | |
37 | ||
f91aab6a JR |
38 | %description examples -l pl.UTF-8 |
39 | Pakiet zawierający przykładowe skrypty dla modułu Pythona pyOpenSSL. | |
d6a1b263 MG |
40 | |
41 | %prep | |
42 | %setup -q -n %{module}-%{version} | |
d6a1b263 MG |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
d6a1b263 MG |
46 | install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}} |
47 | ||
48 | python setup.py install \ | |
49 | --root=$RPM_BUILD_ROOT \ | |
50 | --install-lib=%{py_sitedir} \ | |
51 | --optimize=2 | |
52 | ||
53 | find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm {} \; | |
54 | ||
55 | cp -ra examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
56 | ||
d6a1b263 MG |
57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
691ea7ee | 62 | %doc README ChangeLog TODO doc/pyOpenSSL.{ps,txt} |
386d1028 | 63 | %dir %{py_sitedir}/OpenSSL |
d6a1b263 MG |
64 | %attr(755,root,root) %{py_sitedir}/OpenSSL/*.so |
65 | %{py_sitedir}/OpenSSL/*.py[oc] | |
691ea7ee | 66 | %{py_sitedir}/*.egg-info |
d6a1b263 MG |
67 | |
68 | %files examples | |
69 | %defattr(644,root,root,755) | |
70 | %{_examplesdir}/%{name}-%{version} |