python-kdcproxy/python-kdcproxy.spec

158 lines
4.8 KiB
RPMSpec
Raw Normal View History

2014-10-23 15:07:33 +00:00
%global realname kdcproxy
Name: python-%{realname}
2015-08-03 19:03:28 +00:00
Version: 0.3.2
Release: 10%{?dist}
2014-10-23 15:07:33 +00:00
Summary: MS-KKDCP (kerberos proxy) WSGI module
License: MIT
2015-06-11 16:22:42 +00:00
URL: https://github.com/npmccallum/%{realname}
Source0: https://github.com/npmccallum/%{realname}/archive/v%{version}.tar.gz
# Fix failing tests
# Commited upstream: https://github.com/latchset/kdcproxy/commit/d9923b582a31cafce75ddd3a97857fa1794e22ca
Patch0: fix-failing-tests.patch
2014-10-23 15:07:33 +00:00
BuildArch: noarch
BuildRequires: python2-devel
2015-06-11 16:22:42 +00:00
2014-10-23 15:53:16 +00:00
%if 0%{?rhel} == 0
BuildRequires: /usr/bin/tox
BuildRequires: python2-pytest
BuildRequires: python2-coverage
2015-06-11 16:22:42 +00:00
BuildRequires: python-webtest
BuildRequires: python2-pyasn1
BuildRequires: python2-dns
BuildRequires: python2-mock
2015-06-11 16:22:42 +00:00
2014-10-23 15:07:33 +00:00
BuildRequires: python3-devel
2015-06-11 16:22:42 +00:00
BuildRequires: python3-pytest
BuildRequires: python3-coverage
BuildRequires: python3-webtest
BuildRequires: python3-pyasn1
BuildRequires: python3-dns
BuildRequires: python3-mock
2014-10-23 15:47:35 +00:00
%endif
2015-06-11 16:22:42 +00:00
2014-10-23 15:07:33 +00:00
%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.
%package -n python2-%{realname}
Summary: MS-KKDCP (kerberos proxy) WSGI module
Requires: python2-dns
Requires: python2-pyasn1
%{?python_provide:%python_provide python2-%{realname}}
%description -n python2-%{realname}
2014-10-23 15:07:33 +00:00
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.
2014-10-23 15:53:16 +00:00
%if 0%{?rhel} == 0
2014-10-23 15:07:33 +00:00
%package -n python3-%{realname}
Summary: MS-KKDCP (kerberos proxy) WSGI module
Requires: python3-dns
Requires: python3-pyasn1
%{?python_provide:%python_provide python3-%{realname}}
2014-10-23 15:07:33 +00:00
%description -n python3-%{realname}
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.
2014-10-23 15:47:35 +00:00
%endif
2014-10-23 15:07:33 +00:00
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
2014-10-23 15:07:33 +00:00
%build
%py2_build
%if 0%{?rhel} == 0
%py3_build
%endif
2014-10-23 15:07:33 +00:00
%install
%py2_install
2014-10-23 15:53:16 +00:00
%if 0%{?rhel} == 0
%py3_install
2014-10-23 15:47:35 +00:00
%endif
2014-10-23 15:07:33 +00:00
2015-06-11 16:22:42 +00:00
%check
%if 0%{?rhel} == 0
# Ignore results due to https://github.com/latchset/kdcproxy/issues/35
tox --sitepackages -e py%{python2_version_nodots},py%{python3_version_nodots} || :
2015-06-11 16:22:42 +00:00
%endif
%files -n python2-%{realname}
%doc README
%license COPYING
%{python2_sitelib}/%{realname}/
%{python2_sitelib}/%{realname}-%{version}-*.egg-info
2014-10-23 15:07:33 +00:00
2014-10-23 15:53:16 +00:00
%if 0%{?rhel} == 0
2014-10-23 15:07:33 +00:00
%files -n python3-%{realname}
%doc README
%license COPYING
%{python3_sitelib}/%{realname}/
2014-10-23 15:07:33 +00:00
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
2014-10-23 15:47:35 +00:00
%endif
2014-10-23 15:07:33 +00:00
%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Sep 05 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.2-9
- Ignore test results
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.3.2-6
- Fix failing tests
- Modernize the SPEC file
2016-12-19 17:20:37 +00:00
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-5
- Rebuild for Python 3.6
- BR /usr/bin/tox instead of python-tox
- Use %%{python3_version_nodots} instead of hardcoded 35
2016-12-19 17:20:37 +00:00
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2015-08-03 19:03:28 +00:00
* Mon Aug 03 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3.2-1
- Update to 0.3.2
- Fixes CVE-2015-5159
2015-07-22 17:08:52 +00:00
* Wed Jul 22 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3.1-1
- Update to 0.3.1
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-06-11 16:22:42 +00:00
* Wed Jun 10 2015 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.3-1
- Update to 0.3
- Run tests in Fedora (not RHEL due to python-tox)
2014-10-24 14:26:14 +00:00
* Fri Oct 24 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2.1-1
- Update to 0.2.1
2014-10-23 15:20:34 +00:00
* Thu Oct 23 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.2-1
- Update to 0.2
2014-10-23 15:47:35 +00:00
- Fix EPEL7 build
2014-10-23 15:20:34 +00:00
2014-10-23 15:07:33 +00:00
* Tue Jan 21 2014 Nathaniel McCallum <npmccallum@fedoraproject.org> - 0.1.1-1
- Initial package