[hplip] Don't provide private python extension libs.

Jiří Popelka jpopelka at fedoraproject.org
Fri Jan 18 15:55:47 UTC 2013


commit 950a57946500f88c432acaa95d68145440555804
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Fri Jan 18 16:54:05 2013 +0100

    Don't provide private python extension libs.
    
    due to rpmlint warnings:
    hplip-libs.x86_64: W: private-shared-object-provides /usr/lib64/python2.7/site-packages/hpmudext.so hpmudext.so()(64bit)

 hplip.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/hplip.spec b/hplip.spec
index b0894ee..0ec4448 100644
--- a/hplip.spec
+++ b/hplip.spec
@@ -1,3 +1,9 @@
+# we don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
 Summary: HP Linux Imaging and Printing Project
 Name: hplip
 Version: 3.12.11
@@ -180,8 +186,8 @@ SANE driver for scanners in HP's multi-function devices (from HPOJ).
 chmod +x %{SOURCE2}
 mv prnt/drv/hpijs.drv.in{,.deviceIDs-drv-hpijs}
 %{SOURCE2} prnt/drv/hpcups.drv.in \
-	prnt/drv/hpijs.drv.in.deviceIDs-drv-hpijs \
-	> prnt/drv/hpijs.drv.in
+           prnt/drv/hpijs.drv.in.deviceIDs-drv-hpijs \
+           > prnt/drv/hpijs.drv.in
 
 # Stopped hpcups pointlessly trying to read spool files
 # directly (bug #552572).
@@ -534,6 +540,7 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
 %changelog
 * Fri Jan 18 2013 Jiri Popelka <jpopelka at redhat.com> 3.12.11-5
 - Use arch-specific dependencies.
+- Don't provide private python extension libs.
 
 * Wed Jan 16 2013 Jiri Popelka <jpopelka at redhat.com> 3.12.11-4
 - hpijs no longer requires net-snmp (bug #376641, bug #895643).


More information about the scm-commits mailing list