Update to version 0.4.7; Fixes RHBZ#2121757

epel9
Fabio Valentini 3 years ago
parent 84e77ba86a
commit bc209240af
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -20,3 +20,4 @@
/socket2-0.4.2.crate /socket2-0.4.2.crate
/socket2-0.4.3.crate /socket2-0.4.3.crate
/socket2-0.4.4.crate /socket2-0.4.4.crate
/socket2-0.4.7.crate

@ -1,25 +1,23 @@
# Generated by rust2rpm 20 # Generated by rust2rpm 22
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate socket2 %global crate socket2
Name: rust-%{crate} Name: rust-socket2
Version: 0.4.4 Version: 0.4.7
Release: %autorelease Release: %autorelease
Summary: Utilities for handling networking sockets Summary: Utilities for handling networking sockets
# Upstream license specification: MIT OR Apache-2.0 License: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/socket2 URL: https://crates.io/crates/socket2
Source: %{crates_source} Source: %{crates_source}
# Initial patched metadata # Automatically generated patch to strip foreign dependencies
# * drop windows-specific dependencies Patch: socket2-fix-metadata-auto.diff
Patch0: socket2-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging >= 21
%global _description %{expand: %global _description %{expand:
Utilities for handling networking sockets with a maximal amount of Utilities for handling networking sockets with a maximal amount of
@ -37,9 +35,10 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate. use the "%{crate}" crate.
%files devel %files devel
%license LICENSE-APACHE LICENSE-MIT %license %{crate_instdir}/LICENSE-APACHE
%doc README.md %license %{crate_instdir}/LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/ %doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel %package -n %{name}+default-devel
Summary: %{summary} Summary: %{summary}
@ -51,7 +50,7 @@ This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate. use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+all-devel %package -n %{name}+all-devel
Summary: %{summary} Summary: %{summary}
@ -63,7 +62,7 @@ This package contains library source intended for building other packages which
use the "all" feature of the "%{crate}" crate. use the "all" feature of the "%{crate}" crate.
%files -n %{name}+all-devel %files -n %{name}+all-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1

@ -0,0 +1,13 @@
--- socket2-0.4.7/Cargo.toml 1970-01-01T00:00:01+00:00
+++ socket2-0.4.7/Cargo.toml 1970-01-01T00:00:01+00:00
@@ -59,10 +59,3 @@
[target."cfg(unix)".dependencies.libc]
version = "0.2.124"
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3.9"
-features = [
- "handleapi",
- "ws2ipdef",
- "ws2tcpip",
-]

@ -1,9 +0,0 @@
--- socket2-0.4.4/Cargo.toml 1970-01-01T00:00:01+00:00
+++ socket2-0.4.4/Cargo.toml 2022-02-09T22:21:14.300251+00:00
@@ -34,6 +34,3 @@
all = []
[target."cfg(unix)".dependencies.libc]
version = "0.2.114"
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3.9"
-features = ["handleapi", "ws2ipdef", "ws2tcpip"]

@ -1 +1 @@
SHA512 (socket2-0.4.4.crate) = 6624fb9b933763c22e6114a8f72c6af0969912717017dd5b13f1b5df19faa1b160376c12e8c8023c435281f6a7864e802f3c4c535de8a345fe206652104f2cd5 SHA512 (socket2-0.4.7.crate) = 44487f2de30cd327cad1af31ad36aaaa0bf10c33b5c23b024ada8d7e41d064fb2adbc9edb14aa8aa1eba679d8530c373c7187fc68d9709ae736a5c1a2cf37088

Loading…
Cancel
Save