# Generated by rust2rpm # Tests require nightly compiler %bcond_with check %global crate base100 Name: rust-%{crate} Version: 0.4.1 Release: 1%{?dist} Summary: Encode your data into emoji License: AGPLv3+ URL: https://crates.io/crates/base100 Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No simd Patch0: base100-0.4.1-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: ((crate(clap) >= 2.19.0 with crate(clap) < 3.0.0) with crate(clap/yaml)) %description %{summary}. %package -n %{crate} Summary: %{summary} %description -n %{crate} %{summary}. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/base100 %changelog * Thu Nov 16 2017 Igor Gnatenko - 0.4.1-1 - Update to 0.4.1 * Fri Oct 06 2017 Igor Gnatenko - 0.2.0-1 - Initial package