Fix EPEL7 build
This commit is contained in:
parent
8c9c52041c
commit
0212baf7da
@ -11,7 +11,9 @@ Source0: https://pypi.python.org/packages/source/k/%{realname}/%{realname
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
%if 0%{?rhel} != 0
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
Requires: python-dns
|
Requires: python-dns
|
||||||
Requires: python-pyasn1
|
Requires: python-pyasn1
|
||||||
|
|
||||||
@ -20,6 +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
|
||||||
%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
|
||||||
@ -29,6 +32,7 @@ Requires: python3-pyasn1
|
|||||||
This package contains a Python 3.x WSGI module for proxying KDC requests over
|
This package contains a Python 3.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.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{realname}-%{version}
|
%setup -q -n %{realname}-%{version}
|
||||||
@ -39,24 +43,29 @@ minimal configuration.
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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
|
||||||
%{__python3} 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
|
||||||
|
%{__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
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING README
|
%doc COPYING README
|
||||||
%{python_sitelib}/%{realname}
|
%{python_sitelib}/%{realname}
|
||||||
%{python_sitelib}/%{realname}-%{version}-*.egg-info
|
%{python_sitelib}/%{realname}-%{version}-*.egg-info
|
||||||
|
|
||||||
|
%if 0%{?rhel} != 0
|
||||||
%files -n python3-%{realname}
|
%files -n python3-%{realname}
|
||||||
%doc COPYING README
|
%doc COPYING README
|
||||||
%{python3_sitelib}/%{realname}
|
%{python3_sitelib}/%{realname}
|
||||||
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
|
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Oct 23 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2-1
|
* Thu Oct 23 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2-1
|
||||||
- Update to 0.2
|
- Update to 0.2
|
||||||
|
- Fix EPEL7 build
|
||||||
|
|
||||||
* Tue Jan 21 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.1.1-1
|
* Tue Jan 21 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.1.1-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
Loading…
Reference in New Issue
Block a user