# Generated by rust2rpm 12 %bcond_without check %global __cargo_skip_build 0 %global crate coreos-installer Name: rust-%{crate} Version: 0.1.0 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 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} Obsoletes: coreos-installer < 0.0.1 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 * Tue Dec 17 09:03:44 UTC 2019 Robert Fairley - 0.1.0-1 - Initial package