diff --git a/anda/python/orjson/python3-orjson.spec b/anda/python/orjson/python3-orjson.spec index 49c448c945..388a921bf0 100644 --- a/anda/python/orjson/python3-orjson.spec +++ b/anda/python/orjson/python3-orjson.spec @@ -1,12 +1,13 @@ +%global debug_package %{nil} + Name: python3-orjson Version: 3.8.4 -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 +BuildRequires: python3-installer python3.11 python3-pip maturin cargo Requires: libc %description @@ -21,12 +22,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 - 3.8.4-1