From be8229f0400fe869c37eb9661c29c7f8246a79bb Mon Sep 17 00:00:00 2001 From: rcritten Date: Jan 17 2008 14:34:19 +0000 Subject: Fix build issues on ppc64 because I was using python_sitelib instead of python_sitearch so the library wasn't being packaged. Also added missing BuildRequires: python-setuptools --- diff --git a/python-kerberos.spec b/python-kerberos.spec index 9cd5ca9..9f27ca7 100644 --- a/python-kerberos.spec +++ b/python-kerberos.spec @@ -1,6 +1,6 @@ Name: python-kerberos Version: 1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A high-level wrapper for Kerberos (GSSAPI) operations Group: System Environment/Libraries @@ -15,10 +15,12 @@ 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. @@ -49,10 +51,14 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt LICENSE test.py -%{python_sitelib}/kerberos.so +%{python_sitearch}/kerberos.so %changelog +* 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.