Name: python-kerberos Version: 1.0 Release: 5%{?dist} Summary: A high-level wrapper for Kerberos (GSSAPI) operations Group: System Environment/Libraries License: ASL 2.0 URL: http://trac.calendarserver.org/projects/calendarserver/browser/PyKerberos # Pull from SVN, rename from trunk to PyKerberos-%{version} # svn co -r 1541 http://svn.macosforge.org/repository/collaboration/PyKerberos/trunk # mv trunk PyKerberos-%{version} # tar czf PyKerberos-%{version}.tar.gz PyKerberos-%{version} Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: krb5-devel BuildRequires: python-setuptools Patch1: PyKerberos-includes.patch Patch2: PyKerberos-delegation.patch %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description This Python package is a high-level wrapper for Kerberos (GSSAPI) operations. The goal is to avoid having to build a module that wraps the entire Kerberos.framework, and instead offer a limited set of functions that do what is needed for client/serverKerberos authentication based on . Much of the C-code here is adapted from Apache's mod_auth_kerb-5.0rc7. %prep %setup -q %patch1 -p0 -b .includes %patch2 -p0 -b .delegation %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt LICENSE test.py %{python_sitearch}/* %changelog * Wed Jan 16 2008 Rob Crittenden - 1.0-5 - Package the egg-info too * Wed Jan 16 2008 Rob Crittenden - 1.0-4 - Switch from python_sitelib macro to python_sitearch - Add python-setuptools to BuildRequires * Wed Jan 16 2008 Rob Crittenden - 1.0-3 - Use the setup.py install target in order to generate debuginfo. * Thu Jan 3 2008 Rob Crittenden - 1.0-2 - Add krb5-devel to BuildRequires * Wed Jan 2 2008 Rob Crittenden - 1.0-1 - Change name to python-kerberos from PyKerberos - Change license from "Apache License" to ASL 2.0 per guidelines - Upstream released 1.0 which is equivalent to version 1541. Reverting to that. * Tue Aug 28 2007 Rob Crittenden - 0.1735-2 - Include GSS_C_DELEG_FLAG in gss_init_sec_context() so the command-line tools can do kerberos ticket forwarding. * Tue Jul 31 2007 Rob Crittenden - 0.1735-1 - Initial rpm version