diff --git a/python-kdcproxy.spec b/python-kdcproxy.spec index b96b135..cb38be0 100644 --- a/python-kdcproxy.spec +++ b/python-kdcproxy.spec @@ -70,16 +70,15 @@ minimal configuration. %patch0 -p1 %build -%{__python} setup.py build +%py2_build +%if 0%{?rhel} == 0 +%py3_build +%endif %install -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 '{}' \; - +%py2_install %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 '{}' \; +%py3_install %endif %check