File pam_mysql.spec of Package pam_mysql

# spec file for package pam_mysql
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define _tarname pam-MySQL

Name:           pam_mysql
Version:        0.8.1
Release:        0
License:        GPL-2.0
Summary:        PAM Module Backed by MySQL
Group:          System/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cyrus-sasl-devel
BuildRequires:  gcc-c++
BuildRequires:  libmysqlclient-devel
BuildRequires:  openssl-devel
BuildRequires:  pam-devel
BuildRequires:  pkgconfig
BuildRequires:  autoconf automake libtool
Requires:       pam

This is a module that allows PAM aware applications to authenticate users through
a MySQL database.

%setup -q -n %{_tarname}-%{version}

export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
autoreconf -f -i
%configure \
 --disable-static \
 --with-cyrus-sasl2 \
 --with-openssl \
%{__make} %{?_smp_mflags}

find %{buildroot}/%{_lib}/security/ -name \*.la -delete

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

openSUSE Build Service is sponsored by