From aecf599e15ed6a4717dc9846c67a1909b1d92d79 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 18 Feb 2024 17:07:57 +0100 Subject: [PATCH] Update to version 5.2.0; Fixes RHBZ#2263160 --- .gitignore | 1 + rust-syntect.spec | 12 ++++++------ rust2rpm.toml | 7 +++++++ sources | 2 +- syntect-fix-metadata.diff | 10 +++++----- 5 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index e1f445d..081250a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /syntect-4.6.0.crate /syntect-5.0.0.crate /syntect-5.1.0.crate +/syntect-5.2.0.crate diff --git a/rust-syntect.spec b/rust-syntect.spec index c7393a2..bbc6278 100644 --- a/rust-syntect.spec +++ b/rust-syntect.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * test data is not shipped with published crates %bcond_with check %global debug_package %{nil} @@ -6,18 +6,18 @@ %global crate syntect Name: rust-syntect -Version: 5.1.0 +Version: 5.2.0 Release: %autorelease -Summary: Library for high quality syntax highlighting and code intelligence +Summary: High quality syntax highlighting and code intelligence License: MIT URL: https://crates.io/crates/syntect Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused, benchmark-only criterion dev-dependency Patch: syntect-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Library for high quality syntax highlighting and code intelligence using @@ -306,7 +306,7 @@ use the "yaml-rust" 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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..cdd6e4c --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "High quality syntax highlighting and code intelligence" + +[tests] +run = ["none"] +comments = ["test data is not shipped with published crates"] + diff --git a/sources b/sources index bb93126..b4d1db2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (syntect-5.1.0.crate) = aa69ff676e020a45b33c0a8015fdea5f60bf4d17313c01ff955bddb82698d14e940be942a40cf5e279a0b047031ab3ba5d0f2bd25dcbecaf89800d62d4b408da +SHA512 (syntect-5.2.0.crate) = 52780b693e484da02d773e9cca460e6b20d8aee436ba96c2e965a078e24b88dea35a03e692c5f7e3d02c82477093a592078e8686a6c9ccc7a2df9a6e20577c2b diff --git a/syntect-fix-metadata.diff b/syntect-fix-metadata.diff index 41ad08d..7f7bb6b 100644 --- a/syntect-fix-metadata.diff +++ b/syntect-fix-metadata.diff @@ -1,6 +1,6 @@ ---- syntect-5.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ syntect-5.1.0/Cargo.toml 2023-08-01T11:46:04.759430+00:00 -@@ -109,10 +109,6 @@ +--- syntect-5.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ syntect-5.2.0/Cargo.toml 2024-02-18T16:05:24.640728+00:00 +@@ -111,10 +111,6 @@ version = "0.4.5" optional = true @@ -8,6 +8,6 @@ -version = "0.3" -features = ["html_reports"] - - [dev-dependencies.getopts] - version = "0.2" + [dev-dependencies.expect-test] + version = "1.4.1"