diff --git a/.gitignore b/.gitignore index 968e44a..41c9507 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /annotate-snippets-0.9.2.crate /annotate-snippets-0.10.2.crate /annotate-snippets-0.11.4.crate +/annotate-snippets-0.11.5.crate diff --git a/annotate-snippets-fix-metadata.diff b/annotate-snippets-fix-metadata.diff index f67bd7a..ab5f780 100644 --- a/annotate-snippets-fix-metadata.diff +++ b/annotate-snippets-fix-metadata.diff @@ -1,12 +1,12 @@ ---- annotate-snippets-0.11.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ annotate-snippets-0.11.4/Cargo.toml 2024-07-26T17:54:32.355598+00:00 -@@ -116,9 +116,6 @@ - - [dev-dependencies.anstream] - version = "0.6.13" -- --[dev-dependencies.criterion] --version = "0.5.1" +--- annotate-snippets-0.11.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ annotate-snippets-0.11.5/Cargo.toml 2024-12-12T11:08:39.752529+00:00 +@@ -129,9 +129,6 @@ [dev-dependencies.difference] version = "2.0.0" +- +-[dev-dependencies.divan] +-version = "0.1.14" + + [dev-dependencies.glob] + version = "0.3.1" diff --git a/rust-annotate-snippets.spec b/rust-annotate-snippets.spec index 9f782f0..98fec65 100644 --- a/rust-annotate-snippets.spec +++ b/rust-annotate-snippets.spec @@ -1,21 +1,20 @@ -# Generated by rust2rpm 26 +# Generated by rust2rpm 27 # * missing dev-dependency: tryfn ^0.2.1 -%bcond_with check +%bcond check 0 %global debug_package %{nil} %global crate annotate-snippets Name: rust-annotate-snippets -Version: 0.11.4 +Version: 0.11.5 Release: %autorelease Summary: Library for building code annotations -# Upstream license specification: Apache-2.0/MIT -License: Apache-2.0 OR MIT +License: MIT OR Apache-2.0 URL: https://crates.io/crates/annotate-snippets Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency +# * drop unused, benchmark-only divan dev-dependency Patch: annotate-snippets-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -37,7 +36,6 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT -%doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -53,6 +51,30 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+memchr-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+memchr-devel %{_description} + +This package contains library source intended for building other packages which +use the "memchr" feature of the "%{crate}" crate. + +%files -n %{name}+memchr-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+simd-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-devel %{_description} + +This package contains library source intended for building other packages which +use the "simd" feature of the "%{crate}" crate. + +%files -n %{name}+simd-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+testing-colors-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.toml b/rust2rpm.toml index d3814c1..747b669 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,6 +1,6 @@ [package] cargo-toml-patch-comments = [ - "drop unused, benchmark-only criterion dev-dependency", + "drop unused, benchmark-only divan dev-dependency", ] [tests] diff --git a/sources b/sources index 375a899..6870c4e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annotate-snippets-0.11.4.crate) = f8d22a5a0e17cf665261e1cb38d773005bd52097a11c75682ee4320c2fd44326fa2c0b7b72751e474230b109629d1886227d2131cb5fe1f021c5aa4c5a33defc +SHA512 (annotate-snippets-0.11.5.crate) = c23c33244118958653b69d7b5b34eaf67a1866e15b79c7eae9c438b246fd840a2447638413fffed1ab61a10d16c2f9982a8f5e5afdf8c2a84a135596566e8a8f