2020-06-24 14:45:54 +00:00
|
|
|
# Generated by rust2rpm 13
|
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
%global crate ssh-key-dir
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2020-06-26 09:49:20 +00:00
|
|
|
Version: 0.1.2
|
2020-06-26 14:24:28 +00:00
|
|
|
Release: 2%{?dist}
|
2020-06-24 14:45:54 +00:00
|
|
|
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://crates.io/crates/ssh-key-dir
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.}
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
2020-06-26 14:24:28 +00:00
|
|
|
# ASL 2.0
|
|
|
|
# MIT
|
|
|
|
# MIT or ASL 2.0
|
|
|
|
License: ASL 2.0 and MIT
|
2020-06-24 14:45:54 +00:00
|
|
|
Requires: openssh-server
|
|
|
|
Requires(post): openssh-server
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(postun): openssh-server
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%{_libexecdir}/ssh-key-dir
|
|
|
|
%config(noreplace) %{_sysconfdir}/ssh/sshd_config.d/40-ssh-key-dir.conf
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%post -n %{crate}
|
|
|
|
/usr/bin/systemctl try-reload-or-restart sshd.service
|
|
|
|
|
|
|
|
%postun -n %{crate}
|
|
|
|
if [ $1 == 0 ] ; then
|
|
|
|
/usr/bin/systemctl try-reload-or-restart sshd.service
|
|
|
|
fi
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
mv %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key-dir.conf
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2020-06-26 14:24:28 +00:00
|
|
|
* Fri Jun 26 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.2-2
|
|
|
|
- Fixup license
|
|
|
|
|
2020-06-26 09:49:20 +00:00
|
|
|
* Fri Jun 26 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.2-1
|
|
|
|
- New release
|
|
|
|
|
2020-06-24 14:45:54 +00:00
|
|
|
* Wed Jun 17 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.1-1
|
|
|
|
- Initial package
|