%define name pam-mysql %define url http://sourceforge.net/projects/pam-mysql/ %define version 0.5 %define prefix %{_prefix} %define release 4mdk Summary: MySQL authentication for PAM Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Libraries URL: http://sourceforge.net/projects/pam-mysql/ Source: %{url}/pam_mysql-%{version}.tar.bz2 Requires: pam BuildRequires: pam-devel, MySQL-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This is a module that allows people to login to PAM-aware applications by authenticating to a MySQL database. Now configurable in terms of which host the database resides upon and which table and username and password column to interrogate. %prep %setup -q -n pam_mysql %build %make %install mkdir -p $RPM_BUILD_ROOT/lib/security cp pam_mysql.so $RPM_BUILD_ROOT/lib/security mkdir -p $RPM_BUILD_ROOT/usr/share/doc/pam-mysql-%{version} cp Changelog $RPM_BUILD_ROOT/usr/share/doc/pam-mysql-%{version} cp CREDITS $RPM_BUILD_ROOT/usr/share/doc/pam-mysql-%{version} cp Readme $RPM_BUILD_ROOT/usr/share/doc/pam-mysql-%{version} %clean rm -rf %buildroot %files %defattr(-, root, root) %doc Changelog CREDITS Readme /lib/security/pam_mysql.so %changelog * Thu Feb 10 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.5-4mdk - rebuilt against new mysql libs - fix deps - misc spec file fixes * Mon Feb 17 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.5-3mdk - fix buildrequires & requires * Sun Feb 02 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.5-2mdk - rebuild * Wed Dec 04 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-1mdk - from Terry Froy <tez@spilsby.net> : - Initial spec