The package rpms/rust-netmap_sys.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-netmap_sys.git/commit/?id=f5....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit f5aa484f497aeb28b4e5830818df27d0fe7da337
Author: Sayan Chowdhury <sayan.chowdhury2012(a)gmail.com>
Date: Fri Apr 12 14:23:09 2019 +0530
Initial import for rust-netmap_sys (#1698483)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/netmap_sys-0.1.3.crate b/netmap_sys-0.1.3.crate
new file mode 100644
index 0000000..207520d
Binary files /dev/null and b/netmap_sys-0.1.3.crate differ
diff --git a/replace-gcc-with-cc.patch b/replace-gcc-with-cc.patch
new file mode 100644
index 0000000..c78c96d
--- /dev/null
+++ b/replace-gcc-with-cc.patch
@@ -0,0 +1,8 @@
+--- netmap_sys-0.1.3/Cargo.toml 2019-04-10 10:35:11.014810508 +0000
++++ netmap_sys-0.1.3/Cargo.toml 2019-04-10 10:39:45.361486164 +0000
+@@ -26,4 +26,4 @@
+ libc = "0.2"
+
+ [build-dependencies]
+-gcc = "0.3"
++cc = "1.0.35"
diff --git a/rust-netmap_sys.spec b/rust-netmap_sys.spec
new file mode 100644
index 0000000..d74de91
--- /dev/null
+++ b/rust-netmap_sys.spec
@@ -0,0 +1,84 @@
+# Generated by rust2rpm
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate netmap_sys
+
+Name: rust-%{crate}
+Version: 0.1.3
+Release: 1%{?dist}
+Summary: Bindings to netmap - the fast packet I/O framework
+
+# Upstream license specification: BSD-2-Clause
+License: BSD
+URL:
https://crates.io/crates/netmap_sys
+Source: %{crates_source}
+Patch0: update-build-rs.patch
+Patch1: replace-gcc-with-cc.patch
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(cc/default) >= 1.0.35 with crate(cc/default) < 1.0.36)
+BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
+
+%global _description \
+Bindings to netmap - the fast packet I/O framework.
+
+%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}+netmap_with_libs-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+netmap_with_libs-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "netmap_with_libs" feature of "%{crate}" crate.
+
+%files -n %{name}+netmap_with_libs-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
+* Wed Apr 10 2019 Sayan Chowdhury <sayanchowdhury(a)fedoraproject.org> - 0.1.3-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..e69de29
diff --git a/update-build-rs.patch b/update-build-rs.patch
new file mode 100644
index 0000000..ba41b69
--- /dev/null
+++ b/update-build-rs.patch
@@ -0,0 +1,19 @@
+--- netmap_sys-0.1.3/build.rs 2019-04-10 10:33:49.073504735 +0000
++++ netmap_sys-0.1.3/build.rs 2019-04-10 10:34:15.713279035 +0000
+@@ -1,6 +1,6 @@
+ // netmap doesn't provide these functions as a library, so we cheat, to save porting
them manually
+ // to Rust. This is a very ugly hack.
+-extern crate gcc;
++extern crate cc;
+ use std::env;
+ use std::io::prelude::*;
+ use std::fs;
+@@ -18,7 +18,7 @@
+ typedef unsigned long u_long;
+ typedef unsigned char u_char;
+ #include <net/netmap_user.h>\n").unwrap();
+- gcc::Config::new()
++ cc::Build::new()
+ .file(&tmp_path)
+ .define("NETMAP_WITH_LIBS", None)
+ .define("static", Some(""))