From c2c95df9a8e12696a4d9ab4b96e9af27f8f1e02e Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 23 Mar 2015 16:00:08 +0000 Subject: [PATCH] Only build necessary parts for Python2 module. --- hplip.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hplip.spec b/hplip.spec index f0f429e..06310c0 100644 --- a/hplip.spec +++ b/hplip.spec @@ -264,7 +264,7 @@ pushd ../%{py2dir} %configure PYTHON=%{__python2} 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 -make +make libhpmud.la hpmudext.la popd %configure \ @@ -283,7 +283,8 @@ make %install # compat-libs pushd ../%{py2dir} -make install DESTDIR=%{buildroot} PYTHON=%{__python2} +make install-libLTLIBRARIES install-hpmudextLTLIBRARIES \ + DESTDIR=%{buildroot} PYTHON=%{__python2} rm -f %{buildroot}%{python2_sitearch}/*.la popd