From 37025026d96692342a8093997c40935a0dd64226 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Fri, 15 Dec 2023 13:52:26 -0600 Subject: [PATCH] Update to 0.6.0 Signed-off-by: Michel Lind --- .gitignore | 1 + convert_case-fix-metadata.diff | 12 ++++++++---- rust-convert_case.spec | 10 +++++----- sources | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index e9c9fc5..5ab226e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /convert_case-0.4.0.crate +/convert_case-0.6.0.crate diff --git a/convert_case-fix-metadata.diff b/convert_case-fix-metadata.diff index 71097e7..4896d8f 100644 --- a/convert_case-fix-metadata.diff +++ b/convert_case-fix-metadata.diff @@ -1,16 +1,20 @@ ---- convert_case-0.4.0/Cargo.toml 2020-05-18T02:16:34+00:00 -+++ convert_case-0.4.0/Cargo.toml 2022-12-15T12:49:37.895777+00:00 -@@ -21,18 +21,14 @@ - categories = ["text-processing"] +--- convert_case-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ convert_case-0.6.0/Cargo.toml 2023-12-15T19:51:16.271406+00:00 +@@ -25,11 +25,6 @@ license = "MIT" repository = "https://github.com/rutrum/convert-case" + -[profile.release] -lto = true -codegen-units = 1 -panic = "abort" +- [dependencies.rand] version = "^0.7" optional = true +@@ -38,10 +33,10 @@ + version = "1.9.0" + [dev-dependencies.strum] -version = "0.18.0" +version = "0.21.0" diff --git a/rust-convert_case.spec b/rust-convert_case.spec index 9bde8b9..c5898b5 100644 --- a/rust-convert_case.spec +++ b/rust-convert_case.spec @@ -1,15 +1,14 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate convert_case Name: rust-convert_case -Version: 0.4.0 +Version: 0.6.0 Release: %autorelease Summary: Convert strings into any case -# https://github.com/rutrum/convert-case/commit/f72ca63 License: MIT URL: https://crates.io/crates/convert_case Source: %{crates_source} @@ -20,7 +19,7 @@ Source: %{crates_source} # https://bugzilla.redhat.com/show_bug.cgi?id=2142648 Patch: convert_case-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Convert strings into any case.} @@ -37,6 +36,7 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel +%license %{crate_instdir}/LICENSE %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -77,7 +77,7 @@ use the "random" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 10562e8..681bf07 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (convert_case-0.4.0.crate) = e17e92b94b030e39f368ef0dd0288dbb45f77c8ce3034c1a6fd2fd43f38cf10a1af5aa7bebdfb447c335d9593c32dde7262e13f97c271c419c6106cf47dc01e1 +SHA512 (convert_case-0.6.0.crate) = 3b17449195a9a36e3965db89eeb967979c192ad7743217ea08e8c8b91ecae1ac1674362d05dc6f32f1f361fface3f783398285bb78060403f65a777a9d29adf2