From 9f64ff9e96812570924553e83cfea9d946fb3019 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 17 May 2023 15:02:24 +0200 Subject: [PATCH] Update to version 0.5.3; Fixes RHBZ#2204483 --- .gitignore | 1 + README.md | 3 --- rust-atomic.spec | 37 ++++++++++++++++++++++++------------- sources | 2 +- 4 files changed, 26 insertions(+), 17 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index f3e7f5f..eb5d205 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /atomic-0.5.1.crate +/atomic-0.5.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index 155887a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-atomic - -The rust-atomic package diff --git a/rust-atomic.spec b/rust-atomic.spec index e4138ce..2da719a 100644 --- a/rust-atomic.spec +++ b/rust-atomic.spec @@ -1,22 +1,20 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate atomic -Name: rust-%{crate} -Version: 0.5.1 +Name: rust-atomic +Version: 0.5.3 Release: %autorelease Summary: Generic Atomic wrapper type # Upstream license specification: Apache-2.0/MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/atomic Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Generic Atomic wrapper type.} @@ -33,9 +31,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +46,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}+fallback-devel Summary: %{summary} @@ -59,7 +58,19 @@ This package contains library source intended for building other packages which use the "fallback" feature of the "%{crate}" crate. %files -n %{name}+fallback-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -71,7 +82,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 04fc5c3..505ca2d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (atomic-0.5.1.crate) = d9983a39da849a9852237eb00e727fee10b30b15b2e75f6c7e091a2fbadd289c688744997ae1ea933f1541cf867b7df3531870e7628ae9ef75fc7a78dccc9bd4 +SHA512 (atomic-0.5.3.crate) = de1be4302b4d8f50ef5a808ef09881726e56fbdd72bd1b2a118724295a48128bae57316805ed92e991b82b06e7bf229efac4deff9a9ce84fdb839726a2ae8064