public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-lopdf] f45: Update to version 0.44.0
@ 2026-09-15 19:23 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-09-15 19:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-lopdf
Branch : f45
Commit : fdacb8e0656de06842095c63ed811b0c14121259
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-09-15T20:25:44+02:00
Stats : +33/-217 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-lopdf/c/fdacb8e0656de06842095c63ed811b0c14121259?branch=f45
Log:
Update to version 0.44.0
---
diff --git a/.gitignore b/.gitignore
index a169645..aeec04a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/lopdf-0.33.0.crate
/lopdf-0.36.0.crate
/lopdf-0.38.0.crate
+/lopdf-0.44.0.crate
diff --git a/lopdf-fix-metadata.diff b/lopdf-fix-metadata.diff
index 94c75e5..ae8a968 100644
--- a/lopdf-fix-metadata.diff
+++ b/lopdf-fix-metadata.diff
@@ -1,17 +1,6 @@
---- lopdf-0.38.0/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ lopdf-0.38.0/Cargo.toml 2026-03-12T19:19:28.125046+00:00
-@@ -37,6 +37,10 @@
- categories = ["text-processing"]
- license = "MIT"
- repository = "https://github.com/J-F-Liu/lopdf.git"
-+exclude = [
-+ "/assets/",
-+ "/examples/",
-+]
-
- [badges.travis-ci]
- repository = "J-F-Liu/lopdf"
-@@ -57,159 +61,11 @@
+--- lopdf-0.44.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ lopdf-0.44.0/Cargo.toml 2026-09-15T18:22:03.019499+00:00
+@@ -65,7 +65,6 @@
jiff = ["dep:jiff"]
serde = ["dep:serde"]
time = ["dep:time"]
@@ -19,195 +8,12 @@
[lib]
name = "lopdf"
- path = "src/lib.rs"
-
--[[example]]
--name = "add_barcode"
--path = "examples/add_barcode.rs"
--
--[[example]]
--name = "analyze_object_streams"
--path = "examples/analyze_object_streams.rs"
--
--[[example]]
--name = "analyze_page_contents"
--path = "examples/analyze_page_contents.rs"
--
--[[example]]
--name = "analyze_pdf"
--path = "examples/analyze_pdf.rs"
--
--[[example]]
--name = "analyze_references"
--path = "examples/analyze_references.rs"
--
--[[example]]
--name = "check_raw_objstream"
--path = "examples/check_raw_objstream.rs"
--
--[[example]]
--name = "compress_existing_pdf"
--path = "examples/compress_existing_pdf.rs"
--
--[[example]]
--name = "create"
--path = "examples/create.rs"
--
--[[example]]
--name = "create_text_heavy_pdf"
--path = "examples/create_text_heavy_pdf.rs"
--
--[[example]]
--name = "debug_compression_detailed"
--path = "examples/debug_compression_detailed.rs"
--
--[[example]]
--name = "debug_compression_full"
--path = "examples/debug_compression_full.rs"
--
--[[example]]
--name = "debug_object_stream"
--path = "examples/debug_object_stream.rs"
--
--[[example]]
--name = "debug_save_with_objstreams"
--path = "examples/debug_save_with_objstreams.rs"
--
--[[example]]
--name = "decrypt"
--path = "examples/decrypt.rs"
--
--[[example]]
--name = "encrypt"
--path = "examples/encrypt.rs"
--
--[[example]]
--name = "extract_text"
--path = "examples/extract_text.rs"
--required-features = ["serde"]
--
--[[example]]
--name = "extract_toc"
--path = "examples/extract_toc.rs"
--required-features = ["serde"]
--
--[[example]]
--name = "final_compression_test"
--path = "examples/final_compression_test.rs"
--
--[[example]]
--name = "inspect_object_stream"
--path = "examples/inspect_object_stream.rs"
--
--[[example]]
--name = "merge"
--path = "examples/merge.rs"
--
--[[example]]
--name = "object_streams"
--path = "examples/object_streams.rs"
--
--[[example]]
--name = "print_annotations"
--path = "examples/print_annotations.rs"
--required-features = ["default"]
--
--[[example]]
--name = "replace_partial_text"
--path = "examples/replace_partial_text.rs"
--
--[[example]]
--name = "rotate"
--path = "examples/rotate.rs"
--
--[[example]]
--name = "test_better_compression"
--path = "examples/test_better_compression.rs"
--
--[[example]]
--name = "test_decryption"
--path = "examples/test_decryption.rs"
--
--[[example]]
--name = "test_direct_objstream"
--path = "examples/test_direct_objstream.rs"
--
--[[example]]
--name = "test_filter_roundtrip"
--path = "examples/test_filter_roundtrip.rs"
--
--[[example]]
--name = "test_object_stream_creation"
--path = "examples/test_object_stream_creation.rs"
--
--[[example]]
--name = "test_object_stream_roundtrip"
--path = "examples/test_object_stream_roundtrip.rs"
--
--[[example]]
--name = "test_real_pdf_compression_with_fix"
--path = "examples/test_real_pdf_compression_with_fix.rs"
--
--[[example]]
--name = "test_structural_compression"
--path = "examples/test_structural_compression.rs"
--
--[[example]]
--name = "verify_decryption"
--path = "examples/verify_decryption.rs"
--
--[[example]]
--name = "verify_page_compression"
--path = "examples/verify_page_compression.rs"
--
--[[example]]
--name = "verify_pdf"
--path = "examples/verify_pdf.rs"
--
--[[example]]
--name = "verify_trailer_compression_fix"
--path = "examples/verify_trailer_compression_fix.rs"
--
- [[test]]
- name = "annotation"
- path = "tests/annotation.rs"
-@@ -265,14 +121,6 @@
- [[test]]
- name = "utils"
- path = "tests/utils.rs"
--
--[[bench]]
--name = "datetime"
--path = "benches/datetime.rs"
--
--[[bench]]
--name = "parse"
--path = "benches/parse.rs"
+@@ -408,7 +407,7 @@
+ optional = true
- [dependencies.aes]
- version = "0.8.4"
-@@ -376,24 +224,11 @@
[dependencies.weezl]
- version = "0.1"
-
--[dev-dependencies.clap]
--version = "4.0"
--features = ["derive"]
--
- [dev-dependencies.env_logger]
- version = "0.11"
-
--[dev-dependencies.serde_json]
--version = "1.0"
--
--[dev-dependencies.shellexpand]
--version = "3.0"
--
- [dev-dependencies.tempfile]
- version = "3.3"
-
- [dev-dependencies.ttf-parser]
- version = "0.25.1"
--
--[dev-dependencies.wasm-bindgen-test]
-version = "0.2"
++version = ">=0.1,<0.3"
+
+ [dev-dependencies.clap]
+ version = "4.6"
diff --git a/rust-lopdf.spec b/rust-lopdf.spec
index ac37ecb..827f99c 100644
--- a/rust-lopdf.spec
+++ b/rust-lopdf.spec
@@ -1,11 +1,12 @@
# Generated by rust2rpm 28
-%bcond check 1
+# * assets for tests are not included in published crates
+%bcond check 0
%global debug_package %{nil}
%global crate lopdf
Name: rust-lopdf
-Version: 0.38.0
+Version: 0.44.0
Release: %autorelease
Summary: Rust library for PDF document manipulation
@@ -13,8 +14,8 @@ License: MIT
URL: https://crates.io/crates/lopdf
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
-# * drop unused example programs and example-only dev-dependencies
-# * do not ship large test fixtures and unused example programs
+# * relax weezl dependency to allow both v0.1 and v0.2
+# * drop WASM-specific feature flags and dependencies
Patch: lopdf-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24
@@ -87,6 +88,18 @@ use the "embed_image" feature of the "%{crate}" crate.
%files -n %{name}+embed_image-devel
%ghost %{crate_instdir}/Cargo.toml
+%package -n %{name}+font_embedding-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+font_embedding-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "font_embedding" feature of the "%{crate}" crate.
+
+%files -n %{name}+font_embedding-devel
+%ghost %{crate_instdir}/Cargo.toml
+
%package -n %{name}+image-devel
Summary: %{summary}
BuildArch: noarch
@@ -162,8 +175,6 @@ use the "tokio" feature of the "%{crate}" crate.
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
-# drop unused example programs
-rm -rv examples/
%generate_buildrequires
%cargo_generate_buildrequires
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 37b9e1b..972ee3f 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,12 +1,10 @@
[package]
cargo-toml-patch-comments = [
- "drop unused example programs and example-only dev-dependencies",
- "do not ship large test fixtures and unused example programs",
+ "relax weezl dependency to allow both v0.1 and v0.2",
+ "drop WASM-specific feature flags and dependencies",
]
-[scripts]
-prep.post = [
- "# drop unused example programs",
- "rm -rv examples/",
-]
+[tests]
+run = false
+comments = ["assets for tests are not included in published crates"]
diff --git a/sources b/sources
index 6c8d8c8..4b2a311 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lopdf-0.38.0.crate) = e313edfa8500c023e7857c06e5dd78b4be3805ce4e93ab4c73e798e04c86fa62012b62bbe1a70a325a9f03b363875aa8c62a4eede17c0e70a4c852c15812d24c
+SHA512 (lopdf-0.44.0.crate) = a3c8c68f15a378ddd1d94cebbd32b3892ebc3b7fb821cd994486f405fdd8d08171c13505f03beda037f685f080f8d75b3ca0f2c5eeb472c4e8413dc602c2732c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-15 19:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 19:23 [rpms/rust-lopdf] f45: Update to version 0.44.0 Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox