]> git.pld-linux.org Git - packages/python-pyOpenSSL.git/blame - python-pyOpenSSL.spec
- converted to UTF-8
[packages/python-pyOpenSSL.git] / python-pyOpenSSL.spec
CommitLineData
d6a1b263
MG
1%define module pyOpenSSL
2Summary: Binding of OpenSSL for Python
f91aab6a 3Summary(pl.UTF-8): Interfejs OpenSSL dla Pythona
d6a1b263 4Name: python-%{module}
8043cd40 5Version: 0.6
691ea7ee 6Release: 3
d6a1b263
MG
7License: LGPL
8Group: Libraries/Python
9Source0: http://dl.sourceforge.net/pyopenssl/%{module}-%{version}.tar.gz
8043cd40 10# Source0-md5: 6200b71d3eb294a312d52c4825fc71c5
d6a1b263 11URL: http://pyopenssl.sourceforge.net/
386d1028 12BuildRequires: lynx
134d033f 13BuildRequires: openssl-devel >= 0.9.7d
ad74f233 14BuildRequires: python-devel >= 1:2.5
d6a1b263 15BuildRequires: tetex-latex
e7ad74e2 16BuildRequires: tetex-metafont
3380ab26 17%pyrequires_eq python-modules
e5d1f0aa 18Obsoletes: python-OpenSSL
691ea7ee
AM
19Obsoletes: python-pyOpenSSL-doc
20Obsoletes: python-pyOpenSSL-doc-html
d6a1b263
MG
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
2f049848 24Python interface to the OpenSSL library.
d6a1b263 25
f91aab6a 26%description -l pl.UTF-8
2f049848 27Interfejs Pythona do biblioteki OpenSSL.
d6a1b263 28
d6a1b263
MG
29%package examples
30Summary: Examples for pyOpenSSL module
f91aab6a 31Summary(pl.UTF-8): Przykłady do modułu pyOpenSSL
d6a1b263
MG
32Group: Libraries/Python
33Requires: %{name} = %{version}-%{release}
34
35%description examples
36This package contains example files for pyOpenSSL Python module.
37
f91aab6a
JR
38%description examples -l pl.UTF-8
39Pakiet 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
45rm -rf $RPM_BUILD_ROOT
d6a1b263
MG
46install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
47
48python setup.py install \
49 --root=$RPM_BUILD_ROOT \
50 --install-lib=%{py_sitedir} \
51 --optimize=2
52
53find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm {} \;
54
55cp -ra examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56
d6a1b263
MG
57%clean
58rm -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}
This page took 0.07217 seconds and 4 git commands to generate.