c727ea33 |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
f4d17450 |
Name: python-jsonpointer |
f3e039cb |
Version: 1.10 |
a848bcf8 |
Release: 6%{?dist} |
f4d17450 |
Summary: Applying JSON Patches in Python
License: Modified BSD License
Group: Development/Languages/Python
Url: https://pypi.python.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
Source0: jsonpointer-%{version}.tar.gz |
f3e039cb |
%define sha1 jsonpointer=74db9372f71d8af9cd380e34fe1a0e274e6cd7cc |
f4d17450 |
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python-setuptools
Requires: python2
Requires: python2-libs
BuildArch: noarch
%description
Library to apply JSON Patches according to RFC 6902.
|
c727ea33 |
%package -n python3-jsonpointer
Summary: python-jsonpointer
BuildRequires: python3-devel
BuildRequires: python3-libs |
a848bcf8 |
BuildRequires: python3-setuptools
BuildRequires: python3-xml |
c727ea33 |
Requires: python3
Requires: python3-libs
%description -n python3-jsonpointer
|
f4d17450 |
%prep
%setup -n jsonpointer-%{version} |
c727ea33 |
rm -rf ../p3dir
cp -a . ../p3dir |
f4d17450 |
%build |
c727ea33 |
python2 setup.py build
pushd ../p3dir
python3 setup.py build
popd |
f4d17450 |
|
d5255775 |
%check |
c727ea33 |
python2 tests.py
pushd ../p3dir
python3 tests.py
popd |
d5255775 |
|
f4d17450 |
%install |
c727ea33 |
pushd ../p3dir
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
290361d9 |
mv %{buildroot}/%{_bindir}/jsonpointer %{buildroot}/%{_bindir}/jsonpointer3 |
c727ea33 |
popd |
290361d9 |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
f4d17450 |
%files
%defattr(-,root,root,-) |
c727ea33 |
%{python2_sitelib}/*
%{_bindir}/jsonpointer
%files -n python3-jsonpointer
%defattr(-,root,root,-)
%{python3_sitelib}/* |
290361d9 |
%{_bindir}/jsonpointer3 |
f4d17450 |
%changelog |
a848bcf8 |
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10-6
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
* Wed Apr 26 2017 Sarah Choi <sarahc@vmware.com> 1.10-5
- Rename jsonpointer for python3
* Thu Apr 06 2017 Sarah Choi <sarahc@vmware.com> 1.10-4
- support python3
* Tue Oct 04 2016 ChangLee <changlee@vmware.com> 1.10-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10-2
- GA - Bump release of all rpms
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.10-1
- Updated to version 1.10
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
- Initial packaging for Photon |