File pam_userdb_auth.spec of Package pam-userdb-auth
#
# spec file for package webidamd
#
# Copyright (c) 2025 Dominik George <nik@velocitux.com>
#
# 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_userdb_auth
Version: 0.1.0~0
Release: 0
Summary: PAM module vor systemd-userdbd's authentication interface
License: LGPL-2.1-or-later
URL: https://docs.bergblau.io/components/pam_userdb_auth/
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: pam-devel
ExclusiveArch: %{rust_tier1_arches}
%description
This PAM module can authenticate against a systemd-userdbd service through the
Varlink-based authentication interface (currently not official).
%prep
%autosetup -p1 -a1
%build
%{cargo_build}
%install
install -D -m 0755 %{_builddir}/%{name}-%{version}/target/release/libpam_userdb_auth.so %{buildroot}%{_pam_moduledir}/pam_userdb_auth.so
%check
%{cargo_test}
%files
%license LICENSE
#%doc README.md
%{_pam_moduledir}/pam_userdb_auth.so
%changelog