From c45ed4c1b519dfe0ed50db11bc6b35026e805701 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 3 Jun 2023 21:14:52 +0200 Subject: [PATCH] Update to version 0.4.1; Fixes RHBZ#2183785 --- .gitignore | 1 + README.md | 3 --- rust-hex-literal.spec | 39 +++++++++++++++++---------------------- sources | 2 +- 4 files changed, 19 insertions(+), 26 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index 23a3362..f2372f0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /hex-literal-0.3.1.crate /hex-literal-0.3.3.crate /hex-literal-0.3.4.crate +/hex-literal-0.4.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 98db55e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-hex-literal - -The rust-hex-literal package \ No newline at end of file diff --git a/rust-hex-literal.spec b/rust-hex-literal.spec index 1c42582..9a68554 100644 --- a/rust-hex-literal.spec +++ b/rust-hex-literal.spec @@ -1,29 +1,22 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate hex-literal -Name: rust-%{crate} -Version: 0.3.4 +Name: rust-hex-literal +Version: 0.4.1 Release: %autorelease -Summary: Procedural macro for converting hexadecimal string to byte array at compile time +Summary: Macro for converting hexadecimal string to a byte array at compile time -# 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/hex-literal Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Procedural macro for converting hexadecimal string to byte array at compile -time.} +Macro for converting hexadecimal string to a byte array at compile time.} %description %{_description} @@ -33,13 +26,15 @@ 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-MIT LICENSE-APACHE -%doc CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +42,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 8928aaf..c30e0e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (hex-literal-0.3.4.crate) = b064b9b66e36890d29f414ed5cb9c066000752c218867fcf96918e089d28a851dec8c790850e5a65e4105fa66c8e954cc0a950ad77c11fbfeed490e896301966 +SHA512 (hex-literal-0.4.1.crate) = 8894e48485be7e1d7a16d2e061086c524b039a1be24a4c20126d3f175e12aa87d6d65ae295da6dea88f19708f3f3a051c3c3e334196c094ace68a249ad57fbb6