[python-kdcproxy/epel7] Really fix EPEL7 build

Nathaniel McCallum npmccallum at fedoraproject.org
Thu Oct 23 15:53:18 UTC 2014


commit 60a9e89936db875d07090fac5645550f0b561354
Author: Nathaniel McCallum <nathaniel at themccallums.org>
Date:   Thu Oct 23 11:53:16 2014 -0400

    Really fix EPEL7 build

 python-kdcproxy.spec |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python-kdcproxy.spec b/python-kdcproxy.spec
index c45d621..304f1b0 100644
--- a/python-kdcproxy.spec
+++ b/python-kdcproxy.spec
@@ -11,7 +11,7 @@ Source0:        https://pypi.python.org/packages/source/k/%{realname}/%{realname
 
 BuildArch:      noarch
 BuildRequires:  python2-devel
-%if 0%{?rhel} != 0
+%if 0%{?rhel} == 0
 BuildRequires:  python3-devel
 %endif
 Requires:       python-dns
@@ -22,7 +22,7 @@ This package contains a Python 2.x WSGI module for proxying KDC requests over
 HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
 minimal configuration.
 
-%if 0%{?rhel} != 0
+%if 0%{?rhel} == 0
 %package -n python3-%{realname}
 Summary:        MS-KKDCP (kerberos proxy) WSGI module
 Requires:       python3-dns
@@ -45,7 +45,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT%{python_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \;
 
-%if 0%{?rhel} != 0
+%if 0%{?rhel} == 0
 %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \;
 %endif
@@ -55,7 +55,7 @@ find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755
 %{python_sitelib}/%{realname}
 %{python_sitelib}/%{realname}-%{version}-*.egg-info
 
-%if 0%{?rhel} != 0
+%if 0%{?rhel} == 0
 %files -n python3-%{realname}
 %doc COPYING README
 %{python3_sitelib}/%{realname}


More information about the scm-commits mailing list