python-jsonpointer/python-jsonpointer.spec

83 lines
2.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:06 -04:00
%global pypi_name jsonpointer
Name: python-%{pypi_name}
2023-07-12 14:58:20 +08:00
Version: 2.4
2021-11-23 17:03:09 +08:00
Release: 1
2019-09-30 11:15:06 -04:00
Summary: Resolve JSON Pointers in Python
License: BSD
URL: https://github.com/stefankoegl/python-json-pointer
Source0: https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
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.
%package -n python3-%{pypi_name}
Summary: Resolve JSON Pointers in Python
BuildRequires: python3-devel python3-setuptools
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
python-json-pointer is a Python library for resolving JSON pointers (RFC 6901).
%package_help
%prep
%autosetup -n %{pypi_name}-%{version}
%build
LC_ALL=en_US.UTF-8 %py3_build
%install
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
%check
%{__python3} tests.py
%files -n python3-%{pypi_name}
%{_bindir}/jsonpointer
%{_bindir}/jsonpointer-3*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/*.egg-info
%files help
%doc README.md
%changelog
2023-07-12 14:58:20 +08:00
* Wed Jul 12 2023 sunhui <sunhui@kylinos.cn> - 2.4-1
- Update package to version 2.4
2023-01-31 00:21:29 -05:00
* Tue Jan 31 2023 huangduirong <huangduirong@huawei.com> - 2.3-1
- Upgrade package to 2.3
2022-06-16 06:23:35 +00:00
* Tue Nov 23 2021 liudabo <liudabo1@huawei.com> - 2.2-1
2021-11-23 17:03:09 +08:00
- upgrade version to 2.2
2022-06-16 06:23:35 +00:00
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 2.0-2
2020-10-29 11:36:52 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete python2
2022-06-16 06:23:35 +00:00
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 2.0-1
2020-07-23 19:20:04 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:NA
2019-11-06 19:49:14 +08:00
* Fri Oct 11 2019 yefei <yefei25@huawei.com> - 1.10-15
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:move author from doc to license
2019-09-30 11:15:06 -04:00
* Sun Sep 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10-14
- Package init