diff --git a/.gitignore b/.gitignore index 87c11d9..12eff20 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /databake-derive-0.1.5.crate +/databake-derive-0.1.7.crate diff --git a/databake-derive-fix-metadata.diff b/databake-derive-fix-metadata.diff new file mode 100644 index 0000000..a2cb4b2 --- /dev/null +++ b/databake-derive-fix-metadata.diff @@ -0,0 +1,11 @@ +--- databake-derive-0.1.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ databake-derive-0.1.7/Cargo.toml 2024-02-07T13:30:56.110390+00:00 +@@ -39,7 +39,7 @@ + "development-tools::procedural-macro-helpers", + "development-tools::build-utils", + ] +-license-file = "LICENSE" ++license = "Unicode-DFS-2016" + repository = "https://github.com/unicode-org/icu4x" + + [package.metadata.workspaces] diff --git a/rust-databake-derive.spec b/rust-databake-derive.spec index aade96d..120676d 100644 --- a/rust-databake-derive.spec +++ b/rust-databake-derive.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} @@ -6,15 +6,18 @@ %global crate databake-derive Name: rust-databake-derive -Version: 0.1.5 +Version: 0.1.7 Release: %autorelease Summary: Custom derive for the databake crate License: Unicode-DFS-2016 URL: https://crates.io/crates/databake-derive Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * set license in crate metadata +Patch: databake-derive-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Custom derive for the databake crate.} @@ -48,7 +51,7 @@ use the "default" 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 c904a6e..9283af0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (databake-derive-0.1.5.crate) = 3a75615f97d41e4b78d0a5fb9e752485f680391411b9bd1db369a3752214d4353b67ef7b3144228c0f0b274938005ba38c32f94ac38792388c180f4fe71e6add +SHA512 (databake-derive-0.1.7.crate) = de8dc7c0f3b4df0fe7b3e2ba45d11521e7506bab5a6c128acf85991c27b37019cb62d2891c9b3f30f34228f89d48712ef6e9a2b0d483aad3a518589f2a6ad917