|
|
68b28b |
%global realname kdcproxy
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
68b28b |
%global with_python3 1
|
|
|
68b28b |
%else
|
|
|
68b28b |
%global with_python3 0
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?fedora} || 0%{?rhel} <= 7
|
|
|
68b28b |
%global with_python2 1
|
|
|
68b28b |
%else
|
|
|
68b28b |
%global with_python2 0
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
Name: python-%{realname}
|
|
|
68b28b |
Version: 0.4
|
|
|
68b28b |
Release: 5%{?dist}
|
|
|
68b28b |
Summary: MS-KKDCP (kerberos proxy) WSGI module
|
|
|
68b28b |
|
|
|
68b28b |
License: MIT
|
|
|
68b28b |
URL: https://github.com/npmccallum/%{realname}
|
|
|
68b28b |
Source0: https://github.com/npmccallum/%{realname}/archive/%{realname}-%{version}.tar.gz
|
|
|
68b28b |
|
|
|
68b28b |
Patch0: Make-webtest-an-optional-dependency.patch
|
|
|
68b28b |
Patch1: Correct-addrs-sorting-to-be-by-TCP-UDP.patch
|
|
|
68b28b |
Patch2: Always-buffer-TCP-data-in-__handle_recv.patch
|
|
|
68b28b |
|
|
|
68b28b |
BuildArch: noarch
|
|
|
68b28b |
BuildRequires: git
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?with_python2} > 0
|
|
|
68b28b |
BuildRequires: python2-devel
|
|
|
68b28b |
BuildRequires: python2-pytest
|
|
|
68b28b |
BuildRequires: python2-coverage
|
|
|
68b28b |
BuildRequires: python2-asn1crypto
|
|
|
68b28b |
BuildRequires: python2-dns
|
|
|
68b28b |
BuildRequires: python2-mock
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?with_python3} > 0
|
|
|
68b28b |
BuildRequires: python3-devel
|
|
|
68b28b |
BuildRequires: python3-pytest
|
|
|
68b28b |
BuildRequires: python3-coverage
|
|
|
68b28b |
BuildRequires: python3-asn1crypto
|
|
|
68b28b |
BuildRequires: python3-dns
|
|
|
68b28b |
BuildRequires: python3-mock
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
|
|
|
68b28b |
%description
|
|
|
68b28b |
This package contains a Python WSGI module for proxying KDC requests over
|
|
|
68b28b |
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
|
|
|
68b28b |
minimal configuration.
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?with_python2} > 0
|
|
|
68b28b |
%package -n python2-%{realname}
|
|
|
68b28b |
Summary: MS-KKDCP (kerberos proxy) WSGI module
|
|
|
68b28b |
Requires: python2-dns
|
|
|
68b28b |
Requires: python2-asn1crypto
|
|
|
68b28b |
|
|
|
68b28b |
%{?python_provide:%python_provide python2-%{realname}}
|
|
|
68b28b |
|
|
|
68b28b |
%description -n python2-%{realname}
|
|
|
68b28b |
This package contains a Python 2.x WSGI module for proxying KDC requests over
|
|
|
68b28b |
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
|
|
|
68b28b |
minimal configuration.
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?with_python3} > 0
|
|
|
68b28b |
%package -n python3-%{realname}
|
|
|
68b28b |
Summary: MS-KKDCP (kerberos proxy) WSGI module
|
|
|
68b28b |
Requires: python3-dns
|
|
|
68b28b |
Requires: python3-asn1crypto
|
|
|
68b28b |
|
|
|
68b28b |
%{?python_provide:%python_provide python3-%{realname}}
|
|
|
68b28b |
|
|
|
68b28b |
%description -n python3-%{realname}
|
|
|
68b28b |
This package contains a Python 3.x WSGI module for proxying KDC requests over
|
|
|
68b28b |
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
|
|
|
68b28b |
minimal configuration.
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%prep
|
|
|
68b28b |
%autosetup -S git -n %{realname}-%{version}
|
|
|
68b28b |
|
|
|
68b28b |
|
|
|
68b28b |
%build
|
|
|
68b28b |
%if 0%{?with_python2} > 0
|
|
|
68b28b |
%py2_build
|
|
|
68b28b |
%endif
|
|
|
68b28b |
%if 0%{?with_python3} > 0
|
|
|
68b28b |
%py3_build
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%install
|
|
|
68b28b |
%if 0%{?with_python2} > 0
|
|
|
68b28b |
%py2_install
|
|
|
68b28b |
%endif
|
|
|
68b28b |
%if 0%{?with_python3} > 0
|
|
|
68b28b |
%py3_install
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%check
|
|
|
68b28b |
%if 0%{?with_python2} > 0
|
|
|
68b28b |
KDCPROXY_ASN1MOD=asn1crypto %{__python2} -m pytest
|
|
|
68b28b |
%endif
|
|
|
68b28b |
%if 0%{?with_python3} > 0
|
|
|
68b28b |
KDCPROXY_ASN1MOD=asn1crypto %{__python3} -m pytest
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?with_python2} > 0
|
|
|
68b28b |
%files -n python2-%{realname}
|
|
|
68b28b |
%doc README
|
|
|
68b28b |
%license COPYING
|
|
|
68b28b |
%{python2_sitelib}/%{realname}/
|
|
|
68b28b |
%{python2_sitelib}/%{realname}-%{version}-*.egg-info
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%if 0%{?with_python3} > 0
|
|
|
68b28b |
%files -n python3-%{realname}
|
|
|
68b28b |
%doc README
|
|
|
68b28b |
%license COPYING
|
|
|
68b28b |
%{python3_sitelib}/%{realname}/
|
|
|
68b28b |
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
|
|
|
68b28b |
%endif
|
|
|
68b28b |
|
|
|
68b28b |
%changelog
|
|
|
68b28b |
* Fri Oct 25 2019 Robbie Harwood <rharwood@redhat.com> - 0.4-5
|
|
|
68b28b |
- Always buffer TCP data in __handle_recv()
|
|
|
68b28b |
- Resolves: #1747144
|
|
|
68b28b |
|
|
|
68b28b |
* Fri Oct 25 2019 Robbie Harwood <rharwood@redhat.com> - 0.4-4
|
|
|
68b28b |
- Correct addrs sorting to be by TCP/UDP
|
|
|
68b28b |
- Resolves: #1732898
|
|
|
68b28b |
|
|
|
68b28b |
* Mon Nov 19 2018 Thomas Woerner <twoerner@redhat.com> - 0.4-3
|
|
|
68b28b |
- Bump release to be able to add python-kdcpoxy to the idm module
|
|
|
68b28b |
Resolves: RHBZ#1639332
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Aug 09 2018 Robbie Harwood <rharwood@redhat.com> - 0.4-2
|
|
|
68b28b |
- Update dependencies in test suite
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Aug 09 2018 Robbie Harwood <rharwood@redhat.com> - 0.4-1
|
|
|
68b28b |
- New upstream release - 0.4
|
|
|
68b28b |
- Port to autosetup
|
|
|
68b28b |
|
|
|
68b28b |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-14
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
68b28b |
|
|
|
68b28b |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-13
|
|
|
68b28b |
- Rebuilt for Python 3.7
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Mar 22 2018 Troy Dawson <tdawson@redhat.com> - 0.3.2-12
|
|
|
68b28b |
- Update conditionals.
|
|
|
68b28b |
- Make preperations for non-python2 builds
|
|
|
68b28b |
|
|
|
68b28b |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.2-11
|
|
|
68b28b |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
68b28b |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
68b28b |
|
|
|
68b28b |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-10
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
68b28b |
|
|
|
68b28b |
* Tue Sep 05 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.2-9
|
|
|
68b28b |
- Ignore test results
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-8
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
68b28b |
|
|
|
68b28b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-7
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
68b28b |
|
|
|
68b28b |
* Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.3.2-6
|
|
|
68b28b |
- Fix failing tests
|
|
|
68b28b |
- Modernize the SPEC file
|
|
|
68b28b |
|
|
|
68b28b |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-5
|
|
|
68b28b |
- Rebuild for Python 3.6
|
|
|
68b28b |
- BR /usr/bin/tox instead of python-tox
|
|
|
68b28b |
- Use %%{python3_version_nodots} instead of hardcoded 35
|
|
|
68b28b |
|
|
|
68b28b |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-4
|
|
|
68b28b |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
68b28b |
|
|
|
68b28b |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
68b28b |
|
|
|
68b28b |
* Mon Aug 03 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3.2-1
|
|
|
68b28b |
- Update to 0.3.2
|
|
|
68b28b |
- Fixes CVE-2015-5159
|
|
|
68b28b |
|
|
|
68b28b |
* Wed Jul 22 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3.1-1
|
|
|
68b28b |
- Update to 0.3.1
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
|
|
|
68b28b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
68b28b |
|
|
|
68b28b |
* Wed Jun 10 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3-1
|
|
|
68b28b |
- Update to 0.3
|
|
|
68b28b |
- Run tests in Fedora (not RHEL due to python-tox)
|
|
|
68b28b |
|
|
|
68b28b |
* Fri Oct 24 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2.1-1
|
|
|
68b28b |
- Update to 0.2.1
|
|
|
68b28b |
|
|
|
68b28b |
* Thu Oct 23 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2-1
|
|
|
68b28b |
- Update to 0.2
|
|
|
68b28b |
- Fix EPEL7 build
|
|
|
68b28b |
|
|
|
68b28b |
* Tue Jan 21 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.1.1-1
|
|
|
68b28b |
- Initial package
|