public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-maxminddb] f44: Update to version 0.32.0
@ 2026-11-27 13:05 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-11-27 13:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-maxminddb
Branch : f44
Commit : 37d0105983aed6bb518070c7ee56d4544531bc9c
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-11-27T13:49:17+01:00
Stats : +56/-34 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-maxminddb/c/37d0105983aed6bb518070c7ee56d4544531bc9c?branch=f44
Log:
Update to version 0.32.0
---
diff --git a/.gitignore b/.gitignore
index 1a1f450..c288207 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@
/maxminddb-0.26.0.crate
/maxminddb-0.28.1.crate
/test-data-40d0b4f.tar.gz
+/maxminddb-0.32.0.crate
+/test-data-b532ae5.tar.gz
diff --git a/maxminddb-fix-metadata.diff b/maxminddb-fix-metadata.diff
index a1f17d8..a81e27b 100644
--- a/maxminddb-fix-metadata.diff
+++ b/maxminddb-fix-metadata.diff
@@ -1,36 +1,42 @@
---- maxminddb-0.28.1/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ maxminddb-0.28.1/Cargo.toml 2026-05-08T21:28:57.997751+00:00
-@@ -56,22 +56,8 @@
+--- maxminddb-0.32.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ maxminddb-0.32.0/Cargo.toml 2026-11-27T12:46:56.117035+00:00
+@@ -56,28 +56,8 @@
name = "maxminddb"
path = "src/lib.rs"
-[[bench]]
--name = "common"
--path = "benches/common.rs"
--
--[[bench]]
-name = "lookup"
-path = "benches/lookup.rs"
-harness = false
-
-[[bench]]
+-name = "metadata"
+-path = "benches/metadata.rs"
+-harness = false
+-
+-[[bench]]
-name = "serde_usage"
-path = "benches/serde_usage.rs"
-harness = false
-
+-[[bench]]
+-name = "within"
+-path = "benches/within.rs"
+-harness = false
+-
[dependencies.ipnetwork]
-version = "0.21.1"
+version = ">=0.20,<0.22"
- [dependencies.log]
- version = "0.4"
-@@ -94,9 +80,6 @@
+ [dependencies.memchr]
+ version = "2.4"
+@@ -93,9 +73,6 @@
[dependencies.thiserror]
version = "2.0"
-[dev-dependencies.criterion]
-version = "0.8"
-
- [dev-dependencies.env_logger]
- version = "0.11"
+ [dev-dependencies.rayon]
+ version = "1.5"
diff --git a/rust-maxminddb.spec b/rust-maxminddb.spec
index acc36e5..1a0f770 100644
--- a/rust-maxminddb.spec
+++ b/rust-maxminddb.spec
@@ -2,20 +2,20 @@
%bcond check 1
%global debug_package %{nil}
-%global crate maxminddb
+%global testdata_commit b532ae5dbdbdb04a9588a631af0030e01cbcdcd0
+%global testdata_short %{sub %{testdata_commit} 1 7}
-%global testdata_commit 40d0b4ff0ffdad191e83bd8045b780dd052650e0
-%global testdata_short %(c=%{testdata_commit}; echo ${c:0:7})
+%global crate maxminddb
Name: rust-maxminddb
-Version: 0.28.1
+Version: 0.32.0
Release: %autorelease
Summary: Library for reading MaxMind DB format used by GeoIP2 and GeoLite2
License: ISC
URL: https://crates.io/crates/maxminddb
-Source0: %{crates_source}
-Source1: https://github.com/maxmind/MaxMind-DB/archive/%{testdata_commit}/test-data-%{testdata_short}.tar.gz
+Source: %{crates_source}
+Source2: https://github.com/maxmind/MaxMind-DB/archive/%{testdata_commit}/test-data-%{testdata_short}.tar.gz
# Manually created patch for downstream crate metadata changes
# * relax ipnetwork dependency to allow both v0.20 and v0.21
# * drop unused, benchmark-only criterion dev-dependency
@@ -79,18 +79,6 @@ use the "mmap" feature of the "%{crate}" crate.
%files -n %{name}+mmap-devel
%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+simdutf8-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+simdutf8-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "simdutf8" feature of the "%{crate}" crate.
-
-%files -n %{name}+simdutf8-devel
-%ghost %{crate_instdir}/Cargo.toml
-
%package -n %{name}+unsafe-str-decode-devel
Summary: %{summary}
BuildArch: noarch
@@ -104,8 +92,7 @@ use the "unsafe-str-decode" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version} -p1 -a1
-mv MaxMind-DB-%{testdata_commit} test-data
+%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
@@ -119,6 +106,9 @@ mv MaxMind-DB-%{testdata_commit} test-data
%if %{with check}
%check
+# unpack test data
+tar -xzvf %{S:2}
+mv MaxMind-DB-%{testdata_commit} test-data
%cargo_test
%endif
diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..09f3a9d
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,24 @@
+[package]
+cargo-toml-patch-comments = [
+ "relax ipnetwork dependency to allow both v0.20 and v0.21",
+ "drop unused, benchmark-only criterion dev-dependency",
+]
+preamble = """\
+%global testdata_commit b532ae5dbdbdb04a9588a631af0030e01cbcdcd0
+%global testdata_short %{sub %{testdata_commit} 1 7}
+"""
+
+[[package.extra-sources]]
+number = 2
+file = "https://github.com/maxmind/MaxMind-DB/archive/%{testdata_commit}/test-data-%{testdata_short}.tar.gz"
+
+[features]
+hide = ["fuzzing"]
+
+[scripts]
+check.pre = [
+ "# unpack test data",
+ "tar -xzvf %{S:2}",
+ "mv MaxMind-DB-%{testdata_commit} test-data",
+]
+
diff --git a/sources b/sources
index c261784..3c858a0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (maxminddb-0.28.1.crate) = 8906fd44651d340f24c1f9c5e350f969f8d7d532894036ef0671e38ac0c6eb3261eca03eee2bec25c0d420f73938a9dc39bea29c98a44f2f0ff0b70dfa54c8ff
-SHA512 (test-data-40d0b4f.tar.gz) = 57a3b8ee486e6f15117fa15d2075863c06a904f8f856e8e3faddb24a896742804dc653deddd4b41414e995c81afb56a3da44d39e6d22dab98e929a9af1135a00
+SHA512 (maxminddb-0.32.0.crate) = 50805c106f78b439992e36022ddc86538774cec6c2a7c2176ee3615fca412de00f5b6bc69031e73725005680f5ad76a3ff55f9638854de8da2a0f9e514babd7d
+SHA512 (test-data-b532ae5.tar.gz) = 777839f99e68c360279fa4bdc4012c8102d39534066a7d8542ba8b9016d27294de660db7ecca56ec040e0f75abb34e6b07c9addfa14271a4e5b869a658dfce15
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 13:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 13:05 [rpms/rust-maxminddb] f44: Update to version 0.32.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