The package rpms/rust-pcap.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-pcap.git/commit/?id=01d7737b...
https://src.fedoraproject.org/cgit/rpms/rust-pcap.git/commit/?id=03f75510....
Change:
+ExclusiveArch: %{rust_arches}
-ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 01d7737b941770c26b3adfebf70aa5605de81453
Author: Sayan Chowdhury <sayan.chowdhury2012(a)gmail.com>
Date: Fri Apr 12 14:11:10 2019 +0530
Initial Import for rust-pcap
diff --git a/add-required-features.patch b/add-required-features.patch
new file mode 100644
index 0000000..19540b7
--- /dev/null
+++ b/add-required-features.patch
@@ -0,0 +1,17 @@
+--- pcap-0.7.0/Cargo.toml 2019-04-09 18:42:37.312162320 +0530
++++ pcap-0.7.0/Cargo.toml 2019-04-09 18:43:35.597614728 +0530
+@@ -36,6 +36,9 @@
+ # This is disabled by default, because it depends on a tokio and mio
+ tokio = ["mio", "tokio-core", "futures"]
+
++# This feature enables access to futures.
++futures-feature = ["futures"]
++
+ # A shortcut to enable all features.
+ full = ["pcap-savefile-append", "pcap-fopen-offline-precision",
"tokio"]
+
+@@ -65,3 +68,4 @@
+ [[example]]
+ name = "streamlisten"
+ path = "examples/streamlisten.rs"
++required-features = ["futures-feature"]
diff --git a/pcap-0.7.0.crate b/pcap-0.7.0.crate
new file mode 100644
index 0000000..5f86804
Binary files /dev/null and b/pcap-0.7.0.crate differ
diff --git a/rust-pcap.spec b/rust-pcap.spec
new file mode 100644
index 0000000..a2e47c2
--- /dev/null
+++ b/rust-pcap.spec
@@ -0,0 +1,172 @@
+# Generated by rust2rpm
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate pcap
+
+Name: rust-%{crate}
+Version: 0.7.0
+Release: 1%{?dist}
+Summary: A packet capture API around pcap/wpcap
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/pcap
+Source: %{crates_source}
+Patch0: add-required-features.patch
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: libpcap
+BuildRequires: libpcap-devel
+BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
+%if %{with check}
+BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) <
0.4.0)
+%endif
+
+%global _description \
+A packet capture API around pcap/wpcap.
+
+%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
+%license LICENSE-APACHE LICENSE-MIT
+%{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}+clippy-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+clippy-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "clippy" feature of "%{crate}" crate.
+
+%files -n %{name}+clippy-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+full-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+full-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "full" feature of "%{crate}" crate.
+
+%files -n %{name}+full-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+futures-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+futures-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "futures" feature of "%{crate}" crate.
+
+%files -n %{name}+futures-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+mio-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+mio-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "mio" feature of "%{crate}" crate.
+
+%files -n %{name}+mio-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+pcap-fopen-offline-precision-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+pcap-fopen-offline-precision-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "pcap-fopen-offline-precision" feature of "%{crate}"
crate.
+
+%files -n %{name}+pcap-fopen-offline-precision-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+pcap-savefile-append-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+pcap-savefile-append-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "pcap-savefile-append" feature of "%{crate}" crate.
+
+%files -n %{name}+pcap-savefile-append-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+tokio-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tokio-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tokio" feature of "%{crate}" crate.
+
+%files -n %{name}+tokio-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+tokio-core-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tokio-core-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tokio-core" feature of "%{crate}" crate.
+
+%files -n %{name}+tokio-core-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
+* Tue Apr 09 2019 Sayan Chowdhury <sayanchowdhury(a)fedoraproject.org> - 0.7.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..e69de29
commit 03f755105b4f932e77283ebc2e32c2dc313e51ea
Author: Sayan Chowdhury <sayan.chowdhury2012(a)gmail.com>
Date: Fri Apr 12 14:10:30 2019 +0530
Remove the wrong files
diff --git a/pnet_sys-0.22.0.crate b/pnet_sys-0.22.0.crate
deleted file mode 100644
index b951d4b..0000000
Binary files a/pnet_sys-0.22.0.crate and /dev/null differ
diff --git a/remove-windows-dependencies.patch b/remove-windows-dependencies.patch
deleted file mode 100644
index d900095..0000000
--- a/remove-windows-dependencies.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- pnet_sys-0.22.0/Cargo.toml 2019-04-10 08:19:07.358688501 +0000
-+++ pnet_sys-0.22.0/Cargo.toml 2019-04-10 08:19:15.852623026 +0000
-@@ -22,8 +22,3 @@
- repository = "https://github.com/libpnet/libpnet"
- [dependencies.libc]
- version = "0.2.39"
--[target."cfg(windows)".dependencies.winapi]
--version = "0.2"
--
--[target."cfg(windows)".dependencies.ws2_32-sys]
--version = "0.2"
diff --git a/rust-pnet_sys.spec b/rust-pnet_sys.spec
deleted file mode 100644
index 7853a32..0000000
--- a/rust-pnet_sys.spec
+++ /dev/null
@@ -1,69 +0,0 @@
-# Generated by rust2rpm
-%bcond_without check
-%global debug_package %{nil}
-
-%global crate pnet_sys
-
-Name: rust-%{crate}
-Version: 0.22.0
-Release: 1%{?dist}
-Summary: Access to network related system function and calls
-
-# Upstream license specification: MIT/Apache-2.0
-License: MIT or ASL 2.0
-URL:
https://crates.io/crates/pnet_sys
-Source: %{crates_source}
-Patch0: remove-windows-dependencies.patch
-
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging
-BuildRequires: (crate(libc/default) >= 0.2.39 with crate(libc/default) < 0.3.0)
-
-%global _description \
-Access to network related system function and calls.
-
-%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
-
-%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.22.0-1
-- Initial package
diff --git a/sources b/sources
deleted file mode 100644
index e69de29..0000000