pam_u2f/pam_u2f.spec

60 lines
2.0 KiB
RPMSpec

#
# spec file for package pam_u2f
#
# Copyright (c) 2015 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_u2f
Version: 1.0.2
Release: 0
Summary: Allows you to use U2F to authenticate against PAM
License: BSD-2-Clause
Group: Productivity/Networking/Security
Url: https://developers.yubico.com
Source0: https://developers.yubico.com/pam-u2f/Releases/%{name}-%{version}.tar.gz
Source1: https://developers.yubico.com/pam-u2f/Releases/%{name}-%{version}.tar.gz.sig
Source2: baselib.conf
BuildRequires: pam-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(u2f-host)
BuildRequires: pkgconfig(u2f-server)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The PAM U2F module provides an easy way to integrate the Yubikey
(or other U2F-compliant authenticators) into your existing user
authentication infrastructure. PAM is used by GNU/Linux, Solaris
and Mac OS X for user authentication.
%prep
%setup -q
%build
%configure --bindir=%{_bindir} --with-pam-dir=/%{_lib}/security --disable-static --disable-silent-rules
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS ChangeLog README
%{_bindir}/pamu2fcfg
%{_mandir}/man?/*
/%{_lib}/security/pam_u2f.so
%changelog