diff --git a/.gitignore b/.gitignore index ef9bb8d..fdcff6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /kdcproxy-0.1.1.tar.gz /kdcproxy-0.2.tar.gz /kdcproxy-0.2.1.tar.gz +/v0.3.tar.gz diff --git a/python-kdcproxy.spec b/python-kdcproxy.spec index e19cb52..c5ebe48 100644 --- a/python-kdcproxy.spec +++ b/python-kdcproxy.spec @@ -1,19 +1,35 @@ %global realname kdcproxy Name: python-%{realname} -Version: 0.2.1 +Version: 0.3 Release: 1%{?dist} Summary: MS-KKDCP (kerberos proxy) WSGI module License: MIT -URL: https://pypi.python.org/pypi/%{realname} -Source0: https://pypi.python.org/packages/source/k/%{realname}/%{realname}-%{version}.tar.gz +URL: https://github.com/npmccallum/%{realname} +Source0: https://github.com/npmccallum/%{realname}/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel + %if 0%{?rhel} == 0 +BuildRequires: python-tox +BuildRequires: pytest +BuildRequires: python-coverage +BuildRequires: python-webtest +BuildRequires: python-pyasn1 +BuildRequires: python-dns +BuildRequires: python-mock + BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-coverage +BuildRequires: python3-webtest +BuildRequires: python3-pyasn1 +BuildRequires: python3-dns +BuildRequires: python3-mock %endif + Requires: python-dns Requires: python-pyasn1 @@ -50,6 +66,11 @@ find $RPM_BUILD_ROOT%{python_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \; %endif +%check +%if 0%{?rhel} == 0 +tox --sitepackages -e py27,py34 +%endif + %files %doc COPYING README %{python_sitelib}/%{realname} @@ -63,6 +84,10 @@ find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 %endif %changelog +* Wed Jun 10 2015 Nathaniel McCallum - 0.3-1 +- Update to 0.3 +- Run tests in Fedora (not RHEL due to python-tox) + * Fri Oct 24 2014 Nathaniel McCallum - 0.2.1-1 - Update to 0.2.1 diff --git a/sources b/sources index 253d2b0..35ab462 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -74e0c77ae3e6526712a6899df10d2663 kdcproxy-0.2.1.tar.gz +2cb9cb0a870b9bc83da8993cb24391c3 v0.3.tar.gz