commit 7627bc9167eb8acc3ed1ea0489adf8c03d21d529 Author: MSVSphere Packaging Team Date: Tue Nov 26 19:14:02 2024 +0300 import rust-ssh-key-dir-0.1.4-8.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c86a876 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/ssh-key-dir-0.1.4-vendor.tar.gz +SOURCES/ssh-key-dir-0.1.4.crate diff --git a/.rust-ssh-key-dir.metadata b/.rust-ssh-key-dir.metadata new file mode 100644 index 0000000..65c2f44 --- /dev/null +++ b/.rust-ssh-key-dir.metadata @@ -0,0 +1,2 @@ +20231db85169a7aaacac094fb2b1b7d6d0fa36f6 SOURCES/ssh-key-dir-0.1.4-vendor.tar.gz +82075ed3d4e064d9138f82ff1ad08fd7187cdffa SOURCES/ssh-key-dir-0.1.4.crate diff --git a/SPECS/rust-ssh-key-dir.spec b/SPECS/rust-ssh-key-dir.spec new file mode 100644 index 0000000..c00f162 --- /dev/null +++ b/SPECS/rust-ssh-key-dir.spec @@ -0,0 +1,164 @@ +# Generated by rust2rpm 22 +%bcond_without check + +%global crate ssh-key-dir + +Name: rust-%{crate} +Version: 0.1.4 +Release: 8%{?dist} +Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d + +License: Apache-2.0 +URL: https://crates.io/crates/ssh-key-dir +Source0: %{crates_source} +# not used on Fedora +Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz + +ExclusiveArch: %{rust_arches} + +%if 0%{?rhel} +BuildRequires: rust-toolset +%else +BuildRequires: rust-packaging >= 21 +%endif + +%global _description %{expand: +sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# Apache-2.0 +# MIT +# Apache-2.0 OR MIT +License: (Apache-2.0 OR MIT) AND Apache-2.0 AND MIT +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 +%license LICENSE +%license LICENSE.dependencies +%if 0%{?rhel} +%license cargo-vendor.txt +%endif +%doc README.md + +%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 %{?rhel:-a1} +%if 0%{?rhel} +%cargo_prep -v vendor +%else +%cargo_prep +%endif + +%if !0%{?rhel} +%generate_buildrequires +%cargo_generate_buildrequires +%endif + +%build +%cargo_build +%cargo_license_summary +%{cargo_license} > LICENSE.dependencies +%if 0%{?rhel} +%cargo_vendor_manifest +%endif + +%install +%if 0%{?rhel} +%make_install INSTALL="install -p -c" +%else +%cargo_install +mv %{buildroot}%{_bindir} %{buildroot}%{_libexecdir} +install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key-dir.conf +%endif + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jun 24 2024 Troy Dawson - 0.1.4-8 +- Bump release for June 2024 mass rebuild + +* Fri Feb 02 2024 Yaakov Selkowitz - 0.1.4-7 +- Update Rust macro usage + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Oct 24 2023 Yaakov Selkowitz - 0.1.4-5 +- Use vendored dependencies in ELN builds + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Feb 05 2023 Fabio Valentini - 0.1.4-3 +- Rebuild for fixed frame pointer compiler flags in Rust RPM macros. + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Oct 14 2022 Steven Presti - 0.1.4-1 +- New release +- Regenerate with rust2rpm 22 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.1.3-3 +- Rebuild with package notes + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jan 18 2022 Benjamin Gilbert - 0.1.3-1 +- New release + +* Fri Jan 14 2022 Sohan Kunkerkar - 0.1.2-9 +- Vendor rust dependencies on el9 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 28 13:32:56 CET 2020 Igor Raits - 0.1.2-6 +- Rebuild + +* Sun Aug 16 15:01:47 GMT 2020 Igor Raits - 0.1.2-5 +- Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 0.1.2-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Igor Raits - 0.1.2-2 +- Fixup license + +* Fri Jun 26 2020 Benjamin Gilbert - 0.1.2-1 +- New release + +* Wed Jun 17 2020 Benjamin Gilbert - 0.1.1-1 +- Initial package