15
0
forked from pool/python-cffi
Sascha Peilicke
2014-04-02 08:15:41 +00:00
committed by Git OBS Bridge
parent 627dbee2e8
commit 15e4c2a51e
3 changed files with 2 additions and 119 deletions

View File

@@ -24,8 +24,6 @@ License: MIT
Group: Development/Languages/Python
Url: http://cffi.readthedocs.org
Source0: http://pypi.python.org/packages/source/c/cffi/cffi-%{version}.tar.gz
#PATCH-FOR-UPSTREAM: integration with setuptools, mvyskocil@suse.com
Patch0: cffi-pytest-integration.patch
BuildRequires: python-devel
BuildRequires: python-setuptools
# Documentation requirements:
@@ -47,7 +45,6 @@ is to provide a convenient and reliable way of calling C code from Python.
%prep
%setup -q -n cffi-%{version}
%patch0 -p1
%build
CFLAGS="%{optflags}" python setup.py build
@@ -56,9 +53,8 @@ python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#mvyskocil: some test assume distutils beeing available, fix that later
#%check
#python setup.py test
%check
PYTHONPATH=%{buildroot}%{python_sitearch} py.test
%files
%defattr(-,root,root,-)