|
|
|
@ -1,19 +1,18 @@
|
|
|
|
|
# Generated by rust2rpm
|
|
|
|
|
# * Tests are run in infrastructure
|
|
|
|
|
# Generated by rust2rpm-9-1.fc31
|
|
|
|
|
%bcond_with check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate scopeguard
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.3.3
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 1.0.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: RAII scope guard that will run a given closure when it goes out of scope
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
|
URL: https://crates.io/crates/scopeguard
|
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
@ -23,8 +22,8 @@ BuildRequires: rust-packaging
|
|
|
|
|
A RAII scope guard that will run a given closure when it goes out of scope,\
|
|
|
|
|
even if the code between panics (assuming unwinding panic).\
|
|
|
|
|
\
|
|
|
|
|
Defines the macros `defer!` and `defer_on_unwind!`;\
|
|
|
|
|
the latter only runs if the scope is extited through unwinding on panic.
|
|
|
|
|
Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as\
|
|
|
|
|
shorthands for guards with one of the implemented strategies.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -67,7 +66,7 @@ which use "use_std" feature of "%{crate}" crate.
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -82,6 +81,9 @@ which use "use_std" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon May 06 15:45:17 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0-1
|
|
|
|
|
- Update to 1.0.0
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|