diff --git a/.gitignore b/.gitignore index 0fe4c27..e5b40e3 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ /socket2-0.5.2.crate /socket2-0.5.3.crate /socket2-0.5.4.crate +/socket2-0.5.5.crate diff --git a/rust-socket2.spec b/rust-socket2.spec index dcc09c0..b030bc8 100644 --- a/rust-socket2.spec +++ b/rust-socket2.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 -Version: 0.5.4 +Version: 0.5.5 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.conf b/rust2rpm.conf deleted file mode 100644 index 0171264..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -summary = Utilities for handling networking sockets 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 cce70f9..48de0b8 100644 --- a/socket2-fix-metadata-auto.diff +++ b/socket2-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- socket2-0.5.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ socket2-0.5.4/Cargo.toml 2023-09-12T13:31:55.709016+00:00 +--- socket2-0.5.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ socket2-0.5.5/Cargo.toml 2023-10-24T11:19:48.962811+00:00 @@ -76,12 +76,3 @@ [target."cfg(unix)".dependencies.libc] - version = "0.2.141" + version = "0.2.149" -[target."cfg(windows)".dependencies.windows-sys] -version = "0.48" diff --git a/sources b/sources index eca664c..a7a2e90 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (socket2-0.5.4.crate) = 76ec5d712b24e0c42d0400abe2d6681f0e9d707f5ed562475a0496b80a2003991564519c555a175e8837f6e8083a7216b197634e5a1a68d2f5cc268ae6e30c2a +SHA512 (socket2-0.5.5.crate) = afa8df546234d4e8f89289622448aa42d8c2ba74a0a3a4b13c0ff7bc30fa435a7d6d6e8c9e2a6933cfa23ebdfb4908c865e82c657611defbc16e1f1bf66f9f8c