The package rpms/rust-mac_address.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-mac_address.git/commit/?id=0....
Change:
-ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 0914ab1b5dc5053b536cd763c31878f1c470d5bf
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun May 28 18:29:06 2023 +0200
Update to version 1.1.5; Fixes RHBZ#2210152
diff --git a/.gitignore b/.gitignore
index 7eb2971..51da85f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/mac_address-1.1.2.crate
/mac_address-1.1.3.crate
/mac_address-1.1.4.crate
+/mac_address-1.1.5.crate
diff --git a/0001-cargo-Patch-Cargo.toml-to-get-rid-of-windows-crates.patch
b/0001-cargo-Patch-Cargo.toml-to-get-rid-of-windows-crates.patch
deleted file mode 100644
index 55d19c1..0000000
--- a/0001-cargo-Patch-Cargo.toml-to-get-rid-of-windows-crates.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From d1d06a4f02f68dbbe6c244288ed10ca6010b6acf Mon Sep 17 00:00:00 2001
-From: Jan Macku <jamacku(a)redhat.com>
-Date: Wed, 5 Oct 2022 08:09:00 +0200
-Subject: [PATCH] cargo: Patch `Cargo.toml` to get rid of windows crates
-
----
- Cargo.toml | 8 --------
- 1 file changed, 8 deletions(-)
-
-diff --git a/Cargo.toml b/Cargo.toml
-index 7a0c032..59d1008 100644
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -38,11 +38,3 @@ version = "1.0.117"
-
- [target."cfg(any(target_os = \"linux\", target_os = \"macos\",
target_os = \"freebsd\", target_os =
\"openbsd\"))".dependencies.nix]
- version = "0.23.1"
--
--[target."cfg(windows)".dependencies.winapi]
--version = "0.3"
--features = [
-- "winerror",
-- "ws2def",
-- "iphlpapi",
--]
---
-2.37.3
-
diff --git a/README.md b/README.md
deleted file mode 100644
index bd28d62..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-mac_address
-
-The rust-mac_address package
diff --git a/mac_address-fix-metadata-auto.diff b/mac_address-fix-metadata-auto.diff
new file mode 100644
index 0000000..deb906e
--- /dev/null
+++ b/mac_address-fix-metadata-auto.diff
@@ -0,0 +1,13 @@
+--- mac_address-1.1.5/Cargo.toml 1970-01-01T00:00:01+00:00
++++ mac_address-1.1.5/Cargo.toml 2023-05-28T16:23:56.424780+00:00
+@@ -40,10 +40,3 @@
+ [target."cfg(any(target_os = \"linux\", target_os = \"macos\",
target_os = \"freebsd\", target_os =
\"openbsd\"))".dependencies.nix]
+ version = "0.23.1"
+
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3"
+-features = [
+- "winerror",
+- "ws2def",
+- "iphlpapi",
+-]
diff --git a/rust-mac_address.spec b/rust-mac_address.spec
index 95a7b36..959d93b 100644
--- a/rust-mac_address.spec
+++ b/rust-mac_address.spec
@@ -1,32 +1,27 @@
-# Generated by rust2rpm 20
+# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate mac_address
-Name: rust-%{crate}
-Version: 1.1.4
+Name: rust-mac_address
+Version: 1.1.5
Release: %autorelease
Summary: Cross-platform retrieval of a network interface MAC address
-# Upstream license specification: MIT OR Apache-2.0
-License: MIT or ASL 2.0
+License: MIT OR Apache-2.0
URL:
https://crates.io/crates/mac_address
Source: %{crates_source}
+# Automatically generated patch to strip foreign dependencies
+Patch: mac_address-fix-metadata-auto.diff
-Patch0001: 0001-cargo-Patch-Cargo.toml-to-get-rid-of-windows-crates.patch
-
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 21
%global _description %{expand:
Cross-platform retrieval of a network interface MAC address.}
%description %{_description}
-# === === ===
-
%package devel
Summary: %{summary}
BuildArch: noarch
@@ -37,11 +32,10 @@ This package contains library source intended for building other
packages which
use the "%{crate}" crate.
%files devel
-%license LICENSE-APACHE2.0 LICENSE-MIT
-%doc README.md
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
-
-# --- --- ---
+%license %{crate_instdir}/LICENSE-APACHE2.0
+%license %{crate_instdir}/LICENSE-MIT
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@@ -53,9 +47,7 @@ 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
-
-# --- --- ---
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel
Summary: %{summary}
@@ -67,9 +59,7 @@ This package contains library source intended for building other
packages which
use the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-# === === ===
+%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
diff --git a/sources b/sources
index ec8e2ef..6889276 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mac_address-1.1.4.crate) =
5bcdc23b3e50d2b90655097a9faeb4e984ab86d3d3caf1e00c178e0cfd19637c6e31d7884b75a042516e0eda666b8e4e2d2ff1337bbec5215279dc264005a7c2
+SHA512 (mac_address-1.1.5.crate) =
7adb141b68263383f8882d8da4989dca3437b3479b58234f29baefeb41f1e90e24e2b522cfdbaf066b84c0f997f0022d06973948c9f0977750619ce67edefa0b