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/uv] f43: Use various long options
Date: Wed, 03 Jun 2026 18:36:33 GMT	[thread overview]
Message-ID: <178051179309.1.14919334205573216898.rpms-uv-ca4d748c96c1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/uv
Branch : f43
Commit : ca4d748c96c171a54118c25ffc3b0d37a2185137
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-24T09:49:22+01:00
Stats  : +24/-17 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/uv/c/ca4d748c96c171a54118c25ffc3b0d37a2185137?branch=f43

Log:
Use various long options

---
diff --git a/uv.spec b/uv.spec
index 5651589..22a774a 100644
--- a/uv.spec
+++ b/uv.spec
@@ -352,28 +352,32 @@ This package provides an importable Python module for uv.
 %autosetup -p1
 
 # Collect license files of vendored dependencies in the main source archive
-install -t LICENSE.bundled/packaging -D -p -m 0644 \
+install -D --preserve-timestamps --mode=0644 \
+    --target=LICENSE.bundled/packaging \
     crates/uv-python/python/packaging/LICENSE.*
-install -t LICENSE.bundled/pep440_rs -D -p -m 0644 crates/uv-pep440/License-*
-install -t LICENSE.bundled/pep508_rs -D -p -m 0644 crates/uv-pep508/License-*
-install -t LICENSE.bundled/pipreqs -D -p -m 0644 \
+install -D --preserve-timestamps --mode=0644 \
+    --target=LICENSE.bundled/pep440_rs crates/uv-pep440/License-*
+install -D --preserve-timestamps --mode=0644 \
+    --target=LICENSE.bundled/pep508_rs crates/uv-pep508/License-*
+install -D --preserve-timestamps --mode=0644 \
+    --target=LICENSE.bundled/pipreqs \
     crates/uv-build-frontend/src/pipreqs/LICENSE
-install -t LICENSE.bundled/ripunzip -D -p -m 0644 \
-    crates/uv-extract/src/vendor/LICENSE
+install -D --preserve-timestamps --mode=0644 \
+    --target=LICENSE.bundled/ripunzip crates/uv-extract/src/vendor/LICENSE
 # The original license text from rattler_installs_packages is present in a
 # comment, but we want it in a separate file so we can ensure it is present in
 # the binary RPM.
-install -d LICENSE.bundled/rattler_installs_packages
+install --directory LICENSE.bundled/rattler_installs_packages
 awk '$2 == "BSD" { out=1 }; $2 == "```" { out=0 }; out' \
     crates/uv-client/src/remote_metadata.rs |
-  sed -r 's@^///( |$)@@' |
+  sed --regexp-extended 's@^///( |$)@@' |
   tee LICENSE.bundled/rattler_installs_packages/LICENSE
 # Similarly for virtualenv. All files in
 # crates/uv-virtualenv/src/activator/activate/ have the same license text.
-install -d LICENSE.bundled/virtualenv
+install --directory LICENSE.bundled/virtualenv
 awk '$1 == "#" { out=1 }; $1 != "#" { out=0; exit }; out' \
     crates/uv-virtualenv/src/activator/activate |
-  sed -r 's@^#( |$)@@' |
+  sed --regexp-extended 's@^#( |$)@@' |
   tee LICENSE.bundled/virtualenv/LICENSE
 
 # Patch out foreign (e.g. Windows-only) dependencies. Follow symbolic links so
@@ -387,20 +391,20 @@ find -L . -type f -name Cargo.toml -print \
 # the uv-trampoline-builder crate. We must remove them to prove they are not
 # used in the build. Since they are used only on Windows, nothing is lost by
 # doing so.
-rm -v crates/uv-trampoline-builder/trampolines/*.exe
+rm --verbose crates/uv-trampoline-builder/trampolines/*.exe
 # Per Cargo.toml, uv-trampoline is excluded from the workspace and not compiled
 # because it still requires a nightly compiler. For now, we remove it entirely
 # to show that we do not need to document bundling from posy. Note that we
 # *cannot* cleanly remove uv-trampoline-builder, only the precompiled
 # trampolines themselves.
-rm -rv crates/uv-trampoline
+rm --recursive --verbose crates/uv-trampoline
 
 # Remove the dependency on embed-manifest, which applies only when (cross-?)
 # compiling for Windows.
 tomcli set Cargo.toml del workspace.dependencies.embed-manifest
 # We may have to do something more sophisticated if this build script ever
 # starts to do anything other than just embedding a manifest on Windows.
-rm -v crates/uv/build.rs
+rm --verbose crates/uv/build.rs
 tomcli set crates/uv/Cargo.toml del build-dependencies.embed-manifest
 # The embed-manifest depenency is also used in uv-trampoline, which we removed.
 
@@ -468,7 +472,8 @@ mods="${mods-}${mods+|}venv"
 mods="${mods-}${mods+|}version"
 mods="${mods-}${mods+|}workspace"
 comment='Downstream-only: skip, needs specific Python interpreter versions'
-sed -r -i "s@mod (${mods});@// ${comment}\n#[cfg(any())]\n&@" \
+sed --regexp-extended --in-place \
+    "s@mod (${mods});@// ${comment}\n#[cfg(any())]\n&@" \
     crates/uv/tests/it/main.rs
 %endif
 
@@ -526,9 +531,10 @@ then
   # library is actually pure-Python, and the python3-uv subpackage can be
   # noarch. We can’t tell maturin to install to the appropriate site-packages
   # directory, but we can fix the installation path manually.
-  install -d %{buildroot}%{python3_sitelib}
+  install --directory %{buildroot}%{python3_sitelib}
   mv %{buildroot}%{python3_sitearch}/uv* %{buildroot}%{python3_sitelib}
-  sed -r -i 's@%{python3_sitearch}@%{python3_sitelib}@' %{pyproject_files}
+  sed --regexp-extended --in-place \
+      's@%{python3_sitearch}@%{python3_sitelib}@' %{pyproject_files}
 fi
 
 # generate and install shell completions
@@ -544,7 +550,8 @@ do
 done
 
 # Install a default system-wide configuration file
-install -t '%{buildroot}%{_sysconfdir}/uv' -p -m 0644 -D '%{SOURCE1}'
+install -D --preserve-timestamps --mode=0644 \
+    --target='%{buildroot}%{_sysconfdir}/uv' '%{SOURCE1}'
 
 
 %check

                 reply	other threads:[~2026-06-03 18:36 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=178051179309.1.14919334205573216898.rpms-uv-ca4d748c96c1@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