From 7f6145f8536d5255bf6e6c7fd38a0a6d9fa064aa Mon Sep 17 00:00:00 2001 From: Robert Fairley Date: Fri, 20 Dec 2019 21:25:42 +0000 Subject: [PATCH] Initial import (#1784420) Signed-off-by: Robert Fairley --- .gitignore | 1 + coreos-installer-fix-metadata.diff | 20 +++++++++ rust-coreos-installer.spec | 70 ++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 coreos-installer-fix-metadata.diff create mode 100644 rust-coreos-installer.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f82eea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/coreos-installer-0.1.1.crate diff --git a/coreos-installer-fix-metadata.diff b/coreos-installer-fix-metadata.diff new file mode 100644 index 0000000..69644cc --- /dev/null +++ b/coreos-installer-fix-metadata.diff @@ -0,0 +1,20 @@ +--- coreos-installer-0.1.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ coreos-installer-0.1.1/Cargo.toml 2019-12-20T17:57:28.773472+00:00 +@@ -51,7 +51,7 @@ + version = "^1.0.13" + + [dependencies.nix] +-version = "^0.16.0" ++version = "^0.15.0" + + [dependencies.progress-streams] + version = "^1.1.0" +@@ -60,7 +60,7 @@ + version = "1.3.1" + + [dependencies.reqwest] +-version = "^0.9.24" ++version = "^0.9.13" + + [dependencies.serde] + version = "1.0" diff --git a/rust-coreos-installer.spec b/rust-coreos-installer.spec new file mode 100644 index 0000000..1fa3992 --- /dev/null +++ b/rust-coreos-installer.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 12 +%bcond_without check +%global __cargo_skip_build 0 + +%global crate coreos-installer + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Installer for Fedora CoreOS and RHEL CoreOS + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/coreos-installer +Source: %{crates_source} +# Initial patched metadata +# - Downgrade reqwest to 0.9.13 in Cargo manifest +# - Downgrade nix to 0.15.0 in Cargo manifest +Patch0: coreos-installer-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +coreos-installer installs Fedora CoreOS or RHEL CoreOS to bare-metal +machines (or, occasionally, to virtual machines). +} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +# Since `rust-coreos-installer` creates a `coreos-installer` +# subpackage with a newer version number, which supersedes the +# deprecated `coreos-installer` package (https://src.fedoraproject.org/rpms/coreos-installer), +# an explicit `Obsoletes:` for `coreos-installer` is not necessary. + +# Obsolete dracut modules as they are not provided in this package. +Obsoletes: coreos-installer-dracut < 0.0.1 + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/coreos-installer + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 17:57:28 UTC 2019 Robert Fairley - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..fc2e985 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (coreos-installer-0.1.1.crate) = 6e62bd6073b010ecfc9123275d4bd2ae40789b5bca54bb6f5d55b33f0f99b8ba03a2a141f7d9a48ea3190e5c98e3a7f3ba95027dab45726f4f48496ba543b5a8