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}