The package rpms/rust-trust-dns-proto.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-trust-dns-proto.git/commit/?....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 4b13257f1f8a050feff6117fe2ce37d4a1264fca
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Thu May 30 23:30:46 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..edcd37d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/trust-dns-proto-0.7.4.crate
diff --git a/rust-trust-dns-proto.spec b/rust-trust-dns-proto.spec
new file mode 100644
index 0000000..df4edf8
--- /dev/null
+++ b/rust-trust-dns-proto.spec
@@ -0,0 +1,178 @@
+# Generated by rust2rpm 9
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate trust-dns-proto
+
+Name: rust-%{crate}
+Version: 0.7.4
+Release: 1%{?dist}
+Summary: Trust-DNS is a safe and secure DNS library
+
+# Upstream license specification: MIT/Apache-2.0
+#
https://github.com/bluejekyll/trust-dns/issues/785
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/trust-dns-proto
+Source: %{crates_source}
+# Initial patched metadata
+# * No ring
+Patch0: trust-dns-proto-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(byteorder/default) >= 1.2.0 with crate(byteorder/default) <
2.0.0)
+BuildRequires: (crate(enum-as-inner/default) >= 0.2.0 with
crate(enum-as-inner/default) < 0.3.0)
+BuildRequires: (crate(failure/default) >= 0.1.0 with crate(failure/default) <
0.2.0)
+BuildRequires: (crate(futures/default) >= 0.1.27 with crate(futures/default) <
0.2.0)
+BuildRequires: (crate(idna/default) >= 0.1.4 with crate(idna/default) < 0.2.0)
+BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default)
< 2.0.0)
+BuildRequires: (crate(log/default) >= 0.4.1 with crate(log/default) < 0.5.0)
+BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0)
+BuildRequires: (crate(smallvec/default) >= 0.6.0 with crate(smallvec/default) <
0.7.0)
+BuildRequires: (crate(socket2/default) >= 0.3.9 with crate(socket2/default) <
0.4.0)
+BuildRequires: (crate(tokio-executor/default) >= 0.1.7 with
crate(tokio-executor/default) < 0.2.0)
+BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) <
0.2.0)
+BuildRequires: (crate(tokio-reactor/default) >= 0.1.0 with
crate(tokio-reactor/default) < 0.2.0)
+BuildRequires: (crate(tokio-tcp/default) >= 0.1.0 with crate(tokio-tcp/default) <
0.2.0)
+BuildRequires: (crate(tokio-timer/default) >= 0.2.10 with crate(tokio-timer/default)
< 0.3.0)
+BuildRequires: (crate(tokio-udp/default) >= 0.1.0 with crate(tokio-udp/default) <
0.2.0)
+BuildRequires: (crate(url/default) >= 1.6.0 with crate(url/default) < 2.0.0)
+%if %{with check}
+BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default)
< 0.7.0)
+BuildRequires: (crate(tokio/default) >= 0.1.15 with crate(tokio/default) < 0.2.0)
+%endif
+
+%global _description %{expand:
+Trust-DNS is a safe and secure DNS library. This is the foundational DNS
+protocol library for all Trust-DNS projects.}
+
+%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
+%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
+
+%package -n %{name}+data-encoding-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+data-encoding-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "data-encoding" feature of "%{crate}" crate.
+
+%files -n %{name}+data-encoding-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+dnssec-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+dnssec-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "dnssec" feature of "%{crate}" crate.
+
+%files -n %{name}+dnssec-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+dnssec-openssl-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+dnssec-openssl-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "dnssec-openssl" feature of "%{crate}" crate.
+
+%files -n %{name}+dnssec-openssl-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+mdns-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+mdns-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "mdns" feature of "%{crate}" crate.
+
+%files -n %{name}+mdns-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+openssl-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+openssl-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "openssl" feature of "%{crate}" crate.
+
+%files -n %{name}+openssl-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+serde-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+serde-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "serde" feature of "%{crate}" crate.
+
+%files -n %{name}+serde-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+serde-config-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+serde-config-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "serde-config" feature of "%{crate}" crate.
+
+%files -n %{name}+serde-config-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
+* Thu May 30 21:07:34 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.7.4-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..1413dff
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (trust-dns-proto-0.7.4.crate) =
45822fcd375f01e8e93b91c1806be6c653d202ca93a719af45661b8b5e016a802535774a2adf7ac503d889d4f9589d945c02ec651aa4cb81f443b60e7f082611
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..c6359d5
--- /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-trust-dns-proto
diff --git a/trust-dns-proto-fix-metadata.diff b/trust-dns-proto-fix-metadata.diff
new file mode 100644
index 0000000..dc5138e
--- /dev/null
+++ b/trust-dns-proto-fix-metadata.diff
@@ -0,0 +1,32 @@
+--- trust-dns-proto-0.7.4/Cargo.toml 1970-01-01T00:00:00+00:00
++++ trust-dns-proto-0.7.4/Cargo.toml 2019-05-30T19:07:34.586785+00:00
+@@ -60,10 +60,6 @@
+ [dependencies.rand]
+ version = "0.6"
+
+-[dependencies.ring]
+-version = "0.14"
+-optional = true
+-
+ [dependencies.serde]
+ version = "1.0"
+ optional = true
+@@ -92,10 +88,6 @@
+ [dependencies.tokio-udp]
+ version = "^0.1"
+
+-[dependencies.untrusted]
+-version = "^0.6"
+-optional = true
+-
+ [dependencies.url]
+ version = "1.6.0"
+ [dev-dependencies.env_logger]
+@@ -107,7 +99,6 @@
+ [features]
+ dnssec = ["data-encoding"]
+ dnssec-openssl = ["dnssec", "openssl"]
+-dnssec-ring = ["dnssec", "ring", "untrusted"]
+ mdns = ["socket2/reuseport"]
+ serde-config = ["serde"]
+ [badges.appveyor]