From 6ec0c8cea8fa16c553356960cbc5ad5ea61d2aea Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 14 Oct 2023 23:51:47 +0200 Subject: [PATCH] Update to version 0.27.1; Fixes RHBZ#2235219 --- .gitignore | 1 + nix-fix-metadata-auto.diff | 10 +++++----- rust-nix.spec | 10 +++++----- rust2rpm.toml | 3 +++ sources | 2 +- 5 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 17699f3..4b8211a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ /nix-0.26.2.crate /nix-0.26.3.crate /nix-0.26.4.crate +/nix-0.27.1.crate diff --git a/nix-fix-metadata-auto.diff b/nix-fix-metadata-auto.diff index 19767b2..7070101 100644 --- a/nix-fix-metadata-auto.diff +++ b/nix-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- nix-0.26.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ nix-0.26.4/Cargo.toml 2023-08-29T20:52:43.334989+00:00 -@@ -178,5 +178,3 @@ - version = "0.7" - optional = true +--- nix-0.27.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ nix-0.27.1/Cargo.toml 2023-10-14T19:47:36.952259+00:00 +@@ -143,5 +143,3 @@ + [target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dev-dependencies.caps] + version = "0.5.3" -[target."cfg(target_os = \"freebsd\")".dev-dependencies.sysctl] -version = "0.4" diff --git a/rust-nix.spec b/rust-nix.spec index b2ba938..2ef7114 100644 --- a/rust-nix.spec +++ b/rust-nix.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * many tests don't work when virtualized / containerized %bcond_with check %global debug_package %{nil} @@ -6,17 +6,17 @@ %global crate nix Name: rust-nix -Version: 0.26.4 +Version: 0.27.1 Release: %autorelease Summary: Rust friendly bindings to *nix APIs License: MIT URL: https://crates.io/crates/nix Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: nix-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust friendly bindings to *nix APIs.} @@ -459,7 +459,7 @@ use the "zerocopy" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..7be4118 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[tests] +run = ["none"] +comments = ["many tests don't work when virtualized / containerized"] diff --git a/sources b/sources index b7c9467..7046806 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nix-0.26.4.crate) = cc68ff8e3e8ea8635c6fd4c0a866cf42121aa3e25165666ef3b97b5b2c1d9273cba6f689e80eb812b55b5ee513390924a926d95fce45de0a74b98764dd1fa27d +SHA512 (nix-0.27.1.crate) = 7b35a0f87427eb1b5e1480d7daedafea4609b7f3a4fcf48ca99bdbc2f150865996539f2c51c7ae6a6a13169614681fc838efb306994b020d44b45735a7380010