Remove build dependency on python2-Cython

This commit is contained in:
Petr Viktorin 2019-07-16 14:40:34 +02:00
parent 6173b37a5d
commit 05dd45637f
1 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@
Name: python-%{shortname}
Version: 3.1.1a1
Release: 15%{?dist}
Release: 16%{?dist}
Summary: Python bindings for OpenGL
License: BSD
URL: https://github.com/mcfletch/pyopengl
@ -30,7 +30,6 @@ BuildRequires: gcc
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-numpy
BuildRequires: python2-Cython
Requires: freeglut
Requires: python2-numpy
%{?python_provide:%python_provide python2-%{shortname}}
@ -100,7 +99,8 @@ sed -i -e 's/from OpenGL.raw.GL.SGIX.async/from OpenGL.raw.GL.SGIX.async_/g' \
%{srcname}-%{version}/OpenGL/GL/SGIX/async_.py
%build
# Delete all Cython generated .c files to force a rebuild
# Delete all Cython generated .c files to force a rebuild in py3_build
# (py2_build then reuses the Cython output)
pushd %{srcname}-accelerate-%{version}/src
for f in *.pyx ; do
rm -f "${f%.pyx}.c"
@ -109,8 +109,8 @@ popd
for dir in %{srcname}-%{version} %{srcname}-accelerate-%{version} ; do
pushd $dir
%py2_build
%py3_build
%py2_build
popd
done
@ -161,6 +161,9 @@ popd
%changelog
* Tue Jul 16 2019 Petr Viktorin <pviktori@redhat.com> - 3.1.1a1-16
- Remove build dependency on python2-Cython
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1a1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild