Only build necessary parts for Python2 module.

This commit is contained in:
Tim Waugh 2015-03-23 16:00:08 +00:00
parent 8b7f3bae70
commit c2c95df9a8

View File

@ -264,7 +264,7 @@ pushd ../%{py2dir}
%configure PYTHON=%{__python2} %configure PYTHON=%{__python2}
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make make libhpmud.la hpmudext.la
popd popd
%configure \ %configure \
@ -283,7 +283,8 @@ make
%install %install
# compat-libs # compat-libs
pushd ../%{py2dir} pushd ../%{py2dir}
make install DESTDIR=%{buildroot} PYTHON=%{__python2} make install-libLTLIBRARIES install-hpmudextLTLIBRARIES \
DESTDIR=%{buildroot} PYTHON=%{__python2}
rm -f %{buildroot}%{python2_sitearch}/*.la rm -f %{buildroot}%{python2_sitearch}/*.la
popd popd