]> git.pld-linux.org Git - packages/python-cffi.git/blobdiff - python-cffi.spec
go back to last python2 version (1.15.1) and disable python3 here
[packages/python-cffi.git] / python-cffi.spec
index 2eb409ace83307c169761c2c0967b6137697e446..9bea5864a3b34e9eaa522cb95ceefc3014515ad6 100644 (file)
@@ -1,37 +1,42 @@
 #
 # Conditional build:
 %bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with    python3 # CPython 3.x module
 %bcond_without doc     # Sphinx based documentation
 %bcond_without tests   # unit tests
 #
 Summary:       Foreign Function Interface for Python 2 calling C code
 Summary(pl.UTF-8):     Interfejs funkcji obcych (FFI) dla Pythona 2 wywołującego kod w C
 Name:          python-cffi
-Version:       1.14.0
+Version:       1.15.1
 Release:       2
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/cffi/
 Source0:       https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
-# Source0-md5: 74845f8d2b7b583dd9a3574f402edf39
+# Source0-md5: f493860a6e98cd0c4178149568a6b4f6
 URL:           http://cffi.readthedocs.org/
 BuildRequires: libffi-devel >= 3
 BuildRequires: pkgconfig
 %if %{with python2}
 BuildRequires: python >= 1:2.6
 BuildRequires: python-devel >= 1:2.6
+BuildRequires: python-setuptools
 %if %{with tests}
 BuildRequires: python-pycparser
 BuildRequires: python-pytest
+BuildRequires: rpm-build >= 4.6
+BuildRequires: virtualenv
 %endif
 %endif
 %if %{with python3}
 BuildRequires: python3 >= 1:3.2
 BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-pycparser
 BuildRequires: python3-pytest
+BuildRequires: virtualenv
 %endif
 %endif
 BuildRequires: rpm-pythonprov
@@ -82,9 +87,7 @@ Ten pakiet zawiera moduł Pythona 3.
 Summary:       API documentation for Python CFFI module
 Summary(pl.UTF-8):     Dokumentacja API modułu Pythona CFFI
 Group:         Documentation
-%if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
-%endif
 
 %description apidocs
 API documentation for Python CFFI module.
@@ -100,8 +103,9 @@ Dokumentacja API modułu Pythona CFFI.
 %py_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd):$(echo $(pwd)/build-2/lib.linux-*) \
-py.test-2 c testing
+%{__python} -m pytest c testing
 %endif
 %endif
 
@@ -109,8 +113,9 @@ py.test-2 c testing
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd):$(echo $(pwd)/build-3/lib.linux-*) \
-py.test-3 c testing
+%{__python3} -m pytest c testing
 %endif
 %endif
 
This page took 0.033285 seconds and 4 git commands to generate.