Use make macros

Instead of the plain %__make, use %make_build and %make_install
This commit is contained in:
Timm Bäder 2021-05-05 12:00:22 +02:00 committed by Mike FABIAN
parent 5e884906b6
commit 34ce198f63

View File

@ -57,12 +57,12 @@ the functionality of the installed %{name} package.
%build
export PYTHON=%{__python3}
%configure --disable-static --disable-additional --enable-installed-tests
%__make %{?_smp_mflags}
%make_build
%install
%__rm -rf $RPM_BUILD_ROOT
export PYTHON=%{__python3}
%__make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install pkgconfigdir=%{_datadir}/pkgconfig
%make_install NO_INDEX=true pkgconfigdir=%{_datadir}/pkgconfig
%py_byte_compile %{python3} /usr/share/ibus-table/engine
%py_byte_compile %{python3} /usr/share/ibus-table/setup