|
|
|
@ -1,76 +1,34 @@
|
|
|
|
|
%global realname kdcproxy
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%else
|
|
|
|
|
%global with_python3 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} <= 7
|
|
|
|
|
%global with_python2 1
|
|
|
|
|
%else
|
|
|
|
|
%global with_python2 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{realname}
|
|
|
|
|
Version: 0.4
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 1.0.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: MS-KKDCP (kerberos proxy) WSGI module
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/npmccallum/%{realname}
|
|
|
|
|
Source0: https://github.com/npmccallum/%{realname}/archive/%{realname}-%{version}.tar.gz
|
|
|
|
|
URL: https://github.com/latchset/%{realname}
|
|
|
|
|
Source0: https://github.com/latchset/%{realname}/archive/%{realname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: Make-webtest-an-optional-dependency.patch
|
|
|
|
|
Patch1: Correct-addrs-sorting-to-be-by-TCP-UDP.patch
|
|
|
|
|
Patch2: Always-buffer-TCP-data-in-__handle_recv.patch
|
|
|
|
|
Patch0: Drop-coverage-from-tests.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: git
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2} > 0
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-pytest
|
|
|
|
|
BuildRequires: python2-coverage
|
|
|
|
|
BuildRequires: python2-asn1crypto
|
|
|
|
|
BuildRequires: python2-dns
|
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3} > 0
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-coverage
|
|
|
|
|
BuildRequires: python3-asn1crypto
|
|
|
|
|
BuildRequires: python3-dns
|
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-pyasn1
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains a Python 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%{?with_python2} > 0
|
|
|
|
|
%package -n python2-%{realname}
|
|
|
|
|
Summary: MS-KKDCP (kerberos proxy) WSGI module
|
|
|
|
|
Requires: python2-dns
|
|
|
|
|
Requires: python2-asn1crypto
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{realname}}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{realname}
|
|
|
|
|
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.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3} > 0
|
|
|
|
|
%package -n python3-%{realname}
|
|
|
|
|
Summary: MS-KKDCP (kerberos proxy) WSGI module
|
|
|
|
|
Requires: python3-dns
|
|
|
|
|
Requires: python3-asn1crypto
|
|
|
|
|
Requires: python3-pyasn1
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{realname}}
|
|
|
|
|
|
|
|
|
@ -78,67 +36,86 @@ Requires: python3-asn1crypto
|
|
|
|
|
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
|
|
|
|
|
minimal configuration.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -S git -n %{realname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if 0%{?with_python2} > 0
|
|
|
|
|
%py2_build
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_python3} > 0
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?with_python2} > 0
|
|
|
|
|
%py2_install
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_python3} > 0
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?with_python2} > 0
|
|
|
|
|
KDCPROXY_ASN1MOD=asn1crypto %{__python2} -m pytest
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_python3} > 0
|
|
|
|
|
KDCPROXY_ASN1MOD=asn1crypto %{__python3} -m pytest
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2} > 0
|
|
|
|
|
%files -n python2-%{realname}
|
|
|
|
|
%doc README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python2_sitelib}/%{realname}/
|
|
|
|
|
%{python2_sitelib}/%{realname}-%{version}-*.egg-info
|
|
|
|
|
%endif
|
|
|
|
|
%{__python3} -m pytest
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3} > 0
|
|
|
|
|
%files -n python3-%{realname}
|
|
|
|
|
%doc README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python3_sitelib}/%{realname}/
|
|
|
|
|
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Apr 03 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.4-5
|
|
|
|
|
- Rebuilt for MSVSphere 8.10 beta
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-7
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Mon Apr 19 2021 Robbie Harwood <rharwood@redhat.com> - 1.0.0-6
|
|
|
|
|
- Actually drop coverage dependency
|
|
|
|
|
- Resolves: #1916739
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Fri Jan 29 2021 Robbie Harwood <rharwood@redhat.com> - 1.0.0-4
|
|
|
|
|
- Drop unused dependency on python3-mock
|
|
|
|
|
- Resolves: #1922344
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 20 2021 Robbie Harwood <rharwood@redhat.com> - 1.0.0-2
|
|
|
|
|
- Drop coverage from tests
|
|
|
|
|
- Resolves: #1916739
|
|
|
|
|
|
|
|
|
|
* Tue Dec 08 2020 Robbie Harwood <rharwood@redhat.com> - 1.0.0-1
|
|
|
|
|
- New upstream version (1.0.0)
|
|
|
|
|
- Drop asn1crypto in favor of pyasn1
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 25 2020 Robbie Harwood <rharwood@redhat.com> - 0.4.2-5
|
|
|
|
|
- Explicitly depend on python3-setuptools
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-4
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-2
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 29 2019 Robbie Harwood <rharwood@redhat.com> - 0.4.2-1
|
|
|
|
|
- New upstream version (0.4.2)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2019 Robbie Harwood <rharwood@redhat.com> - 0.4-5
|
|
|
|
|
- Always buffer TCP data in __handle_recv()
|
|
|
|
|
- Resolves: #1747144
|
|
|
|
|
* Mon Feb 11 2019 Robbie Harwood <rharwood@redhdat.com> 0.4.1-1
|
|
|
|
|
- New upstream release - 0.4.1
|
|
|
|
|
- Fixes build with rawhide (dnspython/dnspython3)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2019 Robbie Harwood <rharwood@redhat.com> - 0.4-4
|
|
|
|
|
- Correct addrs sorting to be by TCP/UDP
|
|
|
|
|
- Resolves: #1732898
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Nov 19 2018 Thomas Woerner <twoerner@redhat.com> - 0.4-3
|
|
|
|
|
- Bump release to be able to add python-kdcpoxy to the idm module
|
|
|
|
|
Resolves: RHBZ#1639332
|
|
|
|
|
* Mon Sep 17 2018 Robbie Harwood <rharwood@redhat.com> - 0.4-3
|
|
|
|
|
- Drop python2 subpackage
|
|
|
|
|
- Resolves: #1629775
|
|
|
|
|
|
|
|
|
|
* Thu Aug 09 2018 Robbie Harwood <rharwood@redhat.com> - 0.4-2
|
|
|
|
|
- Update dependencies in test suite
|
|
|
|
|