%define module pam %define name python-%{module} %define version 0.5.0 %define release %mkrel 5 Name: %{name} Version: %{version} Release: %{release} Summary: Python bindings for PAM License: GPL Group: Development/Python URL: http://www.pangalactic.org/PyPAM Source: PyPAM-%{version}.tar.bz2 BuildRequires: pam-devel BuildRequires: python-devel #Source2: setup.py #Patch: %{tarname}-%{version}.patch #Patch1: %{tarname}-%{version}-dl.patch BuildRoot: %{_tmppath}/%{name}-%{version} %description This release supports the core PAM API. There is still some missing functionality, but it should implement enough of the API for most needs. There is not much in the way of documentation at this point. If you are familiar with the PAM API, a quick glance at the sample program should get you going. %prep %setup -q -n PyPAM-%{version} #cp %{S:2} . #%patch #%patch1 rm examples/pamexample %build export CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS NEWS README ChangeLog COPYING examples %{_libdir}/python%{pyver}/site-packages/* %changelog * Tue Sep 15 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.5.0-5mdv2010.0 + Revision: 442325 - rebuild * Sun Dec 28 2008 Funda Wang <fundawang@mandriva.org> 0.5.0-4mdv2009.1 + Revision: 320167 - rebuild for new python * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.5.0-3mdv2009.0 + Revision: 242456 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sat Jun 02 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.5.0-1mdv2008.0 + Revision: 34722 - import python-pam * Sat Jun 02 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.5.0-1mdv2008.0 - initial mdv release