%define name pam-mysql %define url http://sourceforge.net/projects/pam-mysql/ %define version 0.5 %define prefix %{_prefix} %define release 3mdk Name: %{name} Summary: MySQL authentication for PAM Version: %{version} Release: %{release} Source: %{url}/pam_mysql-%{version}.tar.bz2 URL: http://sourceforge.net/projects/pam-mysql/ License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root Group: System/Libraries Requires: pam, libmysql12 BuildRequires: pam-devel, mysql-devel %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 * 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