[hplip] Only build necessary parts for Python2 module.
Tim Waugh
twaugh at fedoraproject.org
Mon Mar 23 16:17:30 UTC 2015
commit c2c95df9a8e12696a4d9ab4b96e9af27f8f1e02e
Author: Tim Waugh <twaugh at redhat.com>
Date: Mon Mar 23 16:00:08 2015 +0000
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
More information about the scm-commits
mailing list