# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate pbr Name: rust-%{crate} Version: 1.0.1 Release: 1%{?dist} Summary: Console progress bar for Rust License: MIT URL: https://crates.io/crates/pbr Source: %{crates_source} # Initial patched metadata # * Update rand to 0.5, https://github.com/a8m/pb/commit/1f1cd1858c568cbc9b06eaa916850331711c2473 Patch0: pbr-fix-metadata.diff # Make it work with new rand Patch0001: 0001-deps-update-rand-to-0.5.patch # https://github.com/a8m/pb/commit/7f2afc2458950b928bd3ca54bba3a9fd205bfb86 Patch0002: 0001-Fix-doctests.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) BuildRequires: (crate(time/default) >= 0.1.35 with crate(time/default) < 0.2.0) %if %{with check} BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) %endif %global _description \ Console progress bar for Rust. %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.md %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 * Thu Mar 14 2019 Igor Gnatenko - 1.0.1-1 - Initial package