forked from pool/python-pyOpenSSL
Accepting request 396253 from home:matejcik:branches:devel:languages:python
- added %check section with testsuite - skip-networked-test.patch - mark a test as networked so that we can specify non-network test run - rsa128-i586.patch - sidestep a crasher bug on 32bit platforms by generating reasonably-sized RSA keys instead of small 128bit ones OBS-URL: https://build.opensuse.org/request/show/396253 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=34
This commit is contained in:
committed by
Git OBS Bridge
parent
74f5a4af4c
commit
fdb9f83f9d
@@ -25,12 +25,16 @@ 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
|
||||
Patch1: skip-networked-test.patch
|
||||
Patch2: rsa128-i586.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-cryptography >= 0.2
|
||||
BuildRequires: python-cryptography >= 1.3.1
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python-cryptography >= 0.2
|
||||
Requires: python-cryptography >= 1.3.1
|
||||
Provides: pyOpenSSL = %{version}
|
||||
Provides: python-openssl = %{version}
|
||||
Obsoletes: python-openssl < %{version}
|
||||
@@ -59,6 +63,8 @@ Provides documentation for %{name}.
|
||||
%prep
|
||||
%setup -q -n pyOpenSSL-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
@@ -68,6 +74,11 @@ PYTHONPATH="build/lib" python setup.py build_sphinx && rm build/sphinx/html/.bui
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%check
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export PYTHONPATH=src
|
||||
py.test -m "not network"
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc LICENSE *.rst
|
||||
|
Reference in New Issue
Block a user