public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-lzma-sys] f45: Regenerate with rust2rpm v28
Date: Tue, 25 Aug 2026 18:49:57 GMT	[thread overview]
Message-ID: <178768379743.1.6801757152796231021.rpms-rust-lzma-sys-70cc61b3da9a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-lzma-sys
Branch : f45
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=f45

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",
+]
+

                 reply	other threads:[~2026-08-25 18:49 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=178768379743.1.6801757152796231021.rpms-rust-lzma-sys-70cc61b3da9a@fedoraproject.org \
    --to=decathorpe@gmail.com \
    --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