The package rpms/rust-pnet_datalink.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-pnet_datalink.git/commit/?id....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 08888d58222c1170b934ebdb180220a29e574612
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Apr 27 14:34:16 2019 +0200
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c7166ec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/pnet_datalink-0.22.0.crate
diff --git a/pnet_datalink-fix-metadata.diff b/pnet_datalink-fix-metadata.diff
new file mode 100644
index 0000000..9f9541c
--- /dev/null
+++ b/pnet_datalink-fix-metadata.diff
@@ -0,0 +1,8 @@
+--- pnet_datalink-0.22.0/Cargo.toml 1970-01-01T00:00:00+00:00
++++ pnet_datalink-0.22.0/Cargo.toml 2019-04-27T07:46:27.600291+00:00
+@@ -43,5 +43,3 @@
+
+ [features]
+ netmap = []
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.2"
diff --git a/rust-pnet_datalink.spec b/rust-pnet_datalink.spec
new file mode 100644
index 0000000..29d9039
--- /dev/null
+++ b/rust-pnet_datalink.spec
@@ -0,0 +1,111 @@
+# Generated by rust2rpm
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate pnet_datalink
+
+Name: rust-%{crate}
+Version: 0.22.0
+Release: 1%{?dist}
+Summary: Cross-platform, datalink layer networking
+
+# Upstream license specification: MIT/Apache-2.0
+#
https://github.com/libpnet/libpnet/issues/371
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/pnet_datalink
+Source: %{crates_source}
+# Initial patched metadata
+# * No windows
+Patch0: pnet_datalink-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(ipnetwork/default) >= 0.14.0 with crate(ipnetwork/default) <
0.15.0)
+BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0)
+BuildRequires: (crate(pnet_base/default) >= 0.22.0 with crate(pnet_base/default) <
0.23.0)
+BuildRequires: (crate(pnet_sys/default) >= 0.22.0 with crate(pnet_sys/default) <
0.23.0)
+
+%global _description \
+Cross-platform, datalink layer networking.
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%{cargo_registry}/%{crate}-%{version}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "default" feature of "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+netmap-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+netmap-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "netmap" feature of "%{crate}" crate.
+
+%files -n %{name}+netmap-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+netmap_sys-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+netmap_sys-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "netmap_sys" feature of "%{crate}" crate.
+
+%files -n %{name}+netmap_sys-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+pcap-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+pcap-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "pcap" feature of "%{crate}" crate.
+
+%files -n %{name}+pcap-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Apr 27 09:46:27 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.22.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..3bc1c76
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (pnet_datalink-0.22.0.crate) =
225232ac029cff051c63fcd485966e83fcc5bf3c1adfd9e5a91cfa7f3bdfcb9d0ae7af4302e755a0fbe9d0f7b0d149dcc4ce802d18a4921e89cb7aeaa71e3320
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..786a29e
--- /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-pnet_datalink