[piglit] importlib is since python 2.7 in the standard library, no need to

Matej Cepl mcepl at fedoraproject.org
Fri May 16 12:10:33 UTC 2014


commit d13ea1bb6c14884ede736c4d9d614e75580f2126
Author: Matěj Cepl <mcepl at redhat.com>
Date:   Fri May 16 14:10:24 2014 +0200

    importlib is since python 2.7 in the standard library, no need to
    
      import it.

 piglit.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/piglit.spec b/piglit.spec
index fee99ea..6fe060b 100644
--- a/piglit.spec
+++ b/piglit.spec
@@ -1,6 +1,6 @@
 Name:           piglit
 Version:        1
-Release:        0.15.20140414GIT8775223%{?dist}
+Release:        0.16.20140414GIT8775223%{?dist}
 Summary:        Collection of automated tests for OpenGL implementations
 
 Group:          Development/Tools
@@ -18,7 +18,12 @@ BuildRequires:  waffle-devel
 %endif
 BuildRequires:  libX11-devel, libpng-devel, libtiff-devel, libXrender-devel
 BuildRequires:  python-mako
+
+# Only for python < 2.7
+%if 0%{?rhel} > 0 || 0%{?rhel} <= 6
 Requires:       python-importlib
+%endif
+
 # https://bugzilla.redhat.com/1093720
 ExcludeArch:    ppc64
 
@@ -93,6 +98,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri May 16 2014 Matěj Cepl <mcepl at redhat.com> - 1-0.16.20140414GIT8775223
+- importlib is since python 2.7 in the standard library, no need to
+  import it.
+
 * Thu May 15 2014 Matěj Cepl <mcepl at redhat.com> - 1-0.15.20140414GIT8775223
 - Put ExcludeArch back for ppc64.
 - Add python-importlib Require


More information about the scm-commits mailing list