In the install section, I wanted to install the file built in the build section,
but the build is executed again.
CFLAGS values are not the same, changing compilation options causes rebuild
So, fix it by setting the environment variables the same as build section.
Change-Id: I7b5e7b4e782e22afbfdf5947fd2be94ca13e216a
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
%{_bindir}/python3 setup.py build
%install
+# https://github.com/numpy/numpy/issues/16005
+# if the CFLAGS is not set the same as the build section, the build will be performed again during installation.
+export CFLAGS="%{optflags} -fno-strict-aliasing"
export G_SLICE=always-malloc
%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}