Use make_build macro instead of make (thanks to tstellar)

This commit is contained in:
Riccardo Schirone 2020-07-22 09:23:38 +02:00
parent e2d59256dc
commit 08c8b2840e

View File

@ -1,6 +1,6 @@
Name: capstone
Version: 4.0.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A lightweight multi-platform, multi-architecture disassembly framework
%global gituser aquynh
@ -132,7 +132,7 @@ The %{name}-java package contains java bindings for %{name}.
#DESTDIR="%{buildroot}"
V=1 CFLAGS="%{optflags}" \
PREFIX="%{_prefix}" LIBDIRARCH="%{_lib}" INCDIR="%{_includedir}" \
make PYTHON2=%{__python2} PYTHON3=%{__python3} %{?_smp_mflags}
%make_build PYTHON2=%{__python2} PYTHON3=%{__python3}
# Fix pkgconfig file
sed -i 's;%{buildroot};;' capstone.pc
@ -155,9 +155,9 @@ popd
# build java bindings needs some python
pushd bindings/java
%if 0%{?with_python3}
make PYTHON2=%{__python3} PYTHON3=%{__python3} CFLAGS="%{optflags}" # %{?_smp_mflags} parallel seems broken
%make_build PYTHON2=%{__python3} PYTHON3=%{__python3} CFLAGS="%{optflags}" # %{?_smp_mflags} parallel seems broken
%else
make PYTHON2=%{__python2} PYTHON3=%{__python2} CFLAGS="%{optflags}" # %{?_smp_mflags} parallel seems broken
%make_build PYTHON2=%{__python2} PYTHON3=%{__python2} CFLAGS="%{optflags}" # %{?_smp_mflags} parallel seems broken
%endif
popd
@ -235,6 +235,9 @@ install -D -p -m 0644 bindings/java/%{name}.jar %{buildroot}/%{_javadir}/%{name
%{_javadir}/
%changelog
* Wed Jul 22 2020 Riccardo Schirone <rschirone91@gmail.com> - 4.0.2-2
- Use make_build macro instead of make (thanks to tstellar)
* Mon Jul 20 2020 Riccardo Schirone <rschirone91@gmail.com> - 4.0.2-1
- Rebase to upstream version 4.0.2