public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-tame-index] epel10.3: Update to version 0.14.0
@ 2026-09-21 15:11 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-09-21 15:11 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-tame-index
Branch : epel10.3
Commit : ff854a42b2c553764454ab503b005331233fbdf9
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2024-12-02T19:14:45+01:00
Stats  : +94/-127 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-tame-index/c/ff854a42b2c553764454ab503b005331233fbdf9?branch=epel10.3

Log:
Update to version 0.14.0

---
diff --git a/.gitignore b/.gitignore
index 0ee8085..54cf060 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /tame-index-0.7.2.crate
 /tame-index-0.10.0.crate
 /tame-index-0.12.0.crate
+/tame-index-0.14.0.crate

diff --git a/gix-compatibility.patch b/gix-compatibility.patch
deleted file mode 100644
index 5fccab2..0000000
--- a/gix-compatibility.patch
+++ /dev/null
@@ -1,85 +0,0 @@
---- tame-index-0.12.0/src/index/git_remote.rs
-+++ tame-index-0.12.0/src/index/git_remote.rs
-@@ -352,12 +352,12 @@ impl RemoteGitIndex {
-
-         let mut config = self.repo.config_snapshot_mut();
-         config
--            .set_raw_value("committer", None, "name", "tame-index")
-+            .set_raw_value(&"committer.name", "tame-index")
-             .map_err(GitError::from)?;
-         // Note we _have_ to set the email as well, but luckily gix does not actually
-         // validate if it's a proper email or not :)
-         config
--            .set_raw_value("committer", None, "email", "")
-+            .set_raw_value(&"committer.email", "")
-             .map_err(GitError::from)?;
-
-         let repo = config
---- tame-index-0.12.0/tests/git.rs
-+++ tame-index-0.12.0/tests/git.rs
-@@ -147,7 +147,7 @@ impl TreeUpdateBuilder {
- ///
- /// 1. Using the crates.io git registry. It's massive and slow.
- /// 2. Using some other external git registry, could fail for any number of
--/// network etc related issues
-+///     network etc related issues
- /// 3. Needing to maintain a blessed remote of any kind
- struct FakeRemote {
-     repo: gix::Repository,
-@@ -166,7 +166,7 @@ impl FakeRemote {
-         // Create an empty initial commit so we always have _something_
-         let parent = {
-             let empty_tree_id = repo
--                .write_object(&gix::objs::Tree::empty())
-+                .write_object(gix::objs::Tree::empty())
-                 .unwrap()
-                 .detach();
-
-@@ -193,22 +193,20 @@ impl FakeRemote {
-     fn snapshot(repo: &mut gix::Repository) -> gix::config::CommitAutoRollback<'_> {
-         let mut config = repo.config_snapshot_mut();
-         config
--            .set_raw_value("author", None, "name", "Integration Test")
-+            .set_raw_value(&"author.name", "Integration Test")
-             .unwrap();
-         config
--            .set_raw_value("committer", None, "name", "Integration Test")
-+            .set_raw_value(&"committer.name", "Integration Test")
-             .unwrap();
-         config
--            .set_raw_value("author", None, "email", "tests@integration.se")
-+            .set_raw_value(&"author.email", "tests@integration.se")
-             .unwrap();
-         config
--            .set_raw_value("committer", None, "email", "tests@integration.se")
-+            .set_raw_value(&"committer.email", "tests@integration.se")
-             .unwrap();
-
-         // Disable GPG signing, it breaks testing if the user has it enabled
--        config
--            .set_raw_value("commit", None, "gpgsign", "false")
--            .unwrap();
-+        config.set_raw_value(&"commit.gpgsign", "false").unwrap();
-
-         config.commit_auto_rollback().unwrap()
-     }
-@@ -483,7 +481,7 @@ fn non_main_local_branch() {
-         let commit = {
-             let snap = FakeRemote::snapshot(&mut repo);
-             let empty_tree_id = snap
--                .write_object(&gix::objs::Tree::empty())
-+                .write_object(gix::objs::Tree::empty())
-                 .unwrap()
-                 .detach();
-
---- tame-index-0.12.0/tests/git.rs
-+++ tame-index-0.12.0/tests/git.rs
-@@ -507,7 +507,7 @@ fn non_main_local_branch() {
-                         message: "".into(),
-                     },
-                     expected: tx::PreviousValue::Any,
--                    new: gix::refs::Target::Peeled(commit),
-+                    new: gix::refs::Target::Object(commit),
-                 },
-                 name: "refs/heads/master".try_into().unwrap(),
-                 deref: false,

diff --git a/rust-tame-index.spec b/rust-tame-index.spec
index feca1f9..de92552 100644
--- a/rust-tame-index.spec
+++ b/rust-tame-index.spec
@@ -1,11 +1,11 @@
-# Generated by rust2rpm 26
-%bcond_without check
+# Generated by rust2rpm 27
+%bcond check 1
 %global debug_package %{nil}
 
 %global crate tame-index
 
 Name:           rust-tame-index
-Version:        0.12.0
+Version:        0.14.0
 Release:        %autorelease
 Summary:        Access to local and remote cargo registry indices
 
@@ -13,11 +13,8 @@ License:        Apache-2.0 OR MIT
 URL:            https://crates.io/crates/tame-index
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
-# * Bump gix to version 0.66
 # * remove unused benchmark-only tiny-bench dev-dependency
 Patch:          tame-index-fix-metadata.diff
-# See https://github.com/EmbarkStudios/tame-index/commit/033b9d1e4187b9b967068adef283a40c86727ce6
-Patch:          gix-compatibility.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -56,6 +53,30 @@ use the "default" feature of the "%{crate}" crate.
 %files       -n %{name}+default-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+__git-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+__git-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "__git" feature of the "%{crate}" crate.
+
+%files       -n %{name}+__git-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+__internal_all-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+__internal_all-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "__internal_all" feature of the "%{crate}" crate.
+
+%files       -n %{name}+__internal_all-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+git-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -68,6 +89,42 @@ use the "git" feature of the "%{crate}" crate.
 %files       -n %{name}+git-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+gix-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+gix-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "gix" feature of the "%{crate}" crate.
+
+%files       -n %{name}+gix-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+gix-curl-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+gix-curl-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "gix-curl" feature of the "%{crate}" crate.
+
+%files       -n %{name}+gix-curl-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+gix-reqwest-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+gix-reqwest-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "gix-reqwest" feature of the "%{crate}" crate.
+
+%files       -n %{name}+gix-reqwest-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+local-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -121,19 +178,36 @@ use the "sparse" feature of the "%{crate}" crate.
 %cargo_prep
 
 %generate_buildrequires
-%cargo_generate_buildrequires -a
+%cargo_generate_buildrequires
 
 %build
-%cargo_build -a
+%cargo_build
 
 %install
-%cargo_install -a
+%cargo_install
 
 %if %{with check}
 %check
 # * skip tests that require a cargo cache directory
 # * skip tests that require internet connectivity
-%cargo_test -a -- -- --exact --skip serializes_current_cargo_cache --skip parses_current_cargo_cache --skip can_take_shared_lock --skip wait_lock_times_out --skip waits_lock --skip clones_new --skip fetch_invalidates_cache --skip non_main_local_branch --skip opens_existing --skip updates_cache --skip builds_local_registry --skip downloads_and_verifies --skip remote::end_to_end --skip remote::reuses_connection --skip remote::async_reuses_connection
+%{cargo_test -- -- --exact %{shrink:
+    --skip krate_name::test::rejects_reserved
+    --skip serializes_current_cargo_cache
+    --skip parses_current_cargo_cache
+    --skip can_take_shared_lock
+    --skip wait_lock_times_out
+    --skip waits_lock
+    --skip clones_new
+    --skip fetch_invalidates_cache
+    --skip non_main_local_branch
+    --skip opens_existing
+    --skip updates_cache
+    --skip builds_local_registry
+    --skip downloads_and_verifies
+    --skip remote::end_to_end
+    --skip remote::reuses_connection
+    --skip remote::async_reuses_connection
+}}
 %endif
 
 %changelog

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 8fc4baf..9abe9f3 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -3,11 +3,9 @@ cargo-toml-patch-comments = [
     "remove unused benchmark-only tiny-bench dev-dependency",
 ]
 
-[features]
-enable-all = true
-
 [tests]
 skip = [
+    "krate_name::test::rejects_reserved",
     # cache
     "serializes_current_cargo_cache",
     "parses_current_cargo_cache",

diff --git a/sources b/sources
index 818d009..d943382 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tame-index-0.12.0.crate) = dfeb21eb32692897c84c8317cc9e6adf42c7e2d7c9cb04e402c3aa5fbcf564953a4abd8787fb7d2ee7dae0f66ec1bd1168fd022ad70347f273e84d7965f04e82
+SHA512 (tame-index-0.14.0.crate) = 953bf7312e720c8f9178aa94324625de6ff379b1617d5841144304041b52b5e1efbea9140b00d965bac49e834111a79c0201836352381b5e74544b9dcf65aedf

diff --git a/tame-index-fix-metadata.diff b/tame-index-fix-metadata.diff
index de09259..6f608a3 100644
--- a/tame-index-fix-metadata.diff
+++ b/tame-index-fix-metadata.diff
@@ -1,33 +1,12 @@
---- tame-index-0.12.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ tame-index-0.12.0/Cargo.toml	2024-09-12T18:15:02.968224+00:00
-@@ -31,11 +31,6 @@
- [profile.dev.package.sha2]
- opt-level = 3
- 
--[[bench]]
--name = "sparse"
--harness = false
--required-features = ["sparse"]
--
- [dependencies.bytes]
- version = "1.4"
- optional = true
-@@ -48,7 +43,7 @@
- optional = true
- 
- [dependencies.gix]
--version = "0.63"
-+version = "0.66"
- features = ["blocking-http-transport-reqwest"]
- optional = true
- default-features = false
-@@ -128,9 +123,6 @@
+--- tame-index-0.14.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ tame-index-0.14.0/Cargo.toml	2024-12-02T17:57:11.450597+00:00
+@@ -162,9 +162,6 @@
  [dev-dependencies.tempfile]
- version = "3.6"
+ version = "3.12"
  
 -[dev-dependencies.tiny-bench]
--version = "0.3"
+-version = "0.4"
 -
  [features]
- default = ["reqwest?/rustls-tls-webpki-roots"]
- git = [
+ __git = []
+ __internal_all = [

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-21 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 15:11 [rpms/rust-tame-index] epel10.3: Update to version 0.14.0 Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox