python-jsonschema/python-jsonschema.spec

97 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-jsonschema
Version: 4.17.3
Release: 4mamba
Summary: jsonschema is an implementation of JSON Schema for Python
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/jsonschema/
Source: https://pypi.debian.net/jsonschema/jsonschema-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: (python3.11dist(pyrsistent) < 0.17 or python3.11dist(pyrsistent) > 0.17)
BuildRequires: (python3.11dist(pyrsistent) < 0.17.1 or python3.11dist(pyrsistent) > 0.17.1)
BuildRequires: (python3.11dist(pyrsistent) < 0.17.2 or python3.11dist(pyrsistent) > 0.17.2)
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(attrs)
BuildRequires: python3.11dist(pyrsistent)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
%{summary}.
%if 0%{?with_pyver}
%if "%{?with_pyver}" == "3"
%define py_requires_append \
Provides: python-jsonschema \
Obsoletes: python-jsonschema < 4.17.3
%endif
%pyver_package
%endif
%prep
%setup -q -n jsonschema-%{version}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
%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
%files %{?pyappend}
%defattr(-,root,root)
%{_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
%changelog
* Fri Sep 29 2023 Automatic Build System <autodist@mambasoft.it> 4.17.3-4mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Fri Apr 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.17.3-3mamba
- rebuilt with python 3.10
* 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
* Mon Aug 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.0-3mamba
- rebuilt with distdeps
* Sat Apr 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.0-2mamba
- rebuilt with python3
* Tue Nov 26 2019 Automatic Build System <autodist@mambasoft.it> 3.2.0-1mamba
- automatic version update by autodist
* Wed Nov 20 2019 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
- automatic version update by autodist
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.2-1mamba
- update to 3.0.2
* Tue May 01 2018 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
- automatic version update by autodist
* Sat Sep 26 2015 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
- automatic version update by autodist
* Fri Sep 25 2015 Davide Madrisan <davide.madrisan@gmail.com> 2.4.0-1mamba
- package created by autospec