From 8a5b0f2cba9ac9545bc25e01e9a7100bcd632312 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Wed, 7 Jun 2023 18:19:13 +0200
Subject: [PATCH] Update to version 1.18.0; Fixes RHBZ#2212161

---
 .gitignore          |  1 +
 README.md           |  7 -------
 rust-once_cell.spec | 40 ++--------------------------------------
 sources             |  2 +-
 4 files changed, 4 insertions(+), 46 deletions(-)
 delete mode 100644 README.md

diff --git a/.gitignore b/.gitignore
index 9112d39..ab3aadc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@
 /once_cell-1.17.0.crate
 /once_cell-1.17.1.crate
 /once_cell-1.17.2.crate
+/once_cell-1.18.0.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 76a01e1..0000000
--- a/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# rust-once_cell
-
-Single assignment cells and lazy static values without macros.
-
-- Upstream repository: https://github.com/matklad/once_cell
-- Upstream documentation: https://docs.rs/once_cell/
-- crates.io releases: https://crates.io/crates/once_cell
diff --git a/rust-once_cell.spec b/rust-once_cell.spec
index de712e8..546eb6c 100644
--- a/rust-once_cell.spec
+++ b/rust-once_cell.spec
@@ -5,7 +5,7 @@
 %global crate once_cell
 
 Name:           rust-once_cell
-Version:        1.17.2
+Version:        1.18.0
 Release:        %autorelease
 Summary:        Single assignment cells and lazy values
 
@@ -13,7 +13,7 @@ License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/once_cell
 Source:         %{crates_source}
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
 Single assignment cells and lazy values.}
@@ -72,18 +72,6 @@ use the "atomic-polyfill" feature of the "%{crate}" crate.
 %files       -n %{name}+atomic-polyfill-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+atomic_polyfill-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+atomic_polyfill-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "atomic_polyfill" feature of the "%{crate}" crate.
-
-%files       -n %{name}+atomic_polyfill-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %package     -n %{name}+critical-section-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -96,18 +84,6 @@ use the "critical-section" feature of the "%{crate}" crate.
 %files       -n %{name}+critical-section-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+critical_section-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+critical_section-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "critical_section" feature of the "%{crate}" crate.
-
-%files       -n %{name}+critical_section-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %package     -n %{name}+parking_lot-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -120,18 +96,6 @@ use the "parking_lot" feature of the "%{crate}" crate.
 %files       -n %{name}+parking_lot-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+parking_lot_core-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+parking_lot_core-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "parking_lot_core" feature of the "%{crate}" crate.
-
-%files       -n %{name}+parking_lot_core-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %package     -n %{name}+race-devel
 Summary:        %{summary}
 BuildArch:      noarch
diff --git a/sources b/sources
index c700854..2f0f7ba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (once_cell-1.17.2.crate) = 8a00338f5aabe766fe5cd741cafd8c2ff544d60d081e5706b0965db6c86e00cc7b5fa0f73d8aa54cd1f4506a0858de589ceb4bd32afa7046dd3a1fbcf52b69d7
+SHA512 (once_cell-1.18.0.crate) = 9328968afdf3535b2d9e0113d75afa725259d76994ef2e1948ad7efa4ec8a65bac7cfdc31b749d5cd55ad4e28d2e28ac57b871e3067b89182453c7e2413a13b8