# Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate pam-ssh-agent Name: rust-pam-ssh-agent Version: 0.9.0 Release: %autorelease Summary: PAM module that authenticates using the ssh-agent License: MIT OR Apache-2.0 URL: https://crates.io/crates/pam-ssh-agent Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 26 BuildRequires: pam-devel %global _description %{expand: A PAM module that authenticates using the ssh-agent.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %doc README.md %{_libdir}/security/pam_ssh_agent.so %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install install -d -m 755 %{buildroot}%{_libdir}/security install -m 755 target/release/libpam_ssh_agent.so %{buildroot}%{_libdir}/security/pam_ssh_agent.so %if %{with check} %check %cargo_test %endif %changelog %autochangelog