Blame SPECS/python-kdcproxy.spec

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