public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-libdeflate-sys] rawhide: Use long options
@ 2026-08-23 10:56 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-23 10:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-libdeflate-sys
Branch : rawhide
Commit : b5beaf34a224f6361e16c7cb6729c546fe15ed36
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-23T11:35:28+01:00
Stats : +11/-7 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rust-libdeflate-sys/c/b5beaf34a224f6361e16c7cb6729c546fe15ed36?branch=rawhide
Log:
Use long options
[skip changelog]
---
diff --git a/libdeflate-sys-fix-metadata.diff b/libdeflate-sys-fix-metadata.diff
index 7d59373..bc6bbb0 100644
--- a/libdeflate-sys-fix-metadata.diff
+++ b/libdeflate-sys-fix-metadata.diff
@@ -1,5 +1,5 @@
--- libdeflate-sys-1.25.2/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ libdeflate-sys-1.25.2/Cargo.toml 2026-02-08T11:56:03.586567+00:00
++++ libdeflate-sys-1.25.2/Cargo.toml 2026-08-23T10:29:23.119565+00:00
@@ -41,7 +41,7 @@
repository = "https://github.com/libdeflater/libdeflater"
diff --git a/rust-libdeflate-sys.spec b/rust-libdeflate-sys.spec
index 4f49170..27fd3a8 100644
--- a/rust-libdeflate-sys.spec
+++ b/rust-libdeflate-sys.spec
@@ -82,13 +82,15 @@ use the "freestanding" feature of the "%{crate}" crate.
%prep
%autosetup -n %{crate}-%{version} -p1
# Remove the bundled copy of libdeflate.
-rm -rv libdeflate
+rm --recursive --verbose libdeflate
# Make libdeflate detection with pkg-config unconditional.
-sed -r -i 's@^([[:blank:]]*)(#\[cfg\(feature *= *"dynamic"\)\])@\1// \2@' build.rs
+sed --regexp-extended --in-place \
+ 's@^([[:blank:]]*)(#\[cfg\(feature *= *"dynamic"\)\])@\1// \2@' build.rs
# Don’t require an exact version match. We would *like* the versions to stay
# aligned, but we don’t *need* to update libdeflate and
# rust-libdeflate-sys/rust-libdeflater concurrently.
-sed -r -i 's@^([[:blank:]]*)(\.exactly_version\()@\1// \2@' build.rs
+sed --regexp-extended --in-place \
+ 's@^([[:blank:]]*)(\.exactly_version\()@\1// \2@' build.rs
# The above two sed-patches effectively revert “Dynamic Linking Constraints”,
# https://github.com/adamkewley/libdeflater/pull/32. Using sed instead of a
# patch file keeps us from having to update the patch every time the version
diff --git a/rust2rpm.toml b/rust2rpm.toml
index dfb2a3d..3e53811 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -22,13 +22,15 @@ license-files.exclude = [
pre = [
'''
# Remove the bundled copy of libdeflate.
-rm -rv libdeflate
+rm --recursive --verbose libdeflate
# Make libdeflate detection with pkg-config unconditional.
-sed -r -i 's@^([[:blank:]]*)(#\[cfg\(feature *= *"dynamic"\)\])@\1// \2@' build.rs
+sed --regexp-extended --in-place \
+ 's@^([[:blank:]]*)(#\[cfg\(feature *= *"dynamic"\)\])@\1// \2@' build.rs
# Don’t require an exact version match. We would *like* the versions to stay
# aligned, but we don’t *need* to update libdeflate and
# rust-libdeflate-sys/rust-libdeflater concurrently.
-sed -r -i 's@^([[:blank:]]*)(\.exactly_version\()@\1// \2@' build.rs
+sed --regexp-extended --in-place \
+ 's@^([[:blank:]]*)(\.exactly_version\()@\1// \2@' build.rs
# The above two sed-patches effectively revert “Dynamic Linking Constraints”,
# https://github.com/adamkewley/libdeflater/pull/32. Using sed instead of a
# patch file keeps us from having to update the patch every time the version
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-23 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-23 10:56 [rpms/rust-libdeflate-sys] rawhide: Use long options Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox