From 6ff7586c762c83a0831992847f6c85042b3d4ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 13 Feb 2019 00:53:48 +0100 Subject: [PATCH] https://fedoraproject.org/wiki/Changes/Python_Extension_Flags --- rpy.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/rpy.spec b/rpy.spec index 206912b..296b77e 100644 --- a/rpy.spec +++ b/rpy.spec @@ -63,15 +63,13 @@ converted to Python exceptions. %setup -q -n %{srcname}2-%{version} %build -# %%py2_build -# %%py3_build - # Temporary workaround to fix a bug in R # see https://stat.ethz.ch/pipermail/r-devel/2016-December/073548.html +export CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %if %{python2} -CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %{__python2} setup.py build +%py2_build %endif -CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %{__python3} setup.py build +%py3_build %install %if %{python2} @@ -84,12 +82,12 @@ CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %{__python3} setup.py build %if %{python2} %files -n python2-%{srcname} %doc AUTHORS NEWS PKG-INFO -%{python2_sitearch}/ +%{python2_sitearch}/%{srcname}* %endif %files -n python3-%{srcname} %doc AUTHORS NEWS PKG-INFO -%{python3_sitearch}/ +%{python3_sitearch}/%{srcname}* %changelog