Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5fb2b41264
!16 update package to version 2.4
From: @S--Sh 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-07-12 08:38:41 +00:00
sunhui
d6464be16b python-jsonpointer 2023-07-12 14:58:20 +08:00
openeuler-ci-bot
e1159d5b84
!15 更新jsonpointer版本到2.3版本
From: @huangduirong 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2023-01-31 06:21:06 +00:00
huangduirong
66e28b3b71 update jsonpointer to 2.3 2023-01-31 00:21:29 -05:00
openeuler-ci-bot
79d9f61703
!9 【轻量级 PR】:fix bad date in %changelog
From: @leeffo 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
2022-12-20 08:43:16 +00:00
loong-C
50ef82bbb6
fix bad date in %changelog 2022-06-16 06:23:35 +00:00
openeuler-ci-bot
a33568d524 !6 upgrade version to 2.2
Merge pull request !6 from SandMan/master
2021-12-25 03:03:44 +00:00
Anonymous_Z
7463569536 upgrade version to 2.2 2021-11-23 17:03:09 +08:00
openeuler-ci-bot
1705521de7 !5 delete python2.
From: @weiwei_150212
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2020-11-03 10:45:34 +08:00
s17723959267
4bce6bff9a delete python2 2020-11-03 10:00:33 +08:00
3 changed files with 17 additions and 49 deletions

Binary file not shown.

BIN
jsonpointer-2.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,9 +1,7 @@
%global pypi_name jsonpointer
%bcond_without python3
%bcond_without python2
Name: python-%{pypi_name}
Version: 2.0
Version: 2.4
Release: 1
Summary: Resolve JSON Pointers in Python
License: BSD
@ -14,18 +12,7 @@ BuildArch: noarch
%description
python-json-pointer is a Python library for resolving JSON pointers (RFC 6901). Python 2.7, 3.4+ and PyPy are supported.
%if %{with python2}
%package -n python2-%{pypi_name}
Summary: Resolve JSON Pointers in Python
BuildRequires: python2-devel python2-setuptools
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
python-json-pointer is a Python library for resolving JSON pointers (RFC 6901).
%endif
%if %{with python3}
%package -n python3-%{pypi_name}
Summary: Resolve JSON Pointers in Python
BuildRequires: python3-devel python3-setuptools
@ -34,7 +21,6 @@ BuildRequires: python3-devel python3-setuptools
%description -n python3-%{pypi_name}
python-json-pointer is a Python library for resolving JSON pointers (RFC 6901).
%endif
%package_help
@ -42,63 +28,45 @@ python-json-pointer is a Python library for resolving JSON pointers (RFC 6901).
%autosetup -n %{pypi_name}-%{version}
%build
%if %{with python2}
%py2_build
%endif
%if %{with python3}
LC_ALL=en_US.UTF-8 %py3_build
%endif
%install
%if %{with python2}
%py2_install
mv %{buildroot}%{_bindir}/jsonpointer %{buildroot}%{_bindir}/jsonpointer-%{python2_version}
ln -s ./jsonpointer-%{python2_version} %{buildroot}%{_bindir}/jsonpointer-2
%if %{without python3}
ln -s ./jsonpointer-%{python2_version} %{buildroot}%{_bindir}/jsonpointer
%endif
%endif
%if %{with python3}
LC_ALL=en_US.UTF-8 %py3_install
mv %{buildroot}%{_bindir}/jsonpointer %{buildroot}%{_bindir}/jsonpointer-%{python3_version}
ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer-3
ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer
%endif
%check
%if %{with python3}
%{__python3} tests.py
%endif
%if %{with python2}
%{__python2} tests.py
%endif
%if %{with python2}
%files -n python2-%{pypi_name}
%if %{without python3}
%{_bindir}/jsonpointer
%endif
%{_bindir}/jsonpointer-2*
%{python2_sitelib}/%{pypi_name}.py*
%{python2_sitelib}/*.egg-info
%endif
%if %{with python3}
%files -n python3-%{pypi_name}
%{_bindir}/jsonpointer
%{_bindir}/jsonpointer-3*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/*.egg-info
%endif
%files help
%doc README.md
%changelog
* Thu Jul 23 dingyue <dingyue5@huawei.com> - 2.0-1
* Wed Jul 12 2023 sunhui <sunhui@kylinos.cn> - 2.4-1
- Update package to version 2.4
* Tue Jan 31 2023 huangduirong <huangduirong@huawei.com> - 2.3-1
- Upgrade package to 2.3
* Tue Nov 23 2021 liudabo <liudabo1@huawei.com> - 2.2-1
- upgrade version to 2.2
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 2.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete python2
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 2.0-1
- Type:enhancement
- ID:NA
- SUG:NA