diff --git a/.gitignore b/.gitignore index e69de29..5e7be5a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kdcproxy-0.1.1.tar.gz diff --git a/python-kdcproxy.spec b/python-kdcproxy.spec new file mode 100644 index 0000000..2d84d03 --- /dev/null +++ b/python-kdcproxy.spec @@ -0,0 +1,59 @@ +%global realname kdcproxy + +Name: python-%{realname} +Version: 0.1.1 +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 + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python3-devel +Requires: python-dns +Requires: python-pyasn1 + +%description +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. + +%package -n python3-%{realname} +Summary: MS-KKDCP (kerberos proxy) WSGI module +Requires: python3-dns +Requires: python3-pyasn1 + +%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. + +%prep +%setup -q -n %{realname}-%{version} + +%build +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT +%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT%{python_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \; +find $RPM_BUILD_ROOT%{python3_sitelib}/%{realname}/ -name '*.py' -exec chmod 755 '{}' \; + +%files +%doc COPYING README +%{python_sitelib}/%{realname} +%{python_sitelib}/%{realname}-%{version}-*.egg-info + +%files -n python3-%{realname} +%doc COPYING README +%{python3_sitelib}/%{realname} +%{python3_sitelib}/%{realname}-%{version}-*.egg-info + +%changelog +* Tue Jan 21 2014 Nathaniel McCallum - 0.1.1-1 +- Initial package diff --git a/sources b/sources index e69de29..6de8f67 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ccb1a0a1e71f184039ec3cbf0cc16cae kdcproxy-0.1.1.tar.gz