<pre><code># Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate scopeguard
Name: rust-%{crate}
Version: 0.3.3
Release: 1%{?dist}
Summary: RAII scope guard that will run a given closure when it goes out of scope
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
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
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.
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 LICENSE-MIT LICENSE-APACHE
%doc README.rst
%{cargo_registry}/%{crate}-%{version}/
%doc %{cargo_registry}/%{crate}-%{version}/examples
%changelog
* Mon Oct 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.3-1
- Update to 0.3.3
* Thu Jun 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.2-1
- Initial package
</code></pre>
<p>from build.log:</p>
<pre><code>warning: File listed twice: /usr/share/cargo/registry/scopeguard-0.3.3/examples
warning: File listed twice: /usr/share/cargo/registry/scopeguard-0.3.3/examples/readme.rs
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/336#issuecomment-338647214">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb803p3IEdsyBU_fSAf6bMQVNPEt0Xwks5svIp1gaJpZM4QCuXr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb807JRUcXrLFVvqNgFzaILXRWbx0JIks5svIp1gaJpZM4QCuXr.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/rpm-software-management/rpm/issues/336#issuecomment-338647214"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rpm-software-management/rpm","title":"rpm-software-management/rpm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rpm-software-management/rpm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@ignatenkobrain in #336: ```\r\n# Generated by rust2rpm\r\n%bcond_without check\r\n%global debug_package %{nil}\r\n\r\n%global crate scopeguard\r\n\r\nName: rust-%{crate}\r\nVersion: 0.3.3\r\nRelease: 1%{?dist}\r\nSummary: RAII scope guard that will run a given closure when it goes out of scope\r\n\r\nLicense: MIT or ASL 2.0\r\nURL: https://crates.io/crates/scopeguard\r\nSource0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate\r\n\r\nExclusiveArch: %{rust_arches}\r\n\r\nBuildRequires: rust-packaging\r\n\r\n%description\r\n%{summary}.\r\n\r\n%package devel\r\nSummary: %{summary}\r\nBuildArch: noarch\r\n\r\n%description devel\r\nA RAII scope guard that will run a given closure when it goes out of scope,\r\neven if the code between panics (assuming unwinding panic).\r\n\r\nDefines the macros `defer!` and `defer_on_unwind!`; the latter only runs\r\nif the scope is extited through unwinding on panic.\r\n\r\nThis package contains library source intended for building other packages\r\nwhich use %{crate} from crates.io.\r\n\r\n%prep\r\n%autosetup -n %{crate}-%{version} -p1\r\n%cargo_prep\r\n\r\n%build\r\n%cargo_build\r\n\r\n%install\r\n%cargo_install\r\n\r\n%if %{with check}\r\n%check\r\n%cargo_test\r\n%endif\r\n\r\n%files devel\r\n%license LICENSE-MIT LICENSE-APACHE\r\n%doc README.rst\r\n%{cargo_registry}/%{crate}-%{version}/\r\n%doc %{cargo_registry}/%{crate}-%{version}/examples\r\n\r\n%changelog\r\n* Mon Oct 23 2017 Igor Gnatenko \u003cignatenkobrain@fedoraproject.org\u003e - 0.3.3-1\r\n- Update to 0.3.3\r\n\r\n* Thu Jun 15 2017 Igor Gnatenko \u003cignatenkobrain@fedoraproject.org\u003e - 0.3.2-1\r\n- Initial package\r\n```\r\n\r\nfrom build.log:\r\n\r\n```\r\nwarning: File listed twice: /usr/share/cargo/registry/scopeguard-0.3.3/examples\r\nwarning: File listed twice: /usr/share/cargo/registry/scopeguard-0.3.3/examples/readme.rs\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/rpm-software-management/rpm/issues/336#issuecomment-338647214"}}}</script>