A new user interface for you! Read more...

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 http://bugs.opensuse.org/
#

%define _tarname pam-MySQL

Name:           pam_mysql
Version:        0.8.1
Release:        0
License:        GPL-2.0
Summary:        PAM Module Backed by MySQL
Url:            https://github.com/NigelCunningham/pam-MySQL
Group:          System/Libraries
Source0:        https://github.com/NigelCunningham/%{_tarname}/archive/v%{version}.tar.gz#/%{_tarname}-%{version}.tar.gz
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

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

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

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
autoreconf -f -i
%configure \
 --disable-static \
 --with-cyrus-sasl2 \
 --with-openssl \
 --with-pam-mods-dir=/%{_lib}/security
%{__make} %{?_smp_mflags}

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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc COPYING AUTHORS ChangeLog NEWS README
/%{_lib}/security/%{name}.so