The package rpms/rust-ipnetwork.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-ipnetwork.git/commit/?id=64e....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 64e6a8b705352c8e4c1f8b51d90d99d03a1d62ad
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Tue Jan 29 18:03:27 2019 +0100
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..09da08e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/ipnetwork-0.13.1.crate
diff --git a/ipnetwork-fix-metadata.diff b/ipnetwork-fix-metadata.diff
new file mode 100644
index 0000000..67e7ac9
--- /dev/null
+++ b/ipnetwork-fix-metadata.diff
@@ -0,0 +1,20 @@
+--- ipnetwork-0.13.1/Cargo.toml 1970-01-01T01:00:00+01:00
++++ ipnetwork-0.13.1/Cargo.toml 2019-01-28T22:00:24.289581+01:00
+@@ -21,10 +21,6 @@
+ categories = ["network-programming", "os"]
+ license = "Apache-2.0"
+ repository = "https://github.com/achanda/ipnetwork"
+-[dependencies.clippy]
+-version = "0.0.104"
+-optional = true
+-
+ [dependencies.serde]
+ version = ">=0.8.0, <2.0"
+
+@@ -35,6 +31,5 @@
+
+ [features]
+ default = []
+-dev = ["clippy"]
+ [badges.travis-ci]
+ repository = "achanda/ipnetwork"
diff --git a/rust-ipnetwork.spec b/rust-ipnetwork.spec
new file mode 100644
index 0000000..3a59b83
--- /dev/null
+++ b/rust-ipnetwork.spec
@@ -0,0 +1,78 @@
+# Generated by rust2rpm
+# * Tests are run in infrastructure
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate ipnetwork
+
+Name: rust-%{crate}
+Version: 0.13.1
+Release: 1%{?dist}
+Summary: Library to work with IP CIDRs in Rust, heavily WIP
+
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL:
https://crates.io/crates/ipnetwork
+Source: %{crates_source}
+# Initial patched metadata
+# * No clippy
+Patch0: ipnetwork-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(serde/default) >= 0.8.0 with crate(serde/default) < 2.0.0)
+BuildRequires: (crate(serde_derive/default) >= 0.8.0 with crate(serde_derive/default)
< 2.0.0)
+%if %{with check}
+BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default)
< 2.0.0)
+%endif
+
+%global _description \
+A library to work with IP CIDRs in Rust, heavily WIP.
+
+%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
+%license LICENSE.md
+%doc README.md
+%{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
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Mon Jan 28 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.13.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..90c84a6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (ipnetwork-0.13.1.crate) =
75b313cceea52fd270002b1a1181d736526c8fc18aa8de3e1f0ad0bdf2ced4696a55eade849cce4d3397d803de8482e7cd2fdfa4831db5e0335cd5d5c306f3b8
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..42e4949
--- /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-ipnetwork