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-pretty-git-prompt] epel10: Regenerate with rust2rpm v24 and refresh license string
Date: Thu, 17 Sep 2026 07:50:27 GMT [thread overview]
Message-ID: <178963142755.1.5603440642124643663.rpms-rust-pretty-git-prompt-aae2cb157669@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-pretty-git-prompt
Branch : epel10
Commit : aae2cb157669e6aba99ad90110be26aeb2ceacfa
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2023-05-10T19:07:50+02:00
Stats : +31/-17 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rust-pretty-git-prompt/c/aae2cb157669e6aba99ad90110be26aeb2ceacfa?branch=epel10
Log:
Regenerate with rust2rpm v24 and refresh license string
---
diff --git a/README.md b/README.md
deleted file mode 100644
index e474af1..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-pretty-git-prompt
-
-The rust-pretty-git-prompt package
\ No newline at end of file
diff --git a/pretty-git-prompt-fix-metadata.diff b/pretty-git-prompt-fix-metadata.diff
new file mode 100644
index 0000000..05913a2
--- /dev/null
+++ b/pretty-git-prompt-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- pretty-git-prompt-0.2.1/Cargo.toml 2020-04-06T08:36:01+00:00
++++ pretty-git-prompt-0.2.1/Cargo.toml 2023-05-10T17:03:42.201125+00:00
+@@ -17,7 +17,7 @@
+ description = "Your current git repository information inside a beautiful shell prompt."
+ homepage = "https://github.com/TomasTomecek/pretty-git-prompt"
+ documentation = "https://github.com/TomasTomecek/pretty-git-prompt/blob/master/README.md"
+-license-file = "LICENSE"
++license = "MIT"
+ repository = "https://github.com/TomasTomecek/pretty-git-prompt"
+
+ [[bin]]
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 78cd100..91f2529 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -1,22 +1,24 @@
-# Generated by rust2rpm 13
-%bcond_without check
-%global __cargo_skip_build 0
+# Generated by rust2rpm 24
+# * tests can only be run inside the upstream git repository:
+# https://github.com/tomastomecek/pretty-git-prompt/issues/35
+%bcond_with check
%global crate pretty-git-prompt
-Name: rust-%{crate}
+Name: rust-pretty-git-prompt
Version: 0.2.1
Release: %autorelease
Summary: Your current git repository information inside a beautiful shell prompt
-# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/pretty-git-prompt
Source: %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * set "license" instead of "license-file" in crate metadata;
+# "license-file" is intended to be used for non-standard licenses only
+Patch: pretty-git-prompt-fix-metadata.diff
-ExclusiveArch: %{rust_arches}
-
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 23
%global _description %{expand:
Your current git repository information inside a beautiful shell prompt.}
@@ -26,16 +28,19 @@ Your current git repository information inside a beautiful shell prompt.}
%package -n %{crate}
Summary: %{summary}
# MIT
-# MIT or ASL 2.0
-# MIT or ASL 2.0 or zlib
-License: MIT
+# MIT AND GPL-2.0-only WITH GCC-exception-2.0 AND BSD-3-Clause
+# MIT OR Apache-2.0
+# MIT OR Apache-2.0 OR Zlib
+# Zlib OR Apache-2.0 OR MIT
+License: MIT AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib)
+# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
+%license LICENSE.dependencies
%doc README.md
-%doc files
%{_bindir}/pretty-git-prompt
%prep
@@ -47,14 +52,15 @@ License: MIT
%build
%cargo_build
+%cargo_license_summary
+%{cargo_license} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
-# https://github.com/tomastomecek/pretty-git-prompt/issues/35
-%cargo_test || :
+%cargo_test
%endif
%changelog
reply other threads:[~2026-09-17 7:50 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=178963142755.1.5603440642124643663.rpms-rust-pretty-git-prompt-aae2cb157669@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