mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-04 10:52:18 +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
|
||||
|
||||
@@ -36,9 +36,6 @@ rm -rf %{pypi_name}.egg-info
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
|
||||
@@ -7,7 +7,7 @@ Release: 1%{?dist}
|
||||
Summary: Protocol Buffers
|
||||
|
||||
License: New BSD License
|
||||
URL: http://code.google.com/p/protobuf/
|
||||
URL: https://developers.google.com/protocol-buffers/
|
||||
Source0: %{pypi_source}
|
||||
BuildArch: noarch
|
||||
|
||||
@@ -32,8 +32,8 @@ sed "s@\t@ @g" google/protobuf/internal/cpp_message.py > google/protobuf/inte
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
#%check
|
||||
#%{__python3} setup.py test
|
||||
%dnl %check
|
||||
%dnl %{__python3} setup.py test
|
||||
|
||||
%files
|
||||
%doc README.txt
|
||||
|
||||
Reference in New Issue
Block a user