diff --git a/rust-socket2.spec b/rust-socket2.spec index 9d2fc44..356a7cb 100644 --- a/rust-socket2.spec +++ b/rust-socket2.spec @@ -1,21 +1,21 @@ # Generated by rust2rpm -%bcond_without check +%bcond_with check %global debug_package %{nil} %global crate socket2 Name: rust-%{crate} Version: 0.3.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Utilities for handling networking sockets # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/socket2 -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows or redox -Patch0: socket2-0.3.7-fix-metadata.diff +Patch0: socket2-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -95,7 +95,7 @@ which use "unix" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -110,6 +110,9 @@ which use "unix" feature of "%{crate}" crate. %endif %changelog +* Tue Feb 12 2019 Igor Gnatenko - 0.3.8-4 +- Run tests in infrastructure + * Sat Feb 02 2019 Fedora Release Engineering - 0.3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/socket2-0.3.7-fix-metadata.diff b/socket2-0.3.7-fix-metadata.diff deleted file mode 100644 index 53e94fe..0000000 --- a/socket2-0.3.7-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- socket2-0.3.7/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ socket2-0.3.7/Cargo.toml 2018-06-28T11:00:16.832072+02:00 -@@ -33,8 +33,3 @@ - - [target."cfg(any(unix, target_os = \"redox\"))".dependencies.libc] - version = "0.2.42" --[target."cfg(target_os = \"redox\")".dependencies.redox_syscall] --version = "0.1.38" --[target."cfg(windows)".dependencies.winapi] --version = "0.3.3" --features = ["handleapi", "ws2def", "ws2ipdef", "ws2tcpip", "minwindef"] diff --git a/socket2-fix-metadata.diff b/socket2-fix-metadata.diff new file mode 100644 index 0000000..0122757 --- /dev/null +++ b/socket2-fix-metadata.diff @@ -0,0 +1,11 @@ +--- socket2-0.3.8/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ socket2-0.3.8/Cargo.toml 2019-02-12T07:58:22.971530+01:00 +@@ -33,8 +33,3 @@ + + [target."cfg(any(unix, target_os = \"redox\"))".dependencies.libc] + version = "0.2.42" +-[target."cfg(target_os = \"redox\")".dependencies.redox_syscall] +-version = "0.1.38" +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.3" +-features = ["handleapi", "ws2def", "ws2ipdef", "ws2tcpip", "minwindef"] diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..c876203 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-socket2