diff --git a/.gitignore b/.gitignore index 015e849..c87aca8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /socket2-0.4.9.crate +/socket2-0.4.10.crate diff --git a/rust-socket2_0.4.spec b/rust-socket2_0.4.spec index 9ff239b..8919162 100644 --- a/rust-socket2_0.4.spec +++ b/rust-socket2_0.4.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate socket2 Name: rust-socket2_0.4 -Version: 0.4.9 +Version: 0.4.10 Release: %autorelease Summary: Utilities for handling networking sockets License: MIT OR Apache-2.0 URL: https://crates.io/crates/socket2 Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: socket2-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Utilities for handling networking sockets with a maximal amount of @@ -63,7 +63,7 @@ use the "all" 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..7c58735 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Utilities for handling networking sockets" + diff --git a/socket2-fix-metadata-auto.diff b/socket2-fix-metadata-auto.diff index 05a2043..69d95c5 100644 --- a/socket2-fix-metadata-auto.diff +++ b/socket2-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- socket2-0.4.9/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ socket2-0.4.9/Cargo.toml 2023-05-10T15:27:24.801228+00:00 +--- socket2-0.4.10/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ socket2-0.4.10/Cargo.toml 2023-10-24T11:20:21.627943+00:00 @@ -59,10 +59,3 @@ [target."cfg(unix)".dependencies.libc] - version = "0.2.139" + version = "0.2.149" -[target."cfg(windows)".dependencies.winapi] -version = "0.3.9" diff --git a/sources b/sources index 4d6841b..66bd83c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (socket2-0.4.9.crate) = 6cb2aabc409fc7d9942afc2073a36ad8730c06dcdab1866b9d3d72dc55afc643be6a2ca1f38c2e19fbfe782ae584512a1ab357c0f4974f98967a4f489e65331f +SHA512 (socket2-0.4.10.crate) = eeb0bdb86ad969f3cce4735c99aa812a867b11a5ec88a53fc7f5e399c510b47ab14d06bbfba63398fec0a0f65835edaedb7eca7fe36aeaf4805843aa9f0dd5ce