use %make_build/%make_install

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-01-20 21:46:14 +01:00
parent 418a49d767
commit be9b090778

View File

@ -72,12 +72,12 @@ for printing using TeX.
--with-external-libintl-perl \
--with-external-Unicode-EastAsianWidth \
--disable-perl-xs
make %{?_smp_mflags}
%make_build
%install
mkdir -p ${RPM_BUILD_ROOT}/sbin
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
%make_install
mkdir -p $RPM_BUILD_ROOT%{tex_texinfo}
install -p -m644 doc/texinfo.tex doc/txi-??.tex $RPM_BUILD_ROOT%{tex_texinfo}
@ -93,7 +93,7 @@ cp %{SOURCE5} $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
%check
export ALL_TESTS=yes
make %{?_smp_mflags} check
%make_build check
%post
if [ -f %{_infodir}/texinfo.gz ]; then # --excludedocs?