diff --git a/rust-socket2.spec b/rust-socket2.spec index 326b906..b4109aa 100644 --- a/rust-socket2.spec +++ b/rust-socket2.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm-9-1.fc31 -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate socket2 Name: rust-%{crate} Version: 0.3.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utilities for handling networking sockets # Upstream license specification: MIT/Apache-2.0 @@ -18,17 +18,15 @@ Source: %{crates_source} Patch0: socket2-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0) -BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0) -%if %{with check} -BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0) -%endif -%global _description \ -Utilities for handling networking sockets with a maximal amount of\ -configuration possible intended. +%global _description %{expand: +Utilities for handling networking sockets with a maximal amount of +configuration possible intended.} %description %{_description} @@ -98,6 +96,9 @@ which use "unix" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -110,6 +111,9 @@ which use "unix" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 23 10:29:52 CEST 2019 Igor Gnatenko - 0.3.9-2 +- Regenerate + * Tue May 07 07:55:39 CEST 2019 Igor Gnatenko - 0.3.9-1 - Update to 0.3.9