From 81b0af1fece07312762d0b34eac798885e5df4eb Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 13 Jul 2020 17:12:35 -0700 Subject: [PATCH] Update to 1.2.0 --- .gitignore | 1 + rust-stable_deref_trait.spec | 45 ++++++++++++++++++++++++++---------- sources | 2 +- 3 files changed, 35 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index fbc457b..1087fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /stable_deref_trait-1.0.0.crate /stable_deref_trait-1.1.0.crate /stable_deref_trait-1.1.1.crate +/stable_deref_trait-1.2.0.crate diff --git a/rust-stable_deref_trait.spec b/rust-stable_deref_trait.spec index 4412479..77c9eee 100644 --- a/rust-stable_deref_trait.spec +++ b/rust-stable_deref_trait.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 # * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -6,23 +6,26 @@ %global crate stable_deref_trait Name: rust-%{crate} -Version: 1.1.1 -Release: 6%{?dist} +Version: 1.2.0 +Release: 1%{?dist} Summary: Unsafe marker trait that dereference to a stable address even when moved # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/stable_deref_trait -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%global _description \ -An unsafe marker trait for types like Box and Rc that dereference to a stable\ -address even when moved, and hence can be used with libraries such as\ -owning_ref and rental. +%global _description %{expand: +An unsafe marker trait for types like Box and Rc that dereference to a stable +address even when moved, and hence can be used with libraries such as +owning_ref and rental.} %description %{_description} @@ -38,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,7 +53,19 @@ 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}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -62,12 +77,15 @@ 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}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -80,6 +98,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Tue Jul 14 2020 Josh Stone - 1.2.0-1 +- Update to 1.2.0 + * Thu Jan 30 2020 Fedora Release Engineering - 1.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 5d7aa2f..2b0b9c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (stable_deref_trait-1.1.1.crate) = ca224226d612e1c4eb178271cee0d18b44fc036959e528d720e33f65c3ecd7a40c20d32f294c029d0d7b74dc6ce57d19aadfe3cf02c5f894e94ddb3bb06898e4 +SHA512 (stable_deref_trait-1.2.0.crate) = a13cfb22723f1f2cf089b2d07d657846f50c37bc0438d1a76096bea30214cad226b7a422c21f9e191ce87071da8a141d61882aedf9e0203a5fffdfda86a5fb03