Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 221fe56d059bc25bc1313261f464d345 > files > 3

rust-remove_dir_all-0.7.0-2.mga9.src.rpm

# Generated by rust2rpm 19
# * tests seem to be broken with Rust 1.55+
%bcond_with check

%global crate remove_dir_all

Name:           rust-%{crate}
Version:        0.7.0
Release:        %mkrel 2
Summary:        Safe, reliable implementation of remove_dir_all
Group:          Development/Other

# Upstream license specification: MIT/Apache-2.0
License:        MIT or ASL 2.0
URL:            https://crates.io/crates/remove_dir_all
Source:         %{crates_source}
# Initial patched metadata
# * drop windows-specific dependencies
Patch0:         remove_dir_all-fix-metadata.diff

ExclusiveArch:  %{rust_arches}
BuildArch:      noarch

BuildRequires:  rust-packaging
BuildRequires:  crate(libc/default)

%global _description %{expand:
Safe, reliable implementation of remove_dir_all for Windows.}

%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 LICENCE-APACHE LICENCE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/

%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 "the default" feature of the "%{crate}" crate.

%files       -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif


%changelog
* Mon Mar 21 2022 umeabot <umeabot> 0.7.0-2.mga9
+ Revision: 1816172
- Mageia 9 Mass Rebuild

* Tue Feb 15 2022 guillomovitch <guillomovitch> 0.7.0-1.mga9
+ Revision: 1775797
- imported package rust-remove_dir_all