diff --git a/.gitignore b/.gitignore index 19be465..b9474e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /page_size-0.4.2.crate +/page_size-0.6.0.crate diff --git a/page_size-fix-metadata-auto.diff b/page_size-fix-metadata-auto.diff index 8512126..42ea02f 100644 --- a/page_size-fix-metadata-auto.diff +++ b/page_size-fix-metadata-auto.diff @@ -1,12 +1,16 @@ ---- page_size-0.4.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ page_size-0.4.2/Cargo.toml 2023-05-21T12:50:35.693885+00:00 -@@ -30,9 +30,6 @@ - no_std = ["spin"] +--- page_size-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ page_size-0.6.0/Cargo.toml 2023-11-25T09:16:52.055070+00:00 +@@ -37,12 +37,9 @@ [target."cfg(unix)".dependencies.libc] - version = "0.2" + version = "^0.2" + -[target."cfg(windows)".dependencies.winapi] --version = "0.3.8" +-version = "0.3.9" -features = ["sysinfoapi"] +- [badges.appveyor] repository = "Elzair/page_size_rs" + [badges.travis-ci] + repository = "Elzair/page_size_rs" ++ diff --git a/rust-page_size.spec b/rust-page_size.spec index 475fcb4..3a1c55b 100644 --- a/rust-page_size.spec +++ b/rust-page_size.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate page_size Name: rust-page_size -Version: 0.4.2 +Version: 0.6.0 Release: %autorelease Summary: Easy, fast, cross-platform way to retrieve the memory page size @@ -13,10 +13,10 @@ Summary: Easy, fast, cross-platform way to retrieve the memory page size License: MIT OR Apache-2.0 URL: https://crates.io/crates/page_size Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: page_size-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Provides an easy, fast, cross-platform way to retrieve the memory page @@ -76,7 +76,7 @@ use the "spin" 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/sources b/sources index 1aaf9a1..0a41108 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (page_size-0.4.2.crate) = 171f1c4fecec80538a3ef0063c0cf1ebd611d9208a45329d769705db05f71973a140c497164393cac571934c3e2d24ab4caa055365f24cd4785fbd3d4d0f607a +SHA512 (page_size-0.6.0.crate) = 204faf102760e9f3edc480302a7d7e6b995b7a40850372ebb332cab82b9c8301e761351c7abce93bde9473ad9e944bb07e6c4447d4ee1891f5ae2c261b74b8e5