File pam_p11.spec of Package pam_p11
#
# spec file for package pam_p11
#
# Copyright (c) 2018 SUSE LINUX 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/
#
Name: pam_p11
Version: 0.1.6
Release: 0
Summary: PAM Authentication Module for Using Cryptographic Tokens
License: LGPL-2.1+
Group: Hardware/Other
Url: https://github.com/OpenSC/pam_p11
Source: https://github.com/OpenSC/pam_p11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source2: baselibs.conf
#PATCH-FIX-UPSTREAM https://github.com/OpenSC/pam_p11/pull/7
Patch0: pam_p11-openssl11.patch
BuildRequires: libp11-devel
BuildRequires: openssl-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%description
Pam_p11 is a pluggable authentication module (pam) package for using
cryptographic tokens, such as smart cards and usb crypto tokens, for
authentication.
%prep
%setup -q
%patch0 -p1
%build
%configure\
--libdir=/%{_lib} \
--disable-static \
--docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%install
%make_install
# remove .la files
find %{buildroot} -type f -name "*.la" -delete -print
%files
%doc COPYING NEWS
/%{_lib}/security/*.so
%changelog