diff --git a/net2-fix-metadata.diff b/net2-fix-metadata.diff index d8ed5e1..2c599cb 100644 --- a/net2-fix-metadata.diff +++ b/net2-fix-metadata.diff @@ -1,5 +1,5 @@ ---- net2-0.2.33/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ net2-0.2.33/Cargo.toml 2018-11-11T13:44:38.254464+01:00 +--- net2-0.2.33/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ net2-0.2.33/Cargo.toml 2019-06-22T07:37:47.354641+00:00 @@ -29,6 +29,3 @@ nightly = [] [target."cfg(any(target_os=\"redox\", unix))".dependencies.libc] diff --git a/rust-net2.spec b/rust-net2.spec index a6fb6f3..422332f 100644 --- a/rust-net2.spec +++ b/rust-net2.spec @@ -1,30 +1,31 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate net2 Name: rust-%{crate} Version: 0.2.33 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Extensions to the standard library's networking types as proposed in RFC 1158 # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/net2 -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows Patch0: net2-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) -%global _description \ -Extensions to the standard library's networking types as proposed in RFC 1158. +%global _description %{expand: +Extensions to the standard library's networking types as proposed in RFC 1158.} %description %{_description} @@ -66,10 +67,25 @@ which use "duration" feature of "%{crate}" crate. %files -n %{name}+duration-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages +which use "nightly" feature of "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -82,6 +98,9 @@ which use "duration" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 09:37:47 CEST 2019 Igor Gnatenko - 0.2.33-6 +- Regenerate + * Sat Mar 09 2019 Igor Gnatenko - 0.2.33-5 - Adapt to new packaging