Use vendored dependencies in ELN builds
Like RHEL, individual rust crate dependencies are unwanted in ELN. Also, use the rust-toolset %cargo_prep -V in RHEL and ELN builds.
This commit is contained in:
parent
61972ab27b
commit
219b029bc0
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: rust-%{crate}
|
Name: rust-%{crate}
|
||||||
Version: 0.1.4
|
Version: 0.1.4
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
|
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -16,7 +16,7 @@ Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}
|
|||||||
|
|
||||||
ExclusiveArch: %{rust_arches}
|
ExclusiveArch: %{rust_arches}
|
||||||
|
|
||||||
%if 0%{?rhel} && !0%{?eln}
|
%if 0%{?rhel}
|
||||||
BuildRequires: rust-toolset
|
BuildRequires: rust-toolset
|
||||||
%else
|
%else
|
||||||
BuildRequires: rust-packaging >= 21
|
BuildRequires: rust-packaging >= 21
|
||||||
@ -57,21 +57,13 @@ fi
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||||
%if 0%{?rhel} && !0%{?eln}
|
%if 0%{?rhel}
|
||||||
tar xvf %{SOURCE1}
|
%cargo_prep -V 1
|
||||||
mkdir -p .cargo
|
|
||||||
cat >.cargo/config << EOF
|
|
||||||
[source.crates-io]
|
|
||||||
replace-with = "vendored-sources"
|
|
||||||
|
|
||||||
[source.vendored-sources]
|
|
||||||
directory = "vendor"
|
|
||||||
EOF
|
|
||||||
%else
|
%else
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !0%{?rhel} || 0%{?eln}
|
%if !0%{?rhel}
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%cargo_generate_buildrequires
|
%cargo_generate_buildrequires
|
||||||
%endif
|
%endif
|
||||||
@ -80,7 +72,7 @@ EOF
|
|||||||
%cargo_build
|
%cargo_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?rhel} && !0%{?eln}
|
%if 0%{?rhel}
|
||||||
%make_install INSTALL="install -p -c"
|
%make_install INSTALL="install -p -c"
|
||||||
%else
|
%else
|
||||||
%cargo_install
|
%cargo_install
|
||||||
@ -94,6 +86,9 @@ install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.1.4-5
|
||||||
|
- Use vendored dependencies in ELN builds
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user