diff --git a/cargo-vendor-cache b/cargo-vendor-cache new file mode 100644 index 0000000000000000000000000000000000000000..e7e285f7ecaabcd4938d5e9088072ea09895c406 Binary files /dev/null and b/cargo-vendor-cache differ diff --git a/python-orjson.spec b/python-orjson.spec index 798013de98c61967769c95a15dec5aea105de81c..9c0c136ce80be4f9b1ed43d831095fc930563c90 100644 --- a/python-orjson.spec +++ b/python-orjson.spec @@ -7,12 +7,14 @@ datetimes, and numpy} Name: python-%{pypi_name} Version: 3.10.11 -Release: 1 +Release: 2 Summary: Fast, correct Python JSON library License: MIT URL: https://github.com/ijl/orjson Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Source1: cargo-vendor-cache +BuildRequires: rust-packaging BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-wheel @@ -43,6 +45,16 @@ Summary: Fast, correct Python JSON library %prep %autosetup -n %{pypi_name}-%{version} +tar xzvf %{SOURCE1} -C . +mkdir .cargo +cat >> .cargo/config.toml << EOF +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" +EOF + %build %pyproject_build @@ -60,6 +72,9 @@ Summary: Fast, correct Python JSON library %license LICENSE-MIT %changelog +* Wed Jun 11 2025 Dongxing Wang - 3.10.11-2 +- Fix build error for cargo no network + * Wed Nov 20 2024 Dongxing Wang - 3.10.11-1 - Update package with version 3.10.11 Improve performance of UUIDs.