The package rpms/rust-gptman.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-gptman.git/commit/?id=21e7b0....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 21e7b0afbd9b7e50128d5401e14eb88ceadb86ed
Author: Benjamin Gilbert <bgilbert(a)redhat.com>
Date: Mon Jul 20 10:50:48 2020 -0400
Initial import (#1857316).
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..93f4e87
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/gptman-0.6.3.crate
diff --git a/disable-cli.patch b/disable-cli.patch
new file mode 100644
index 0000000..cacf73d
--- /dev/null
+++ b/disable-cli.patch
@@ -0,0 +1,68 @@
+--- gptman-0.6.3/Cargo.toml.old 2020-07-15 11:52:20.271528858 -0400
++++ gptman-0.6.3/Cargo.toml 2020-07-15 11:54:25.946521178 -0400
+@@ -28,65 +28,25 @@
+ [lib]
+ name = "gptman"
+
+-[[bin]]
+-name = "gptman"
+-path = "src/cli/main.rs"
+-doc = false
+-required-features = ["cli"]
+-[dependencies.ansi_term]
+-version = "0.12"
+-optional = true
+-
+ [dependencies.bincode]
+ version = "1.0.1"
+
+-[dependencies.clap]
+-version = "2.33"
+-optional = true
+-
+ [dependencies.crc]
+ version = "1.0.0"
+
+ [dependencies.err-derive]
+ version = "0.2.4"
+
+-[dependencies.lazy_static]
+-version = "1.2.0"
+-optional = true
+-
+-[dependencies.linefeed]
+-version = "0.6.0"
+-optional = true
+-
+ [dependencies.nix]
+ version = "0.17"
+ optional = true
+
+-[dependencies.pad]
+-version = "0.1"
+-optional = true
+-
+-[dependencies.rand]
+-version = "0.7"
+-optional = true
+-
+ [dependencies.serde]
+ version = "1.0.110"
+
+ [dependencies.serde_derive]
+ version = "1.0.110"
+
+-[dependencies.structopt]
+-version = "0.3"
+-optional = true
+-
+-[dependencies.unicode-width]
+-version = "0.1.5"
+-optional = true
+-
+-[features]
+-cli = ["lazy_static", "ansi_term", "pad",
"unicode-width", "clap", "linefeed", "rand",
"structopt"]
+-default = ["cli"]
+ [target."cfg(target_os = \"linux\")".dependencies.nix]
+ version = "0.17"
+ [badges.is-it-maintained-issue-resolution]
diff --git a/exclude-tool-metadata.patch b/exclude-tool-metadata.patch
new file mode 100644
index 0000000..fd1600e
--- /dev/null
+++ b/exclude-tool-metadata.patch
@@ -0,0 +1,10 @@
+--- gptman-0.6.3/Cargo.toml.orig 2020-07-14 11:46:59.647601097 -0400
++++ gptman-0.6.3/Cargo.toml 2020-07-14 11:47:14.191591327 -0400
+@@ -19,6 +19,7 @@
+ homepage = "https://github.com/cecton/gptman"
+ documentation = "https://docs.rs/gptman"
+ readme = "README.md"
++exclude = ["/.gitignore", "/.travis.yml"]
+ keywords = ["gpt", "partition", "table",
"filesystem", "disk"]
+ categories = ["command-line-utilities"]
+ license = "MIT"
diff --git a/rust-gptman.spec b/rust-gptman.spec
new file mode 100644
index 0000000..6f7fe13
--- /dev/null
+++ b/rust-gptman.spec
@@ -0,0 +1,91 @@
+# Generated by rust2rpm 13
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate gptman
+
+Name: rust-%{crate}
+Version: 0.6.3
+Release: 1%{?dist}
+Summary: GPT manager that allows you to copy partitions from one disk to another
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/gptman
+Source: %{crates_source}
+# Disable CLI binary; we only ship the library
+Patch0: disable-cli.patch
+#
https://github.com/cecton/gptman/pull/43
+Patch1: exclude-tool-metadata.patch
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+GPT manager that allows you to copy partitions from one disk to another.}
+
+%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 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
+
+%package -n %{name}+nix-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+nix-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "nix" feature of "%{crate}" crate.
+
+%files -n %{name}+nix-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
+* Wed Jul 15 2020 Benjamin Gilbert <bgilbert(a)redhat.com> - 0.6.3-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..fd1b5c0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (gptman-0.6.3.crate) =
92122698a02f4fcc983290bde1f4842b299c392fb7d48a4af1ad205183284e99104c98b068df8d73d2811b2f1e30245f8ffa616c936552c2a9f3ccfd42540656