Blame SPECS/python-kdcproxy.spec

8afc37
%global realname kdcproxy
8afc37
8afc37
Name:           python-%{realname}
8afc37
Version:        0.3.2
eff8e2
Release:        3%{?dist}
8afc37
Summary:        MS-KKDCP (kerberos proxy) WSGI module
8afc37
8afc37
License:        MIT
8afc37
URL:            https://github.com/npmccallum/%{realname}
8afc37
Source0:        https://github.com/npmccallum/%{realname}/archive/v%{version}.tar.gz
8afc37
8afc37
BuildArch:      noarch
8afc37
BuildRequires:  python2-devel
8afc37
2649d7
Patch0: Downgrade-socket-problems-to-warnings.patch
eff8e2
Patch1: Always-buffer-TCP-data-in-__handle_recv.patch
2649d7
8afc37
%if 0%{?rhel} == 0
8afc37
BuildRequires:  python-tox
8afc37
BuildRequires:  pytest
8afc37
BuildRequires:  python-coverage
8afc37
BuildRequires:  python-webtest
8afc37
BuildRequires:  python-pyasn1
8afc37
BuildRequires:  python-dns
8afc37
BuildRequires:  python-mock
8afc37
8afc37
BuildRequires:  python3-devel
8afc37
BuildRequires:  python3-pytest
8afc37
BuildRequires:  python3-coverage
8afc37
BuildRequires:  python3-webtest
8afc37
BuildRequires:  python3-pyasn1
8afc37
BuildRequires:  python3-dns
8afc37
BuildRequires:  python3-mock
8afc37
%endif
8afc37
8afc37
Requires:       python-dns
8afc37
Requires:       python-pyasn1
8afc37
8afc37
%description
8afc37
This package contains a Python 2.x WSGI module for proxying KDC requests over
8afc37
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
8afc37
minimal configuration.
8afc37
8afc37
%if 0%{?rhel} == 0
8afc37
%package -n python3-%{realname}
8afc37
Summary:        MS-KKDCP (kerberos proxy) WSGI module
8afc37
Requires:       python3-dns
8afc37
Requires:       python3-pyasn1
8afc37
8afc37
%description -n python3-%{realname}
8afc37
This package contains a Python 3.x WSGI module for proxying KDC requests over
8afc37
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
8afc37
minimal configuration.
8afc37
%endif
8afc37
8afc37
%prep
8afc37
%setup -q -n %{realname}-%{version}
2649d7
%patch0 -p1 -b .Downgrade-socket-problems-to-warnings
eff8e2
%patch1 -p1 -b .Always-buffer-TCP-data-in-__handle_recv
8afc37
8afc37
%build
8afc37
%{__python} setup.py build
8afc37
8afc37
%install
8afc37
rm -rf $RPM_BUILD_ROOT
8afc37
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
8afc37
find $RPM_BUILD_ROOT%{python_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \;
8afc37
8afc37
%if 0%{?rhel} == 0
8afc37
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
8afc37
find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \;
8afc37
%endif
8afc37
8afc37
%check
8afc37
%if 0%{?rhel} == 0
8afc37
tox --sitepackages -e py27,py34
8afc37
%endif
8afc37
8afc37
%files
8afc37
%doc COPYING README
8afc37
%{python_sitelib}/%{realname}
8afc37
%{python_sitelib}/%{realname}-%{version}-*.egg-info
8afc37
8afc37
%if 0%{?rhel} == 0
8afc37
%files -n python3-%{realname}
8afc37
%doc COPYING README
8afc37
%{python3_sitelib}/%{realname}
8afc37
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
8afc37
%endif
8afc37
8afc37
%changelog
eff8e2
* Tue Sep 03 2019 Robbie Harwood <rharwood@redhat.com> - 0.3.2-3
eff8e2
- Always buffer TCP data in __handle_recv()
eff8e2
- Resolves: #1746107
eff8e2
2649d7
* Mon Dec 17 2018 Robbie Harwood <rharwood@redhat.com> - 0.3.2-2
2649d7
- Downgrade socket problems to warnings
2649d7
- Resolves: #1525925
2649d7
8afc37
* Mon Aug 03 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3.2-1
8afc37
- Update to 0.3.2
8afc37
- Fixes CVE-2015-5159
8afc37
8afc37
* Wed Jul 22 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3.1-1
8afc37
- Update to 0.3.1
8afc37
8afc37
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
8afc37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8afc37
8afc37
* Wed Jun 10 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3-1
8afc37
- Update to 0.3
8afc37
- Run tests in Fedora (not RHEL due to python-tox)
8afc37
8afc37
* Fri Oct 24 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2.1-1
8afc37
- Update to 0.2.1
8afc37
8afc37
* Thu Oct 23 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2-1
8afc37
- Update to 0.2
8afc37
- Fix EPEL7 build
8afc37
8afc37
* Tue Jan 21 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.1.1-1
8afc37
- Initial package