File pam-python3.spec of Package python3-pam
#
# spec file for package pam-python3
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: pam-python3
Version: 1.0.7+git.20220331.9641aa5
Release: 0
Summary: A PAM Module that runs the Python interpreter
License: AGPL-3.0-or-later
URL: https://github.com/castlabs/pam-python
Source: %{name}-%{version}.tar.xz
Group: System/Libraries
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: python3-Sphinx
BuildRequires: pkgconfig(python3)
%description
pam_python3 is a PAM module that runs the Python interpreter and so allows PAM modules to be written in Python.
This package is based on the forked version at https://github.com/castlabs/pam-python that supports python3.
%package doc
Summary: Documentation for pam-python3
BuildArch: noarch
%description doc
pam_python3 is a PAM module that runs the Python interpreter and so allows PAM modules to be written in Python.
This package provides documentation for writing python based PAM modules.
%prep
%autosetup
%build
%make_build
%install
export LIBDIR=/%{_lib}/security DOCDIR=%{_docdir}/%{name}
%make_install
%files
%license agpl-3.0.txt
%doc ChangeLog.txt README.txt
/%{_lib}/security/*.so
%files doc
%{_docdir}/%{name}/examples/
%{_docdir}/%{name}/html/
%changelog