Blame SPECS/python-kdcproxy.spec

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