The package rpms/rust-pretty-git-prompt.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-pretty-git-prompt.git/commit....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 294b59b85a347f41be893b6b9196e1c18eac6541
Author: Josh Stone <jistone(a)redhat.com>
Date: Tue Apr 2 16:52:39 2019 -0700
Bump git2 to 0.8
diff --git a/pretty-git-prompt-0.2.0-fix-metadata.diff
b/pretty-git-prompt-0.2.0-fix-metadata.diff
index cddc955..10f2f2e 100644
--- a/pretty-git-prompt-0.2.0-fix-metadata.diff
+++ b/pretty-git-prompt-0.2.0-fix-metadata.diff
@@ -5,7 +5,7 @@
[dependencies.git2]
-version = "0.6"
-+version = "0.7"
++version = "0.8"
features = []
default-features = false
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 69673ee..ca3d583 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,16 +5,16 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
URL:
https://crates.io/crates/pretty-git-prompt
Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
# Initial patched metadata
-# * Bump git2 to 0.7,
https://github.com/TomasTomecek/pretty-git-prompt/pull/39
+# * Bump git2 to 0.8,
https://github.com/TomasTomecek/pretty-git-prompt/pull/43
Patch0: pretty-git-prompt-0.2.0-fix-metadata.diff
-# Make it work with new git2
+# Make it work with new git2,
https://github.com/TomasTomecek/pretty-git-prompt/pull/39
Patch1: 0001-deps-update-git2-to-0.7.patch
ExclusiveArch: %{rust_arches}
@@ -22,7 +22,7 @@ ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(clap) >= 2.19.0 with crate(clap) < 3.0.0)
-BuildRequires: (crate(git2) >= 0.7.0 with crate(git2) < 0.8.0)
+BuildRequires: (crate(git2) >= 0.8.0 with crate(git2) < 0.9.0)
BuildRequires: (crate(yaml-rust) >= 0.3.4 with crate(yaml-rust) < 0.4.0)
%description
@@ -57,6 +57,9 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Tue Apr 02 2019 Josh Stone <jistone(a)redhat.com> - 0.2.0-8
+- Bump git2 to 0.8
+
* Sat Feb 02 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-7
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
commit 5fa0baf076a6ae9ea964739915c43b9924944fde
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Feb 2 14:10:35 2019 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 9c8354e..69673ee 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
@@ -57,6 +57,9 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Sat Feb 02 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-7
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
* Fri Aug 10 2018 Josh Stone <jistone(a)redhat.com> - 0.2.0-6
- Rebuild with fixed rust-libgit2-sys-0.7.7
commit 22fd484f42341b067b1dc3df438684a17017c5d4
Author: Josh Stone <jistone(a)redhat.com>
Date: Fri Aug 10 12:36:30 2018 -0700
Rebuild with fixed rust-libgit2-sys-0.7.7
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 484ea6d..9c8354e 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
@@ -57,6 +57,9 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Fri Aug 10 2018 Josh Stone <jistone(a)redhat.com> - 0.2.0-6
+- Rebuild with fixed rust-libgit2-sys-0.7.7
+
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.0-5
- Rebuild for libgit2 0.27.x
commit 82bfd64e41362795b73c3315c14effda000c281c
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Fri Aug 10 10:22:52 2018 +0200
Rebuild for libgit2 0.27.x
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 5496f65..484ea6d 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
@@ -57,6 +57,9 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.0-5
+- Rebuild for libgit2 0.27.x
+
* Sat Jul 14 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
commit 977f0b41961d935ee587cb67a8c2b1d0b79ade32
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jul 14 05:22:53 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 7b76430..5496f65 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
@@ -57,6 +57,9 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Sat Jul 14 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
* Mon Mar 12 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.0-3
- Bump git2 to 0.7
commit 1aefb7a65c088e3113ef3f7ce72ee6b097ef8e66
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Mon Mar 12 11:52:20 2018 +0100
Bump git2 to 0.7
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/0001-deps-update-git2-to-0.7.patch b/0001-deps-update-git2-to-0.7.patch
new file mode 100644
index 0000000..a798c66
--- /dev/null
+++ b/0001-deps-update-git2-to-0.7.patch
@@ -0,0 +1,46 @@
+From 37471bc537989dd89af4d96df0aaaf49208c8203 Mon Sep 17 00:00:00 2001
+From: Igor Gnatenko <ignatenko(a)redhat.com>
+Date: Mon, 12 Mar 2018 11:49:56 +0100
+Subject: [PATCH] deps: update git2 to 0.7
+
+Signed-off-by: Igor Gnatenko <ignatenko(a)redhat.com>
+---
+ src/backend.rs | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/backend.rs b/src/backend.rs
+index bf8f6b0..4975fe0 100644
+--- a/src/backend.rs
++++ b/src/backend.rs
+@@ -352,8 +352,8 @@ impl Backend {
+ }
+ let mut d = HashMap::new();
+
+- let changed = STATUS_WT_MODIFIED | STATUS_WT_DELETED | STATUS_WT_TYPECHANGE |
STATUS_WT_RENAMED;
+- let staged = STATUS_INDEX_MODIFIED | STATUS_INDEX_DELETED |
STATUS_INDEX_TYPECHANGE | STATUS_INDEX_RENAMED | STATUS_INDEX_NEW;
++ let changed = Status::WT_MODIFIED | Status::WT_DELETED | Status::WT_TYPECHANGE |
Status::WT_RENAMED;
++ let staged = Status::INDEX_MODIFIED | Status::INDEX_DELETED |
Status::INDEX_TYPECHANGE | Status::INDEX_RENAMED | Status::INDEX_NEW;
+
+ let statuses = match self.get_status() {
+ Some(x) => x,
+@@ -368,7 +368,7 @@ impl Backend {
+ let counter = d.entry(CHANGED_KEY.to_string()).or_insert(0);
+ *counter += 1;
+ };
+- if file_status.contains(STATUS_WT_NEW) {
++ if file_status.contains(Status::WT_NEW) {
+ let counter = d.entry(NEW_KEY.to_string()).or_insert(0);
+ *counter += 1;
+ };
+@@ -376,7 +376,7 @@ impl Backend {
+ let counter = d.entry(STAGED_KEY.to_string()).or_insert(0);
+ *counter += 1;
+ };
+- if file_status.intersects(STATUS_CONFLICTED) {
++ if file_status.intersects(Status::CONFLICTED) {
+ let counter = d.entry(CONFLICTS_KEY.to_string()).or_insert(0);
+ *counter += 1;
+ };
+--
+2.16.2
+
diff --git a/pretty-git-prompt-0.2.0-fix-metadata.diff
b/pretty-git-prompt-0.2.0-fix-metadata.diff
new file mode 100644
index 0000000..cddc955
--- /dev/null
+++ b/pretty-git-prompt-0.2.0-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- pretty-git-prompt-0.2.0/Cargo.toml 1970-01-01T01:00:00+01:00
++++ pretty-git-prompt-0.2.0/Cargo.toml 2018-03-12T11:51:22.897029+01:00
+@@ -30,7 +30,7 @@
+ default-features = false
+
+ [dependencies.git2]
+-version = "0.6"
++version = "0.7"
+ features = []
+ default-features = false
+
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index 27301d6..7b76430 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,19 +5,24 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
URL:
https://crates.io/crates/pretty-git-prompt
Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
+# Initial patched metadata
+# * Bump git2 to 0.7,
https://github.com/TomasTomecek/pretty-git-prompt/pull/39
+Patch0: pretty-git-prompt-0.2.0-fix-metadata.diff
+# Make it work with new git2
+Patch1: 0001-deps-update-git2-to-0.7.patch
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(clap) >= 2.19.0 with crate(clap) < 3.0.0)
-BuildRequires: (crate(git2) >= 0.6.0 with crate(git2) < 0.7.0)
+BuildRequires: (crate(git2) >= 0.7.0 with crate(git2) < 0.8.0)
BuildRequires: (crate(yaml-rust) >= 0.3.4 with crate(yaml-rust) < 0.4.0)
%description
@@ -52,6 +57,9 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Mon Mar 12 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.0-3
+- Bump git2 to 0.7
+
* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 428d634d205a0f670d32b1f68fb17ed02ccb451f
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Feb 9 15:40:37 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
index e6870f1..27301d6 100644
--- a/rust-pretty-git-prompt.spec
+++ b/rust-pretty-git-prompt.spec
@@ -5,7 +5,7 @@
Name: rust-%{crate}
Version: 0.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
@@ -52,5 +52,8 @@ Summary: %{summary}
%{_bindir}/pretty-git-prompt
%changelog
+* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Sun Jan 28 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.0-1
- Initial package
commit 1782cb8c6e2ed5099fbfd8bb8e6bfedd0e84e5f2
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sun Jan 28 21:39:56 2018 +0100
initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..814c088
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/pretty-git-prompt-0.2.0.crate
diff --git a/rust-pretty-git-prompt.spec b/rust-pretty-git-prompt.spec
new file mode 100644
index 0000000..e6870f1
--- /dev/null
+++ b/rust-pretty-git-prompt.spec
@@ -0,0 +1,56 @@
+# Generated by rust2rpm
+%bcond_without check
+
+%global crate pretty-git-prompt
+
+Name: rust-%{crate}
+Version: 0.2.0
+Release: 1%{?dist}
+Summary: Your current git repository information inside a beautiful shell prompt
+
+License: MIT
+URL:
https://crates.io/crates/pretty-git-prompt
+Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+# [dependencies]
+BuildRequires: (crate(clap) >= 2.19.0 with crate(clap) < 3.0.0)
+BuildRequires: (crate(git2) >= 0.6.0 with crate(git2) < 0.7.0)
+BuildRequires: (crate(yaml-rust) >= 0.3.4 with crate(yaml-rust) < 0.4.0)
+
+%description
+%{summary}.
+
+%package -n %{crate}
+Summary: %{summary}
+
+%description -n %{crate}
+%{summary}.
+
+%prep
+%autosetup -n %{crate}-%{version} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+#
https://github.com/tomastomecek/pretty-git-prompt/issues/35
+%cargo_test || :
+%endif
+
+%files -n %{crate}
+%license LICENSE
+%doc README.md
+%doc files
+%{_bindir}/pretty-git-prompt
+
+%changelog
+* Sun Jan 28 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..ada5b5f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (pretty-git-prompt-0.2.0.crate) =
210c07407440e1efe33e54b5134e6b07e9d54d2dfbc72fba56d52506195e2979728d4bacea697c3796deff8a4482f0eba5c8ee738af3a42810647ebef310c805