# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate chbs Name: rust-%{crate} Version: 0.0.8 Release: 1%{?dist} Summary: Crate providing secure passphrase generation based on a wordlist License: MIT URL: https://crates.io/crates/chbs Source: %{crates_source} # Initial patched metadata # * Update derive_builder to 0.7, https://gitlab.com/timvisee/chbs/commit/cfe1b75b6e0fa78df9c666c8a43ff57838f36748 # * Update rand to 0.6, https://gitlab.com/timvisee/chbs/commit/227cc36a34818ef1ca44f03590c83a7cc2c0ff16 Patch0: chbs-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(derive_builder/default) >= 0.7.0 with crate(derive_builder/default) < 0.8.0) BuildRequires: (crate(failure/default) >= 0.1.0 with crate(failure/default) < 0.2.0) BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0) %global _description \ A crate providing secure passphrase generation based on a wordlist. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Mar 13 2019 Igor Gnatenko - 0.0.8-1 - Initial package