forked from pool/python-orjson
Accepting request 1004332 from home:VortexAcherontic:bottles:Next
I'd like to submit this package on my own even though I did not packaged it myself. But I'll require this module to be in this repo and Factory in order to submit python-fvs from home:VortexAcherontic:bottles:Next to this repo and Factory too. To finally update bottles in games:tools to it's most recent release as libadwaita 1.2 is now stable. Which was a long time blocker for bottles to be updated in games:tools. If I should better ask the original maintainer to submit this package please let me know. All the best, V. OBS-URL: https://build.opensuse.org/request/show/1004332 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-orjson?expand=0&rev=1
This commit is contained in:
59
python-orjson.spec
Normal file
59
python-orjson.spec
Normal file
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# spec file for package python-orjson
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-orjson
|
||||
Version: 3.7.11
|
||||
Release: 0
|
||||
Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
|
||||
License: MIT
|
||||
URL: https://github.com/ijl/orjson
|
||||
Source: https://files.pythonhosted.org/packages/source/o/orjson/orjson-%{version}.tar.gz
|
||||
Source1: vendor.tar.xz
|
||||
Source2: cargo_config
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module maturin >= 0.12.19}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: cargo-packaging
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
orjson is a fast JSON library for Python.
|
||||
It benchmarks as the fastest Python library for JSON.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -a1 -n orjson-%{version}
|
||||
mkdir .cargo
|
||||
cp %{SOURCE2} .cargo/config
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user