]> git.pld-linux.org Git - packages/python3-ujson.git/blame - python3-ujson.spec
rebuild with python 3.10
[packages/python3-ujson.git] / python3-ujson.spec
CommitLineData
eaba2e1b
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
5Summary: Ultra fast JSON encoder and decoder for Python
6Summary(pl.UTF-8): Ultraszybki koder i dekoder formatu JSON dla Pythona
7Name: python3-ujson
8Version: 3.0.0
31c33af4 9Release: 4
eaba2e1b
JB
10License: BSD
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/ujson/
13Source0: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz
14# Source0-md5: 1c13a485776a2a0dfa1795d101bb3d57
15URL: https://pypi.org/project/ujson/
16BuildRequires: libstdc++-devel
17BuildRequires: python3-devel >= 1:3.5
18BuildRequires: python3-setuptools
19BuildRequires: python3-setuptools_scm
20%if %{with tests}
21BuildRequires: python3-pytest
22%endif
23BuildRequires: rpm-pythonprov
24BuildRequires: rpmbuild(macros) >= 1.714
5e378d29 25Requires: python3-modules >= 1:3.5
eaba2e1b
JB
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29UltraJSON is an ultra fast JSON encoder and decoder written in pure C
30with bindings for Python 3.5+.
31
32%description -l pl.UTF-8
33UltraJSON to ultraszybki koder i dekoder formatu JSON, napisany w
34czystym C z wiÄ…zaniami do Pythona 3.5+.
35
36%prep
37%setup -q -n ujson-%{version}
38
39%build
40%py3_build
41
42%if %{with tests}
43PYTHONPATH=$(readlink -f build-3/lib.*) \
44%{__python3} -m pytest tests
45%endif
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%py3_install
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc LICENSE.txt README.rst
58%attr(755,root,root) %{py3_sitedir}/ujson.cpython-*.so
59%{py3_sitedir}/ujson-%{version}-py*.egg-info
This page took 0.077394 seconds and 4 git commands to generate.