The package rpms/rust-nix0.17.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-nix0.17.git/commit/?id=191b2....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 191b23603b55a71f7d0fd1666b49caa7db2a46be
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Mon Oct 5 16:33:17 2020 +0200
initial import (nix 0.17 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fa0d321
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/nix-0.17.0.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 17249cb..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-nix0.17
-
-The rust-nix0.17 package
diff --git a/nix-fix-metadata.diff b/nix-fix-metadata.diff
new file mode 100644
index 0000000..e3aacb2
--- /dev/null
+++ b/nix-fix-metadata.diff
@@ -0,0 +1,10 @@
+--- nix-0.16.1/Cargo.toml 2019-12-24T03:39:07+00:00
++++ nix-0.16.1/Cargo.toml 2020-01-08T23:18:44.181140+00:00
+@@ -65,7 +65,3 @@
+ version = "3.0.5"
+ [target."cfg(any(target_os = \"android\", target_os =
\"linux\"))".dev-dependencies.caps]
+ version = "0.3.1"
+-[target."cfg(target_os = \"dragonfly\")".build-dependencies.cc]
+-version = "1"
+-[target."cfg(target_os = \"freebsd\")".dev-dependencies.sysctl]
+-version = "0.1"
diff --git a/rust-nix0.17.spec b/rust-nix0.17.spec
new file mode 100644
index 0000000..caeaecf
--- /dev/null
+++ b/rust-nix0.17.spec
@@ -0,0 +1,79 @@
+# Generated by rust2rpm 13
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate nix
+
+Name: rust-%{crate}0.17
+Version: 0.17.0
+Release: 1%{?dist}
+Summary: Rust friendly bindings to *nix APIs
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/nix
+Source: %{crates_source}
+# Initial patched metadata
+# * No dragonfly/freebsd
+Patch0: nix-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Rust friendly bindings to *nix APIs.}
+
+%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
+%doc CHANGELOG.md CONTRIBUTING.md CONVENTIONS.md README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+# Testing parts are not distributed
+%cargo_test -- --doc
+%endif
+
+%changelog
+* Sun Oct 04 2020 Fabio Valentini <decathorpe(a)gmail.com> - 0.17.0-1
+- Initial compat package for nix 0.17
diff --git a/sources b/sources
new file mode 100644
index 0000000..d6de348
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (nix-0.17.0.crate) =
3f2bc4f0e9dcb9753535aec9d626ad8126f0a9ea18f73760ba72be0f35d82542c659b4c443783010de133a318f423a16f71cd1f1dd5b5a1f4f71ff7bda247b63