92 строки
2.6 KiB
Plaintext
92 строки
2.6 KiB
Plaintext
%define jsonpointer_min_ver 1.9
|
|
Summary: Applying JSON Patches in Python
|
|
Name: python-jsonpatch
|
|
Version: 1.32
|
|
Release: 1%{?dist}
|
|
License: BSD
|
|
Vendor: Microsoft Corporation
|
|
Distribution: Mariner
|
|
Group: Development/Languages/Python
|
|
URL: https://pypi.python.org/pypi/jsonpatch
|
|
Source0: https://github.com/stefankoegl/python-json-patch/archive/refs/tags/v%{version}.tar.gz#/python-json-patch-%{version}.tar.gz
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-jsonpointer >= %{jsonpointer_min_ver}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Library to apply JSON Patches according to RFC 6902.
|
|
|
|
%package -n python3-jsonpatch
|
|
Summary: Applying JSON Patches in Python
|
|
Requires: python3
|
|
Requires: python3-jsonpointer >= %{jsonpointer_min_ver}
|
|
|
|
%description -n python3-jsonpatch
|
|
Library to apply JSON Patches according to RFC 6902.
|
|
|
|
%prep
|
|
%autosetup -n python-json-patch-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
ln -s jsondiff %{buildroot}%{_bindir}/jsondiff3
|
|
ln -s jsonpatch %{buildroot}%{_bindir}/jsonpatch3
|
|
|
|
%check
|
|
%python3 ext_tests.py && %python3 tests.py
|
|
|
|
%files -n python3-jsonpatch
|
|
%defattr(-,root,root)
|
|
%license COPYING
|
|
%{python3_sitelib}/*
|
|
%{_bindir}/jsondiff
|
|
%{_bindir}/jsondiff3
|
|
%{_bindir}/jsonpatch
|
|
%{_bindir}/jsonpatch3
|
|
|
|
%changelog
|
|
* Thu Feb 10 2022 Thomas Crain <thcrain@microsoft.com> - 1.32-1
|
|
- Upgrade to latest upstream version
|
|
- Use github source tarball
|
|
|
|
* Wed Oct 20 2021 Thomas Crain <thcrain@microsoft.com> - 1.23-5
|
|
- Add license to python3 package
|
|
- Remove python2 package
|
|
- Lint spec
|
|
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 1.23-4
|
|
- Added %%license line automatically
|
|
|
|
* Tue Apr 21 2020 Eric Li <eli@microsoft.com> - 1.23-3
|
|
- Fix Source0:, Add #Source0:, and delete sha1. License Verified.
|
|
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 1.23-2
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
|
|
|
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> - 1.23-1
|
|
- Update to version 1.23
|
|
|
|
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> - 1.15-4
|
|
- Separate python3 and python2 specific scripts in bin directory
|
|
|
|
* Thu Apr 27 2017 Sarah Choi <sarahc@vmware.com> - 1.15-3
|
|
- Rename jsonpatch for python3
|
|
|
|
* Thu Apr 06 2017 Sarah Choi <sarahc@vmware.com> - 1.15-2
|
|
- support python3
|
|
|
|
* Mon Apr 03 2017 Sarah Choi <sarahc@vmware.com> - 1.15-1
|
|
- Update to 1.15
|
|
|
|
* Tue Oct 04 2016 ChangLee <changlee@vmware.com> - 1.9-3
|
|
- Modified %check
|
|
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 1.9-2
|
|
- GA - Bump release of all rpms
|
|
|
|
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
|
|
- Initial packaging for Photon
|