2024-01-06 11:20:52 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 11:20:50 +01:00
|
|
|
Name: python-jsonschema
|
2024-01-06 11:20:52 +01:00
|
|
|
Version: 4.17.3
|
|
|
|
Release: 3mamba
|
2024-01-06 11:20:50 +01:00
|
|
|
Summary: jsonschema is an implementation of JSON Schema for Python
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 11:20:51 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://pypi.org/project/jsonschema/
|
2024-01-06 11:20:50 +01:00
|
|
|
Source: https://pypi.debian.net/jsonschema/jsonschema-%{version}.tar.gz
|
2024-01-06 11:20:50 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:20:52 +01:00
|
|
|
BuildRequires: (python3.7dist(pyrsistent) < 0.17 or python3.7dist(pyrsistent) > 0.17)
|
|
|
|
BuildRequires: (python3.7dist(pyrsistent) < 0.17.1 or python3.7dist(pyrsistent) > 0.17.1)
|
|
|
|
BuildRequires: (python3.7dist(pyrsistent) < 0.17.2 or python3.7dist(pyrsistent) > 0.17.2)
|
2024-01-06 11:20:51 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 11:20:51 +01:00
|
|
|
BuildRequires: python3.7dist(attrs)
|
|
|
|
BuildRequires: python3.7dist(importlib-metadata)
|
2024-01-06 11:20:52 +01:00
|
|
|
BuildRequires: python3.7dist(importlib-resources)
|
|
|
|
BuildRequires: python3.7dist(pkgutil-resolve-name)
|
2024-01-06 11:20:51 +01:00
|
|
|
BuildRequires: python3.7dist(pyrsistent)
|
2024-01-06 11:20:52 +01:00
|
|
|
BuildRequires: python3.7dist(typing-extensions)
|
2024-01-06 11:20:50 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
2024-01-06 11:20:51 +01:00
|
|
|
%if 0%{?with_pyver}
|
2024-01-06 11:20:51 +01:00
|
|
|
%if "%{?with_pyver}" == "3"
|
2024-01-06 11:20:51 +01:00
|
|
|
%define py_requires_append \
|
2024-01-06 11:20:51 +01:00
|
|
|
Provides: python-jsonschema \
|
2024-01-06 11:20:52 +01:00
|
|
|
Obsoletes: python-jsonschema < 4.17.3
|
2024-01-06 11:20:51 +01:00
|
|
|
%endif
|
2024-01-06 11:20:51 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:20:50 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n jsonschema-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 11:20:52 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 11:20:50 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 11:20:52 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 11:20:50 +01:00
|
|
|
|
2024-01-06 11:20:52 +01:00
|
|
|
%if "%{?with_pyver}" != "3"
|
|
|
|
# Rename any conflicting file outside of python site packages tree
|
|
|
|
for f in %{_bindir}/jsonschema; do
|
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
|
|
|
%endif
|
2024-01-06 11:20:50 +01:00
|
|
|
|
2024-01-06 11:20:52 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 11:20:50 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:20:52 +01:00
|
|
|
%{_bindir}/jsonschema*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
|
|
|
%doc COPYING
|
|
|
|
#README.rst
|
2024-01-06 11:20:50 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:20:52 +01:00
|
|
|
* Fri Apr 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.3-3mamba
|
2024-01-06 11:20:51 +01:00
|
|
|
- rebuilt with python 3.10
|
|
|
|
|
2024-01-06 11:20:52 +01:00
|
|
|
* Wed Mar 08 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.3-2mamba
|
|
|
|
- fix obsoleted max version of python-jsonschema
|
|
|
|
|
|
|
|
* Tue Mar 07 2023 Automatic Build System <autodist@mambasoft.it> 4.17.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:20:51 +01:00
|
|
|
* Mon Aug 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.0-3mamba
|
|
|
|
- rebuilt with distdeps
|
|
|
|
|
2024-01-06 11:20:51 +01:00
|
|
|
* Sat Apr 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.0-2mamba
|
|
|
|
- rebuilt with python3
|
|
|
|
|
2024-01-06 11:20:51 +01:00
|
|
|
* Tue Nov 26 2019 Automatic Build System <autodist@mambasoft.it> 3.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:20:50 +01:00
|
|
|
* Wed Nov 20 2019 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:20:50 +01:00
|
|
|
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.2-1mamba
|
|
|
|
- update to 3.0.2
|
|
|
|
|
2024-01-06 11:20:50 +01:00
|
|
|
* Tue May 01 2018 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:20:50 +01:00
|
|
|
* Sat Sep 26 2015 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:20:50 +01:00
|
|
|
* Fri Sep 25 2015 Davide Madrisan <davide.madrisan@gmail.com> 2.4.0-1mamba
|
|
|
|
- package created by autospec
|