diff --git a/.gitignore b/.gitignore index c90aa0d..c3d910a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /errno-0.2.3.crate /errno-0.2.4.crate +/errno-0.2.5.crate diff --git a/errno-fix-metadata.diff b/errno-fix-metadata.diff index 4aade83..90c8fa5 100644 --- a/errno-fix-metadata.diff +++ b/errno-fix-metadata.diff @@ -1,16 +1,17 @@ ---- errno-0.2.4/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ errno-0.2.4/Cargo.toml 2018-11-02T18:45:02.098347+01:00 -@@ -19,13 +19,8 @@ +--- errno-0.2.5/Cargo.toml 2020-03-27T11:47:46+00:00 ++++ errno-0.2.5/Cargo.toml 2020-03-27T11:55:30.957665+00:00 +@@ -19,14 +19,7 @@ categories = ["os"] license = "MIT/Apache-2.0" - repository = "https://github.com/lfairy/rust-errno" + repository = "https://github.com/lambda-fairy/rust-errno" -[target."cfg(target_os=\"dragonfly\")".dependencies.errno-dragonfly] -version = "0.1.1" +-[target."cfg(target_os=\"wasi\")".dependencies.libc] +-version = "0.2" [target."cfg(unix)".dependencies.libc] version = "0.2" -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["errhandlingapi", "minwindef", "ntdef", "winbase"] - [badges.appveyor] - repository = "lfairy/rust-errno" - + [badges.travis-ci] + repository = "lambda-fairy/rust-errno" diff --git a/rust-errno.spec b/rust-errno.spec index 44de0e4..d8def6b 100644 --- a/rust-errno.spec +++ b/rust-errno.spec @@ -1,29 +1,31 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate errno Name: rust-%{crate} -Version: 0.2.4 -Release: 6%{?dist} +Version: 0.2.5 +Release: 1%{?dist} Summary: Cross-platform interface to the `errno` variable # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/errno -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows or dragonfly Patch0: errno-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) -%global _description \ -Cross-platform interface to the `errno` variable. +%global _description %{expand: +Cross-platform interface to the `errno` variable.} %description %{_description} @@ -39,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,12 +53,15 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 @@ -69,6 +74,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Fri Mar 27 12:55:31 CET 2020 Igor Raits - 0.2.5-1 +- Update to 0.2.5 + * Thu Jan 30 2020 Fedora Release Engineering - 0.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 8107e81..410f739 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (errno-0.2.4.crate) = 039b7bcaed996bb6f48b28aaf44e7008d4b2f6b08213542aaa5fa82e3be87f29e9bc17fdefbf0f159473d292f37464d6888ac8da0a9aec418b1be2de7e2eeab7 +SHA512 (errno-0.2.5.crate) = 4679c18b75b3f345a36b2c8649a0e8c17bab772ab6659eeaddef8337ce244d1d36be36d9c38bb7ed4558083c64f98e47dadf689ab39ba37d7bee4a7f661ba06f