mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Merge branch 'main' into w/update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user