# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate net2 Name: rust-%{crate} Version: 0.2.33 Release: 1%{?dist} Summary: Extensions to the standard library's networking types as proposed in RFC 1158 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 # Initial patched metadata # * No windows # * No nightly Patch0: net2-0.2.33-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) BuildRequires: (crate(libc) >= 0.2.42 with crate(libc) < 0.3.0) %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Extensions to the standard library's networking types as proposed in RFC 1158. 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.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog * Thu Jun 28 2018 Igor Gnatenko - 0.2.33-1 - Update to 0.2.33 * Thu Mar 01 2018 Josh Stone - 0.2.32-1 - Update to 0.2.32 * Fri Feb 09 2018 Fedora Release Engineering - 0.2.31-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.2.31-2 - Rebuild for rust-packaging v5 * Tue Nov 07 2017 Igor Gnatenko - 0.2.31-1 - Update to 0.2.31 * Fri Jun 16 2017 Igor Gnatenko - 0.2.29-1 - Initial package