Merge branch 'main' into w/update

This commit is contained in:
windowsboy111
2023-01-21 12:33:58 +08:00
55 changed files with 762 additions and 173 deletions
+19 -7
View File
@@ -1,13 +1,15 @@
%global debug_package %{nil}
Name: python3-orjson
Version: 3.8.5
Release: %autorelease
Release: 2%{?dist}
Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
License: MIT or APACHE-2.0
URL: https://github.com/ijl/orjson
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildArch: noarch
BuildRequires: maturin cargo python3.11 python3-pip
Requires: libc
BuildRequires: python3-installer python3.11 python3-pip maturin cargo
%{?python_provide:%python_provide python3-orjson}
Provides: python3.11dist(orjson) = %{version}
%description
orjson is a fast, correct JSON library for Python. It benchmarks as the fastest Python library
@@ -21,12 +23,22 @@ serializes dataclass, datetime, numpy, and UUID instances natively.
maturin build --release --strip
%install
pip install .
sed 's@^\s+"repository":.+?^@@' setup.py > setup.py
python3.11 -m installer --destdir="%{buildroot}" target/wheels/*.whl
rm -rf %{python3_sitelib}/orjson/__pycache__
%files
%doc README.md
%license LICENSE-APACHE
%license LICENSE-MIT
%license /usr/lib64/python*/site-packages/orjson-%{version}.dist-info/license_files/LICENSE-MIT
%license /usr/lib64/python*/site-packages/orjson-%{version}.dist-info/license_files/LICENSE-APACHE
/usr/lib64/python*/site-packages/orjson-%{version}.dist-info/METADATA
/usr/lib64/python*/site-packages/orjson-%{version}.dist-info/RECORD
/usr/lib64/python*/site-packages/orjson-%{version}.dist-info/WHEEL
/usr/lib64/python*/site-packages/orjson/__init__.py
/usr/lib64/python*/site-packages/orjson/__init__.pyi
/usr/lib64/python*/site-packages/orjson/__pycache__/__init__.cpython-*.pyc
/usr/lib64/python*/site-packages/orjson/orjson.cpython-*-linux-gnu.so
/usr/lib64/python*/site-packages/orjson/py.typed
%changelog
* Sun Jan 08 2023 windowsboy111 <wboy111@outlook.com> - 3.8.4-1