You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-remove_dir_all/rust-remove_dir_all.spec

63 lines
1.5 KiB

# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate remove_dir_all
Name: rust-%{crate}
Version: 0.3.0
Release: 2%{?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
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-1
- Initial package