|
 |
c414c2d |
%global pypi_name jsonref
|
|
 |
c414c2d |
|
|
 |
c414c2d |
Name: python-%{pypi_name}
|
|
 |
c414c2d |
Version: 0.2
|
|
 |
a73be42 |
Release: 8%{?dist}
|
|
 |
c414c2d |
Summary: An implementation of JSON Reference for Python
|
|
 |
c414c2d |
|
|
 |
c414c2d |
License: MIT
|
|
 |
c414c2d |
URL: https://github.com/gazpachoking/jsonref
|
|
 |
c414c2d |
Source0: %{pypi_source}
|
|
 |
c414c2d |
BuildArch: noarch
|
|
 |
c414c2d |
|
|
 |
c414c2d |
BuildRequires: python3-devel
|
|
 |
c414c2d |
BuildRequires: python3dist(setuptools)
|
|
 |
c414c2d |
BuildRequires: python3-pytest
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%description
|
|
 |
c414c2d |
jsonref is a library for automatic dereferencing of JSON Reference objects
|
|
 |
c414c2d |
for Python (supporting Python 2.6+ and Python 3.3+).
|
|
 |
c414c2d |
|
|
 |
c414c2d |
This library lets you use a data structure with JSON reference objects, as if
|
|
 |
c414c2d |
the references had been replaced with the referent data.
|
|
 |
c414c2d |
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%package -n python3-%{pypi_name}
|
|
 |
c414c2d |
Summary: %{summary}
|
|
 |
c414c2d |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%description -n python3-%{pypi_name}
|
|
 |
c414c2d |
jsonref is a library for automatic dereferencing of JSON Reference objects
|
|
 |
c414c2d |
for Python (supporting Python 2.6+ and Python 3.3+).
|
|
 |
c414c2d |
|
|
 |
c414c2d |
This library lets you use a data structure with JSON reference objects, as if
|
|
 |
c414c2d |
the references had been replaced with the referent data.
|
|
 |
c414c2d |
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%prep
|
|
 |
c414c2d |
%autosetup -n %{pypi_name}-%{version}
|
|
 |
c414c2d |
# Remove bundled egg-info
|
|
 |
c414c2d |
rm -rf %{pypi_name}.egg-info
|
|
 |
c414c2d |
# DOS line ending
|
|
 |
c414c2d |
sed -i -e 's/\r$//' README.rst
|
|
 |
c414c2d |
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%build
|
|
 |
c414c2d |
%py3_build
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%install
|
|
 |
c414c2d |
%py3_install
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%check
|
|
 |
c414c2d |
%{__python3} -m pytest tests.py
|
|
 |
c414c2d |
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%files -n python3-%{pypi_name}
|
|
 |
c414c2d |
%license LICENSE
|
|
 |
c414c2d |
%doc README.rst
|
|
 |
c414c2d |
%{python3_sitelib}/__pycache__/*
|
|
 |
c414c2d |
%{python3_sitelib}/%{pypi_name}.py
|
|
 |
c414c2d |
%{python3_sitelib}/proxytypes.py
|
|
 |
c414c2d |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
 |
c414c2d |
|
|
 |
c414c2d |
|
|
 |
c414c2d |
%changelog
|
|
 |
a73be42 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-8
|
|
 |
a73be42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
a73be42 |
|
|
 |
998013d |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2-7
|
|
 |
998013d |
- Rebuilt for Python 3.11
|
|
 |
998013d |
|
|
 |
347dc42 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-6
|
|
 |
347dc42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
347dc42 |
|
|
 |
71dcc13 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-5
|
|
 |
71dcc13 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
71dcc13 |
|
|
 |
8f08a72 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2-4
|
|
 |
8f08a72 |
- Rebuilt for Python 3.10
|
|
 |
8f08a72 |
|
|
 |
b1beae5 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3
|
|
 |
b1beae5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
b1beae5 |
|
|
 |
c1e7fb9 |
* Mon Nov 23 2020 Nils Philippsen <nils@redhat.com> - 0.2-2
|
|
 |
c1e7fb9 |
- Don't be obsoleted by fedora-obsolete-packages (on F33, #1900537).
|
|
 |
c1e7fb9 |
|
|
 |
c414c2d |
* Tue Sep 08 2020 Aurelien Bompard <abompard@fedoraproject.org> - 0.2-1
|
|
 |
c414c2d |
- Initial package.
|