Really fix EPEL7 build

This commit is contained in:
Nathaniel McCallum 2014-10-23 11:53:16 -04:00
parent 0212baf7da
commit 60a9e89936

View File

@ -11,7 +11,7 @@ Source0: https://pypi.python.org/packages/source/k/%{realname}/%{realname
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
%if 0%{?rhel} != 0 %if 0%{?rhel} == 0
BuildRequires: python3-devel BuildRequires: python3-devel
%endif %endif
Requires: python-dns 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 HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
minimal configuration. minimal configuration.
%if 0%{?rhel} != 0 %if 0%{?rhel} == 0
%package -n python3-%{realname} %package -n python3-%{realname}
Summary: MS-KKDCP (kerberos proxy) WSGI module Summary: MS-KKDCP (kerberos proxy) WSGI module
Requires: python3-dns Requires: python3-dns
@ -45,7 +45,7 @@ rm -rf $RPM_BUILD_ROOT
%{__python2} setup.py install --skip-build --root $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 '{}' \; 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 %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \; find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \;
%endif %endif
@ -55,7 +55,7 @@ find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755
%{python_sitelib}/%{realname} %{python_sitelib}/%{realname}
%{python_sitelib}/%{realname}-%{version}-*.egg-info %{python_sitelib}/%{realname}-%{version}-*.egg-info
%if 0%{?rhel} != 0 %if 0%{?rhel} == 0
%files -n python3-%{realname} %files -n python3-%{realname}
%doc COPYING README %doc COPYING README
%{python3_sitelib}/%{realname} %{python3_sitelib}/%{realname}