forked from pool/python-pyOpenSSL
Accepting request 227513 from home:mvyskocil:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/227513 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=28
This commit is contained in:
committed by
Git OBS Bridge
parent
b2a771095c
commit
859b1d46e6
@@ -17,31 +17,46 @@
|
||||
|
||||
|
||||
Name: python-pyOpenSSL
|
||||
Version: 0.13.1
|
||||
Version: 0.14
|
||||
Release: 0
|
||||
Url: http://launchpad.net/pyopenssl
|
||||
Url: https://github.com/pyca/pyopenssl
|
||||
Summary: Python wrapper module around the OpenSSL library
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
||||
Patch0: bug-lp-1265482.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python-cryptography >= 0.2
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-Sphinx
|
||||
|
||||
Requires: python-cryptography >= 0.2
|
||||
|
||||
Provides: pyOpenSSL = %{version}
|
||||
Provides: python-openssl = %{version}
|
||||
Obsoletes: python-openssl < %{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%endif
|
||||
|
||||
%description
|
||||
High-level wrapper around a subset of the OpenSSL library, includes
|
||||
* SSL.Connection objects, wrapping the methods of Python's portable
|
||||
sockets
|
||||
* Callbacks written in Python
|
||||
* Extensive error-handling mechanism, mirroring OpenSSL's error codes
|
||||
... and much more ;)
|
||||
pyOpenSSL is a set of Python bindings for OpenSSL. It includes some low-level
|
||||
cryptography APIs but is primarily focused on providing an API for using the
|
||||
TLS protocol from Python.
|
||||
|
||||
pyOpenSSL is now a pure-Python project with a dependency on a new project,
|
||||
cryptography (<https://github.com/pyca/cryptography>), which provides (among
|
||||
other things) a cffi-based interface to OpenSSL.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/HTML
|
||||
|
||||
%description doc
|
||||
Provides documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyOpenSSL-%{version}
|
||||
@@ -50,12 +65,20 @@ High-level wrapper around a subset of the OpenSSL library, includes
|
||||
%build
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README TODO examples
|
||||
%{python_sitearch}/*
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc LICENSE README TODO
|
||||
%{python_sitelib}/OpenSSL/
|
||||
%{python_sitelib}/pyOpenSSL-0.14-py*.egg-info/
|
||||
|
||||
%files doc
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc build/sphinx/html/
|
||||
%doc examples/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user