From 5df04e925c9272f444218d36557b23453a402978 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 12 May 2022 16:33:03 +0200 Subject: [PATCH] Update to version 0.1.4; Fixes RHBZ#2078262 --- .gitignore | 1 + rust-ghost.spec | 26 ++++++++++++-------------- sources | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 6c476f0..5319c8c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /ghost-0.1.2.crate +/ghost-0.1.4.crate diff --git a/rust-ghost.spec b/rust-ghost.spec index 8d3feb0..4af787f 100644 --- a/rust-ghost.spec +++ b/rust-ghost.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate ghost Name: rust-%{crate} -Version: 0.1.2 +Version: 0.1.4 Release: %autorelease Summary: Define your own PhantomData @@ -15,11 +15,8 @@ URL: https://crates.io/crates/ghost Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Define your own PhantomData.} @@ -32,13 +29,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +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} @@ -46,11 +44,11 @@ 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. +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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index d488d87..ecd3ad2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ghost-0.1.2.crate) = 4258fdfab59946a4955f053cf0b73f964d5bdf25ac9357ef8f4cb21948299fb749bf0c0e89a9c1e95a8606e74c6b3a3630fb4f6316815d83882a9531e3b78b5a +SHA512 (ghost-0.1.4.crate) = 1c59cf596dcb360c6cc345b3733fdd8a5adfec001b668acf527a5d74f261b1468c79086ddc1110981d10baf311d0df2960203c86e97d639f500db09abc7b701e