|
|
308176 |
# Generated by rust2rpm 13
|
|
|
308176 |
%bcond_without check
|
|
|
308176 |
%global __cargo_skip_build 0
|
|
|
308176 |
|
|
|
308176 |
%global crate ssh-key-dir
|
|
|
308176 |
|
|
|
308176 |
Name: rust-%{crate}
|
|
|
308176 |
Version: 0.1.3
|
|
|
308176 |
Release: 2%{?dist}
|
|
|
308176 |
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
|
|
|
308176 |
|
|
|
308176 |
# Upstream license specification: Apache-2.0
|
|
|
308176 |
License: ASL 2.0
|
|
|
308176 |
URL: https://crates.io/crates/ssh-key-dir
|
|
|
308176 |
Source0: %{crates_source}
|
|
|
308176 |
# not used on Fedora
|
|
|
308176 |
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
|
|
308176 |
|
|
|
308176 |
ExclusiveArch: %{rust_arches}
|
|
|
308176 |
|
|
|
308176 |
%if 0%{?rhel} && !0%{?eln}
|
|
|
308176 |
BuildRequires: rust-toolset
|
|
|
308176 |
%else
|
|
|
308176 |
BuildRequires: rust-packaging
|
|
|
308176 |
%endif
|
|
|
308176 |
|
|
|
308176 |
%global _description %{expand:
|
|
|
308176 |
sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.}
|
|
|
308176 |
|
|
|
308176 |
%description %{_description}
|
|
|
308176 |
|
|
|
308176 |
%package -n %{crate}
|
|
|
308176 |
Summary: %{summary}
|
|
|
308176 |
# ASL 2.0
|
|
|
308176 |
# MIT
|
|
|
308176 |
# MIT or ASL 2.0
|
|
|
308176 |
License: ASL 2.0 and MIT
|
|
|
308176 |
Requires: openssh-server
|
|
|
308176 |
Requires(post): openssh-server
|
|
|
308176 |
Requires(post): systemd
|
|
|
308176 |
Requires(postun): openssh-server
|
|
|
308176 |
Requires(postun): systemd
|
|
|
308176 |
|
|
|
308176 |
%description -n %{crate} %{_description}
|
|
|
308176 |
|
|
|
308176 |
%files -n %{crate}
|
|
|
308176 |
%{_libexecdir}/ssh-key-dir
|
|
|
308176 |
%config(noreplace) %{_sysconfdir}/ssh/sshd_config.d/40-ssh-key-dir.conf
|
|
|
308176 |
%license LICENSE
|
|
|
308176 |
%doc README.md
|
|
|
308176 |
|
|
|
308176 |
%post -n %{crate}
|
|
|
308176 |
/usr/bin/systemctl try-reload-or-restart sshd.service
|
|
|
308176 |
|
|
|
308176 |
%postun -n %{crate}
|
|
|
308176 |
if [ $1 == 0 ] ; then
|
|
|
308176 |
/usr/bin/systemctl try-reload-or-restart sshd.service
|
|
|
308176 |
fi
|
|
|
308176 |
|
|
|
308176 |
%prep
|
|
|
308176 |
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
308176 |
%if 0%{?rhel} && !0%{?eln}
|
|
|
308176 |
tar xvf %{SOURCE1}
|
|
|
308176 |
mkdir -p .cargo
|
|
|
308176 |
cat >.cargo/config << EOF
|
|
|
308176 |
[source.crates-io]
|
|
|
308176 |
replace-with = "vendored-sources"
|
|
|
308176 |
|
|
|
308176 |
[source.vendored-sources]
|
|
|
308176 |
directory = "vendor"
|
|
|
308176 |
EOF
|
|
|
308176 |
%else
|
|
|
308176 |
%cargo_prep
|
|
|
308176 |
%endif
|
|
|
308176 |
|
|
|
308176 |
|
|
|
308176 |
%if !0%{?rhel} || 0%{?eln}
|
|
|
308176 |
%generate_buildrequires
|
|
|
308176 |
%cargo_generate_buildrequires
|
|
|
308176 |
%endif
|
|
|
308176 |
|
|
|
308176 |
%build
|
|
|
308176 |
%cargo_build
|
|
|
308176 |
|
|
|
308176 |
%install
|
|
|
308176 |
%if 0%{?rhel} && !0%{?eln}
|
|
|
308176 |
%make_install INSTALL="install -p -c"
|
|
|
308176 |
%else
|
|
|
308176 |
%cargo_install
|
|
|
308176 |
mv %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}
|
|
|
308176 |
install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key-dir.conf
|
|
|
308176 |
%endif
|
|
|
308176 |
|
|
|
308176 |
%if %{with check}
|
|
|
308176 |
%check
|
|
|
308176 |
%cargo_test
|
|
|
308176 |
%endif
|
|
|
308176 |
|
|
|
308176 |
%changelog
|
|
|
308176 |
* Wed Mar 09 2022 Timothée Ravier <tim@siosm.fr> - 0.1.3-2
|
|
|
308176 |
- Remove Windows binaries from vendor tarball
|
|
|
308176 |
|
|
|
308176 |
* Tue Jan 18 2022 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.3-1
|
|
|
308176 |
- New release
|
|
|
308176 |
|
|
|
308176 |
* Mon Jan 17 2022 Sohan Kunkerkar <skunkerk@redhat.com> - 0.1.2-9
|
|
|
308176 |
- Vendor rust dependencies on el9
|
|
|
308176 |
|
|
|
308176 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-8
|
|
|
308176 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
308176 |
|
|
|
308176 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-7
|
|
|
308176 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
308176 |
|
|
|
308176 |
* Mon Dec 28 13:32:56 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.2-6
|
|
|
308176 |
- Rebuild
|
|
|
308176 |
|
|
|
308176 |
* Sun Aug 16 15:01:47 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.2-5
|
|
|
308176 |
- Rebuild
|
|
|
308176 |
|
|
|
308176 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
|
|
|
308176 |
- Second attempt - Rebuilt for
|
|
|
308176 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
308176 |
|
|
|
308176 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-3
|
|
|
308176 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
308176 |
|
|
|
308176 |
* Fri Jun 26 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.2-2
|
|
|
308176 |
- Fixup license
|
|
|
308176 |
|
|
|
308176 |
* Fri Jun 26 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.2-1
|
|
|
308176 |
- New release
|
|
|
308176 |
|
|
|
308176 |
* Wed Jun 17 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.1-1
|
|
|
308176 |
- Initial package
|