[pygpgme] Don't build the python3 package on RHEL

Miloslav Trmac mitr at fedoraproject.org
Fri Nov 23 16:21:31 UTC 2012


commit b949f55fe47588da5b7c0543c396b96d8c63c11c
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Fri Nov 23 17:17:45 2012 +0100

    Don't build the python3 package on RHEL
    
    Also separates the decision of building with python3 from the decision
    of defining python_siteach manually, using the Python packaging
    guidelines condition for the latter.
    
    I'll build this for F18 as well without submitting as an update - the
    Fedora users don't need this change, but it keep the Fedora and RHEL
    versioning consistent for a while longer.  This will hopefully make
    maintenance a bit easier, and doesn't harm anybody.

 pygpgme.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/pygpgme.spec b/pygpgme.spec
index b8d8abd..d8cb1ed 100644
--- a/pygpgme.spec
+++ b/pygpgme.spec
@@ -1,12 +1,13 @@
-%if 0%{?fedora} || 0%{?rhel} > 6
+%if 0%{?fedora}
 %global with_python3 1
-%else
+%endif
+%if 0%{?rhel} && 0%{?rhel} <= 5
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 %endif
 
 Name:           pygpgme
 Version:        0.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Python module for working with OpenPGP messages
 
 Group:          Development/Languages
@@ -104,6 +105,9 @@ make check || :
 %endif # with_python3
 
 %changelog
+* Fri Nov 23 2012 Miloslav Trmač <mitr at redhat.com> - 0.3-4
+- Don't build the python3 package on RHEL
+
 * Fri Aug 03 2012 David Malcolm <dmalcolm at redhat.com> - 0.3-3
 - rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
 


More information about the scm-commits mailing list