[python-flask-rstpages] add epel conditionals

Richard Marko rmarko at fedoraproject.org
Mon Nov 24 13:23:48 UTC 2014


commit 67d9b3665015901fec599e501ecbf40e672926a1
Author: Richard Marko <rmarko at fedoraproject.org>
Date:   Mon Nov 24 14:23:24 2014 +0100

    add epel conditionals
    
    Signed-off-by: Richard Marko <rmarko at fedoraproject.org>

 python-flask-rstpages.spec |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/python-flask-rstpages.spec b/python-flask-rstpages.spec
index bc73a67..49ef15b 100644
--- a/python-flask-rstpages.spec
+++ b/python-flask-rstpages.spec
@@ -1,6 +1,18 @@
 # Created by pyp2rpm-1.1.1
 %global pypi_name Flask-RSTPages
+
+%if 0%{?fedora}
 %global with_python3 1
+%else
+# EL doesn't have Python 3
+%global with_python3 0
+%endif
+
+%if 0%{?rhel} || 0%{?rhel} < 7
+# EL 6 doesn't have this macro
+%global __python2       %{__python}
+%global python2_sitelib %{python_sitelib}
+%endif
 
 Name:           python-flask-rstpages
 Version:        0.3


More information about the scm-commits mailing list