File: pam_mysql.spec.in

package info (click to toggle)
pam-mysql 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 336 kB
  • sloc: ansic: 4,207; python: 66; makefile: 26
file content (36 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Summary: A PAM-module for authentication against MySQL
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1
Group: System Environment/Base
URL: http://github.com/victor73/pam-MySQL/
License: GPLv2
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: pam
BuildPrereq: mysql-devel pam-devel

%description
A PAM-module for authentication against MySQL

%define security_dir /lib/security/

%prep
%setup -n %{name}-%{version}
%build
%configure --prefix=${_prefix} --with-pam-mods-dir=%{security_dir}
%{__make}

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
%{__make} install DESTDIR="$RPM_BUILD_ROOT"
rm -f "$RPM_BUILD_ROOT"%{security_dir}/*.la

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
%{__make} clean

%files
%defattr(-,root,root)
/lib/security/pam_mysql.so
%doc NEWS README ChangeLog INSTALL CREDITS