python-jsonschema/python-jsonschema.spec

76 lines
2.3 KiB
RPMSpec
Raw Normal View History

Name: python-jsonschema
Version: 3.2.0
Release: 3mamba
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: libpython3-devel
BuildRequires: python3.7dist(attrs)
BuildRequires: python3.7dist(importlib-metadata)
BuildRequires: python3.7dist(pyrsistent)
BuildRequires: python3.7dist(setuptools)
BuildRequires: python3.7dist(six)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-jsonschema <= 3.2.0-2mamba
%pyver_package
%endif
%prep
%setup -q -n jsonschema-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/jsonschema-%{version}-py*.egg-info
%{python_sitearch}/jsonschema-%{version}-py*.egg-info/*
%doc COPYING README.rst
%changelog
* 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