public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-libcramjam] rawhide: Update to version 0.9.1; Fixes RHBZ#2543158
Date: Wed, 30 Sep 2026 19:56:45 GMT	[thread overview]
Message-ID: <179079820513.1.25863734775376483.rpms-rust-libcramjam-044d79c369c6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-libcramjam
Branch : rawhide
Commit : 044d79c369c6ace249a19cee5bdbc2b23b900ecb
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-29T20:07:32+01:00
Stats  : +188/-75 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-libcramjam/c/044d79c369c6ace249a19cee5bdbc2b23b900ecb?branch=rawhide

Log:
Update to version 0.9.1; Fixes RHBZ#2543158

---
diff --git a/.gitignore b/.gitignore
index 8c751c8..4056962 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /libcramjam-0.6.0.crate
 /libcramjam-0.7.0.crate
 /libcramjam-0.8.0.crate
+/libcramjam-0.9.1.crate

diff --git a/libcramjam-fix-metadata.diff b/libcramjam-fix-metadata.diff
index ab29e05..2d14e7e 100644
--- a/libcramjam-fix-metadata.diff
+++ b/libcramjam-fix-metadata.diff
@@ -1,7 +1,7 @@
---- libcramjam-0.8.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ libcramjam-0.8.0/Cargo.toml	2025-12-16T11:07:58.443154+00:00
-@@ -35,15 +35,6 @@
- strip_include_path_components = 1
+--- libcramjam-0.9.1/Cargo.toml	1970-01-01T00:00:01+00:00
++++ libcramjam-0.9.1/Cargo.toml	2026-09-29T17:48:52.085801+00:00
+@@ -39,15 +39,6 @@
+ subdirectory = "cramjam"
  
  [features]
 -blosc2 = ["blosc2-static"]
@@ -15,35 +15,23 @@
 -]
  brotli = ["dep:brotli"]
  bzip2 = ["dep:bzip2"]
- capi = ["dep:libc"]
-@@ -58,87 +49,39 @@
+ bzip2-pure = []
+@@ -63,33 +54,14 @@
      "deflate",
      "zlib",
  ]
 -deflate = ["deflate-static"]
 +deflate = ["deflate-shared"]
- deflate-shared = [
-     "dep:libdeflate-sys",
-     "dep:flate2",
-     "libdeflate-sys/dynamic",
+ deflate-pure = [
+     "dep:crc32fast",
+     "dep:simd-adler32",
  ]
--deflate-static = [
--    "dep:libdeflate-sys",
--    "dep:flate2",
--]
+ deflate-shared = ["dep:flate2"]
+-deflate-static = ["dep:flate2"]
 -gzip = ["gzip-static"]
 +gzip = ["gzip-shared"]
- gzip-shared = [
-     "dep:libdeflate-sys",
-     "dep:flate2",
-     "libdeflate-sys/dynamic",
-     "deflate-shared",
- ]
--gzip-static = [
--    "dep:libdeflate-sys",
--    "dep:flate2",
--    "deflate-static",
--]
+ gzip-shared = ["deflate-shared"]
+-gzip-static = ["deflate-static"]
 -ideflate = ["isal-static"]
 -ideflate-shared = ["isal-shared"]
 -ideflate-static = ["isal-static"]
@@ -62,6 +50,11 @@
 -izlib-shared = ["isal-shared"]
 -izlib-static = ["isal-static"]
  lz4 = ["dep:lz4"]
+ lz4-pure = []
+ pure-rust = [
+@@ -100,16 +72,7 @@
+     "xz-pure",
+ ]
  snappy = ["dep:snap"]
 -use-system-blosc2 = [
 -    "dep:blosc2-rs",
@@ -74,43 +67,72 @@
 -wasm32-compat = ["blosc2-rs/deactivate-zlib-optim"]
 -xz = ["xz-static"]
 +xz = ["xz-shared"]
- xz-shared = ["dep:xz2"]
+ xz-pure = [
+     "dep:crc32fast",
+     "dep:crc-fast",
+@@ -119,20 +82,15 @@
+     "dep:xz2",
+     "dep:lzma-sys",
+ ]
 -xz-static = [
 -    "dep:xz2",
+-    "dep:lzma-sys",
 -    "xz2/static",
 -]
 -zlib = ["zlib-static"]
 +zlib = ["zlib-shared"]
- zlib-shared = [
-     "dep:libdeflate-sys",
-     "dep:flate2",
-     "libdeflate-sys/dynamic",
-     "deflate-shared",
- ]
--zlib-static = [
--    "dep:libdeflate-sys",
--    "dep:flate2",
--    "deflate-static",
--]
+ zlib-shared = ["deflate-shared"]
+-zlib-static = ["deflate-static"]
  zstd = ["dep:zstd"]
+ zstd-pure = []
  
  [lib]
  name = "libcramjam"
  path = "src/lib.rs"
++crate-type = ["lib", "cdylib"]
+ 
+ [[example]]
+ name = "lz4fast_check"
+@@ -195,26 +153,6 @@
+ path = "tests/backend_contract.rs"
+ 
+ [[test]]
+-name = "corpus_bzip2"
+-path = "tests/corpus_bzip2.rs"
+-
+-[[test]]
+-name = "corpus_deflate"
+-path = "tests/corpus_deflate.rs"
+-
+-[[test]]
+-name = "corpus_lz4"
+-path = "tests/corpus_lz4.rs"
+-
+-[[test]]
+-name = "corpus_xz"
+-path = "tests/corpus_xz.rs"
+-
+-[[test]]
+-name = "corpus_zstd"
+-path = "tests/corpus_zstd.rs"
+-
+-[[test]]
+ name = "cross_impl"
+ path = "tests/cross_impl.rs"
+ 
+@@ -285,11 +223,6 @@
+ path = "benches/zstd_bench.rs"
+ harness = false
+ required-features = ["pure-rust"]
 -
 -[dependencies.blosc2-rs]
 -version = "0.4.0+2.15.2"
 -optional = true
 -default-features = false
-+crate-type = ["lib", "cdylib"]
  
  [dependencies.brotli]
--version = "^7"
-+version = "^8"
- features = [
-     "std",
-     "ffi-api",
-@@ -147,7 +90,7 @@
+ version = "^8"
+@@ -301,7 +234,7 @@
  default-features = false
  
  [dependencies.bzip2]
@@ -118,25 +140,29 @@
 +version = ">=0.4,<0.7"
  optional = true
  
- [dependencies.flate2]
-@@ -159,7 +102,7 @@
+ [dependencies.crc-fast]
+@@ -349,11 +282,7 @@
  optional = true
  
- [dependencies.libdeflate-sys]
--version = "<1.20.0"
-+version = "^1"
- optional = true
+ [dev-dependencies.bzip2]
+-version = ">=0.4,<0.6"
+-
+-[dev-dependencies.criterion]
+-version = "0.5"
+-features = ["html_reports"]
++version = ">=0.4,<0.7"
  
- [dependencies.lz4]
-@@ -178,11 +121,6 @@
- version = "^0.13"
- optional = true
+ [dev-dependencies.flate2]
+ version = "^1"
+@@ -369,11 +298,6 @@
  
+ [dev-dependencies.zstd]
+ version = "^0.13"
+-
 -[target.'cfg(target_pointer_width = "64")'.dependencies.isal-rs]
 -version = "^0.5"
 -optional = true
 -default-features = false
--
- [profile.release]
+ 
+ [profile.profiling]
  opt-level = 3
- lto = "fat"

diff --git a/rust-libcramjam.spec b/rust-libcramjam.spec
index 0f0775a..2873496 100644
--- a/rust-libcramjam.spec
+++ b/rust-libcramjam.spec
@@ -6,7 +6,10 @@
 # to eventually need to maintain a compat package to preserve its API/ABI
 # stability. For the time being, we don’t plan to ship a shared library in any
 # EPEL release unless someone specifically asks for it.
-%bcond capi %{undefined epel}
+#
+# Older Fedora releases have the shared library built in a compat package to
+# avoid an incompatible update.
+%bcond capi %[ %{undefined epel} && %{undefined fc43} && %{undefined fc44} && %{undefined fc45} ]
 
 %global crate libcramjam
 
@@ -14,8 +17,8 @@ Name:           rust-libcramjam
 # Even though this is just MAJOR.MINOR from the SemVer version, we repeat it
 # explicitly to help prevent undetected/unannounced SONAME version bumps in the
 # libcramjam/libcramjam-devel subpackages.
-%global soversion 0.8
-Version:        0.8.0
+%global soversion 0.9
+Version:        0.9.1
 Release:        %autorelease
 Summary:        Compression library combining a plethora of algorithms
 
@@ -23,19 +26,18 @@ License:        MIT
 URL:            https://crates.io/crates/libcramjam
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
+# * Omit unused, benchmark-only criterion dev-dependency
 # * Add crate-type = ["lib", "cdylib"] to the [lib] table to get a better
 #   template from rust2rpm
-# * Do not upper-bound the version of libdeflate-sys (which is only due to CI
-#   limitations)
 # * Patch out all -static features
 # * Patch out features requiring blosc2-rs or isal-rs so we can stop packaging
 #   those crates
-# * Drop unused direct cbindgen build-dependency:
-#   https://github.com/cramjam/libcramjam/pull/23
 # * Relax bzip2 dependency to allow building with both v0.4 and v0.5:
 #   https://github.com/cramjam/libcramjam/pull/24; Allow bzip2 0.6:
 #   https://github.com/cramjam/libcramjam/pull/30
-# * Update brotli from 7 to 8: https://github.com/cramjam/libcramjam/pull/29
+# * Omit “corpus” tests: these require files from benches/data/, which are not
+#   distributed in the crate, and some of which don’t have entirely clear
+#   license status.
 Patch:          libcramjam-fix-metadata.diff
 
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
@@ -53,18 +55,20 @@ possible API.}
 %if %{with capi}
 %package     -n %{crate}
 Summary:        %{summary}
+# (MIT OR Apache-2.0) AND Zlib
 # 0BSD OR MIT OR Apache-2.0
-# Apache-2.0
 # BSD-3-Clause
 # BSD-3-Clause AND MIT
 # MIT
 # MIT OR Apache-2.0
 # MIT OR Zlib OR Apache-2.0
+# bzip2-1.0.6
 License:        %{shrink:
-                (0BSD OR MIT OR Apache-2.0) AND
-                Apache-2.0 AND
-                BSD-3-Clause AND
                 MIT AND
+                BSD-3-Clause AND
+                Zlib AND
+                bzip2-1.0.6 AND
+                (0BSD OR MIT OR Apache-2.0) AND
                 (MIT OR Apache-2.0) AND
                 (MIT OR Zlib OR Apache-2.0)
                 }
@@ -148,6 +152,18 @@ use the "bzip2" feature of the "%{crate}" crate.
 %files       -n %{name}+bzip2-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+bzip2-pure-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+bzip2-pure-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "bzip2-pure" feature of the "%{crate}" crate.
+
+%files       -n %{name}+bzip2-pure-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+capi-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -172,6 +188,18 @@ use the "deflate" feature of the "%{crate}" crate.
 %files       -n %{name}+deflate-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+deflate-pure-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+deflate-pure-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "deflate-pure" feature of the "%{crate}" crate.
+
+%files       -n %{name}+deflate-pure-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+deflate-shared-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -220,6 +248,30 @@ use the "lz4" feature of the "%{crate}" crate.
 %files       -n %{name}+lz4-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+lz4-pure-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+lz4-pure-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "lz4-pure" feature of the "%{crate}" crate.
+
+%files       -n %{name}+lz4-pure-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+pure-rust-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+pure-rust-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "pure-rust" feature of the "%{crate}" crate.
+
+%files       -n %{name}+pure-rust-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+snappy-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -244,6 +296,18 @@ use the "xz" feature of the "%{crate}" crate.
 %files       -n %{name}+xz-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+xz-pure-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+xz-pure-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "xz-pure" feature of the "%{crate}" crate.
+
+%files       -n %{name}+xz-pure-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+xz-shared-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -292,6 +356,18 @@ use the "zstd" feature of the "%{crate}" crate.
 %files       -n %{name}+zstd-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+zstd-pure-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+zstd-pure-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "zstd-pure" feature of the "%{crate}" crate.
+
+%files       -n %{name}+zstd-pure-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 18e3eb9..a0e8dad 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,17 +1,26 @@
 [package]
 summary = "Compression library combining a plethora of algorithms"
 cargo-toml-patch-comments = [
-    "Add crate-type = [\"lib\", \"cdylib\"] to the [lib] table to get a better template from rust2rpm",
-    "Do not upper-bound the version of libdeflate-sys (which is only due to CI limitations)",
+    "Omit unused, benchmark-only criterion dev-dependency",
+    """\
+Add crate-type = [\"lib\", \"cdylib\"] to the [lib] table to get a better \
+template from rust2rpm\
+""",
     "Patch out all -static features",
-    "Patch out features requiring blosc2-rs or isal-rs so we can stop packaging those crates",
-    "Drop unused direct cbindgen build-dependency: https://github.com/cramjam/libcramjam/pull/23",
+    """\
+Patch out features requiring blosc2-rs or isal-rs so we can stop packaging \
+those crates\
+""",
     """\
 Relax bzip2 dependency to allow building with both v0.4 and v0.5: \
 https://github.com/cramjam/libcramjam/pull/24; Allow bzip2 0.6: \
 https://github.com/cramjam/libcramjam/pull/30\
 """,
-    "Update brotli from 7 to 8: https://github.com/cramjam/libcramjam/pull/29",
+    """\
+Omit “corpus” tests: these require files from benches/data/, which are not \
+distributed in the crate, and some of which don’t have entirely clear license \
+status.\
+""",
 ]
 # This is handled in scripts.install.post.
 suppress-cdylib-install-fixme = true
@@ -50,6 +59,7 @@ post = [
 %endif\
 """,
 ]
+
 [scripts.install]
 post = [
     """\

diff --git a/sources b/sources
index 1324877..ff0b99c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libcramjam-0.8.0.crate) = 006c2c23aa2fed7ab976bd08c72b96c8ee99e7a225b1ea7532012a916c09f72147bd07027e19d8b8d81abb5f3d62b44e6bf9924e52f08afd2faa9dd9584d3413
+SHA512 (libcramjam-0.9.1.crate) = feae4d57a900d2e628b689cb563ceedf685db8b4873e70c4a5bf3e8d8cad78d203511c0ff1c563d25adb97cf6c903ac03477343196ac4660e4bf2e36cc19ccd0

                 reply	other threads:[~2026-09-30 19:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179079820513.1.25863734775376483.rpms-rust-libcramjam-044d79c369c6@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox