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