This commit is contained in:
parent
32978075cd
commit
6ff7586c76
12
rpy.spec
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user