The package rpms/rust-system76_ectool.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-system76_ectool.git/commit/?....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 30d11d1c842ad442c17ea390e5582c1ef28c15cc
Author: Link Dupont <link(a)sub-pop.net>
Date: Tue Nov 23 22:43:51 2021 -0500
Remove missing feature subpackages
Resolves: RHBZ#2025544
diff --git a/rust-system76_ectool.spec b/rust-system76_ectool.spec
index fad5cd8..9198df9 100644
--- a/rust-system76_ectool.spec
+++ b/rust-system76_ectool.spec
@@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.3.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: System76 EC tool
# Upstream license specification: MIT
@@ -98,18 +98,6 @@ which use "libc" feature of "%{crate}" crate.
%files -n %{name}+libc-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-%package -n %{name}+redox_hwio-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+redox_hwio-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "redox_hwio" feature of "%{crate}" crate.
-
-%files -n %{name}+redox_hwio-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
%package -n %{name}+std-devel
Summary: %{summary}
BuildArch: noarch
@@ -141,5 +129,8 @@ which use "std" feature of "%{crate}" crate.
%endif
%changelog
+* Tue Nov 23 2021 Link Dupont <linkdupont(a)fedoraproject.org> - 0.3.6-2
+- Remove feature subpackages (RHBZ#2025544)
+
* Mon Oct 04 2021 Link Dupont <linkdupont(a)fedoraproject.org> - 0.3.6-1
- Initial package
commit 640424bb588876f85c000ae31c17dffeaac340e3
Author: Link Dupont <link(a)sub-pop.net>
Date: Mon Nov 15 14:43:33 2021 -0500
initial package
Relates: RHBZ#2022178
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0a04cec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/system76_ectool-0.3.6.crate
diff --git a/disable-static-feature.patch b/disable-static-feature.patch
new file mode 100644
index 0000000..b1d8239
--- /dev/null
+++ b/disable-static-feature.patch
@@ -0,0 +1,12 @@
+diff -urN system76_ectool-0.3.6.orig/Cargo.toml system76_ectool-0.3.6/Cargo.toml
+--- system76_ectool-0.3.6.orig/Cargo.toml 2021-04-13 13:05:11.000000000 -0400
++++ system76_ectool-0.3.6/Cargo.toml 2021-11-14 22:49:17.776347698 -0500
+@@ -38,7 +38,7 @@
+
+ [dependencies.hidapi]
+ version = "1.2"
+-features = ["linux-static-hidraw"]
++features = ["linux-shared-hidraw"]
+ optional = true
+ default-features = false
+
diff --git a/rust-system76_ectool.spec b/rust-system76_ectool.spec
new file mode 100644
index 0000000..fad5cd8
--- /dev/null
+++ b/rust-system76_ectool.spec
@@ -0,0 +1,145 @@
+# Generated by rust2rpm 18
+%bcond_without check
+
+%global crate system76_ectool
+
+Name: rust-%{crate}
+Version: 0.3.6
+Release: 1%{?dist}
+Summary: System76 EC tool
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/system76_ectool
+Source: %{crates_source}
+Patch0: disable-static-feature.patch
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Tool for interacting with System76 embedded controller firmware devices.}
+
+%description %{_description}
+
+%if ! %{__cargo_skip_build}
+%package -n %{crate}
+Summary: %{summary}
+
+%description -n %{crate} %{_description}
+
+%files -n %{crate}
+%license LICENSE
+%{_bindir}/system76_ectool
+%endif
+
+%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
+%{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
+
+%package -n %{name}+clap-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+clap-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "clap" feature of "%{crate}" crate.
+
+%files -n %{name}+clap-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+hidapi-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+hidapi-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "hidapi" feature of "%{crate}" crate.
+
+%files -n %{name}+hidapi-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+libc-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+libc-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "libc" feature of "%{crate}" crate.
+
+%files -n %{name}+libc-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+redox_hwio-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+redox_hwio-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "redox_hwio" feature of "%{crate}" crate.
+
+%files -n %{name}+redox_hwio-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 "std" feature of "%{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
+* Mon Oct 04 2021 Link Dupont <linkdupont(a)fedoraproject.org> - 0.3.6-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..7f42768
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (system76_ectool-0.3.6.crate) =
9456e1ef32a8d3c1ee8fe40b42016f8d39ee40c3ce67e00af4a3a3dd73af9715ef9da4baf51ad31f31e3146500045417bca77076a6b2d1cec2f140320bffbf1c