diff --git a/mio-fix-metadata.diff b/mio-fix-metadata.diff index b3acd64..f453c8d 100644 --- a/mio-fix-metadata.diff +++ b/mio-fix-metadata.diff @@ -1,6 +1,6 @@ ---- mio-0.6.16/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ mio-0.6.16/Cargo.toml 2019-02-10T09:18:06.012625+01:00 -@@ -54,18 +54,5 @@ +--- mio-0.6.19/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ mio-0.6.19/Cargo.toml 2019-06-21T19:27:15.727108+00:00 +@@ -51,18 +51,5 @@ [features] default = ["with-deprecated"] with-deprecated = [] diff --git a/rust-mio.spec b/rust-mio.spec index dce6c0e..12a7d61 100644 --- a/rust-mio.spec +++ b/rust-mio.spec @@ -1,14 +1,15 @@ -# Generated by rust2rpm-9-1.fc30 -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate mio Name: rust-%{crate} Version: 0.6.19 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Lightweight non-blocking IO +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/mio Source: %{crates_source} @@ -17,21 +18,14 @@ Source: %{crates_source} Patch0: mio-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(iovec/default) >= 0.1.1 with crate(iovec/default) < 0.2.0) -BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0) -BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) -BuildRequires: (crate(net2/default) >= 0.2.29 with crate(net2/default) < 0.3.0) -BuildRequires: (crate(slab/default) >= 0.4.0 with crate(slab/default) < 0.5.0) -%if %{with check} -BuildRequires: (crate(bytes/default) >= 0.3.0 with crate(bytes/default) < 0.4.0) -BuildRequires: (crate(env_logger) >= 0.4.0 with crate(env_logger) < 0.5.0) -BuildRequires: (crate(tempdir/default) >= 0.3.4 with crate(tempdir/default) < 0.4.0) -%endif -%global _description \ -Lightweight non-blocking IO. +%global _description %{expand: +Lightweight non-blocking IO.} %description %{_description} @@ -78,6 +72,9 @@ which use "with-deprecated" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -90,6 +87,9 @@ which use "with-deprecated" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 21 21:27:15 CEST 2019 Igor Gnatenko - 0.6.19-2 +- Regenerate + * Sat Jun 01 2019 Josh Stone - 0.6.19-1 - Update to 0.6.19