The package rpms/rust-cookie-factory.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-cookie-factory.git/commit/?i....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 75f951032ed9979238e6ee01f1f6a455163f6e1c
Author: Michel Alexandre Salim <salimma(a)fedoraproject.org>
Date: Mon Jan 31 13:51:38 2022 -0800
Initial Fedora package
Signed-off-by: Michel Alexandre Salim <salimma(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6d4cc46
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cookie-factory-0.3.2.crate
diff --git a/cookie-factory-fix-metadata.diff b/cookie-factory-fix-metadata.diff
new file mode 100644
index 0000000..8ef9344
--- /dev/null
+++ b/cookie-factory-fix-metadata.diff
@@ -0,0 +1,26 @@
+--- cookie-factory-0.3.2/Cargo.toml 1970-01-01T00:00:00+00:00
++++ cookie-factory-0.3.2/Cargo.toml 2022-01-29T18:06:11.965666+00:00
+@@ -28,23 +28,6 @@
+ codegen-units = 1
+ debug = true
+
+-[[example]]
+-name = "http"
+-path = "examples/http.rs"
+-required-features = ["std"]
+-
+-[[example]]
+-name = "cursor"
+-path = "examples/cursor.rs"
+-required-features = ["std"]
+-
+-[[test]]
+-name = "http"
+-path = "tests/http.rs"
+-required-features = ["std"]
+-[dev-dependencies.maplit]
+-version = "^1.0"
+-
+ [features]
+ default = ["std"]
+ std = []
diff --git a/rust-cookie-factory.spec b/rust-cookie-factory.spec
new file mode 100644
index 0000000..58b0282
--- /dev/null
+++ b/rust-cookie-factory.spec
@@ -0,0 +1,86 @@
+# Generated by rust2rpm 20
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate cookie-factory
+
+Name: rust-%{crate}
+Version: 0.3.2
+Release: %autorelease
+Summary: Nom inspired serialization library
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/cookie-factory
+Source: %{crates_source}
+# Initial patched metadata
+# disable examples and tests that are not actually in the crate
+Patch0: cookie-factory-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Nom inspired serialization library.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%doc 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 the "default" feature of the "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+std-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+std-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "std" feature of the "%{crate}" crate.
+
+%files -n %{name}+std-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
+%cargo_test
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..a2153bc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cookie-factory-0.3.2.crate) =
8c3eb5ac052368a426158ec23c4d2cd3d74f14b426782cab4b89de6070611cbdaf4360a668dc3c76d9168f738cd10389eb56094f72014c7e5c249ee1616aebc7