public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-pretty-git-prompt] epel10: Regenerate with rust2rpm v24 and refresh license string
@ 2026-09-17 7:50 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-09-17 7:50 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-17 7:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 7:50 [rpms/rust-pretty-git-prompt] epel10: Regenerate with rust2rpm v24 and refresh license string Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox