public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-lzma-sys] rawhide: Regenerate with rust2rpm v28
@ 2026-08-25 18:40 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-08-25 18:40 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-lzma-sys
Branch : rawhide
Commit : 70cc61b3da9ae9db91717eea3ba5b0895e49d0b2
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-08-25T20:39:37+02:00
Stats  : +39/-21 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-lzma-sys/c/70cc61b3da9ae9db91717eea3ba5b0895e49d0b2?branch=rawhide

Log:
Regenerate with rust2rpm v28

---
diff --git a/README.md b/README.md
deleted file mode 100644
index cd952c2..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-lzma-sys
-
-The rust-lzma-sys package
\ No newline at end of file

diff --git a/lzma-sys-fix-metadata.diff b/lzma-sys-fix-metadata.diff
index 7c9e8d9..4faad05 100644
--- a/lzma-sys-fix-metadata.diff
+++ b/lzma-sys-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- lzma-sys-0.1.20/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ lzma-sys-0.1.20/Cargo.toml	2022-12-12T22:25:47.846905+00:00
++++ lzma-sys-0.1.20/Cargo.toml	2026-08-25T18:36:41.508239+00:00
 @@ -36,6 +36,3 @@
  
  [build-dependencies.pkg-config]

diff --git a/rust-lzma-sys.spec b/rust-lzma-sys.spec
index d8c61f1..1c65024 100644
--- a/rust-lzma-sys.spec
+++ b/rust-lzma-sys.spec
@@ -1,5 +1,5 @@
-# Generated by rust2rpm 23
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
 %global debug_package %{nil}
 
 %global crate lzma-sys
@@ -16,14 +16,15 @@ Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
 # * drop feature for statically linking against the bundled version of liblzma
 Patch:          lzma-sys-fix-metadata.diff
-Patch:          0001-build-unconditionally-link-against-system-liblzma.patch
+Patch2:         0001-build-unconditionally-link-against-system-liblzma.patch
 
-BuildRequires:  rust-packaging >= 21
+BuildRequires:  cargo-rpm-macros >= 24
+BuildRequires:  (pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)
 
 %global _description %{expand:
-Raw bindings to liblzma which contains an implementation of LZMA and xz stream
-encoding/decoding.
-High level Rust bindings are available in the `xz2` crate.}
+Raw bindings to liblzma which contains an implementation of LZMA and xz
+stream encoding/decoding. High level Rust bindings are available in the
+`xz2` crate.}
 
 %description %{_description}
 
@@ -55,15 +56,14 @@ use the "default" feature of the "%{crate}" crate.
 %ghost %{crate_instdir}/Cargo.toml
 
 %prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
-# remove bundled dependencies
-rm -r xz-*
-rm config.h
+%autosetup -n %{crate}-%{version} -p1
 %cargo_prep
+# remove bundled dependencies
+rm -rv xz-*
+rm -v config.h
 
 %generate_buildrequires
 %cargo_generate_buildrequires
-echo '(pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)'
 
 %build
 %cargo_build

diff --git a/rust2rpm.conf b/rust2rpm.conf
deleted file mode 100644
index 02c41ff..0000000
--- a/rust2rpm.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[DEFAULT]
-buildrequires =
-  (pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)
-lib.requires =
-  (pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..1292e04
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,26 @@
+[package]
+summary = "Raw bindings to liblzma"
+cargo-toml-patch-comments = [
+    "drop feature for statically linking against the bundled version of liblzma",
+]
+license-files.exclude = ["xz-*/*"]
+
+[[package.extra-patches]]
+number = 2
+file = "0001-build-unconditionally-link-against-system-liblzma.patch"
+
+[requires]
+build = [
+    "(pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)",
+]
+lib = [
+    "(pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)",
+]
+
+[scripts]
+prep.post = [
+    "# remove bundled dependencies",
+    "rm -rv xz-*",
+    "rm -v config.h",
+]
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-25 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-25 18:40 [rpms/rust-lzma-sys] rawhide: Regenerate with rust2rpm v28 Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox