# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate remove_dir_all Name: rust-%{crate} Version: 0.3.0 Release: 1%{?dist} Summary: Safe, reliable implementation of remove_dir_all License: MIT or ASL 2.0 URL: https://crates.io/crates/remove_dir_all Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No windows Patch0: remove_dir_all-0.3.0-fix-metadata.diff # https://github.com/Aaronepower/remove_dir_all/commit/a52b3a1206ca8ff387e3931d6b35b7b194d11617 Patch0001: 0001-Make-API-the-same-on-all-platforms-simplify-Linux-co.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel A safe, reliable implementation of remove_dir_all for Windows. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENCE-MIT LICENCE-APACHE %{cargo_registry}/%{crate}-%{version}/ %changelog * Wed Jan 31 2018 Igor Gnatenko - 0.3.0-1 - Initial package