diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8fde97a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/jsonref-0.2.tar.gz diff --git a/python-jsonref.spec b/python-jsonref.spec new file mode 100644 index 0000000..23ea191 --- /dev/null +++ b/python-jsonref.spec @@ -0,0 +1,66 @@ +%global pypi_name jsonref + +Name: python-%{pypi_name} +Version: 0.2 +Release: 1%{?dist} +Summary: An implementation of JSON Reference for Python + +License: MIT +URL: https://github.com/gazpachoking/jsonref +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3-pytest + +%description +jsonref is a library for automatic dereferencing of JSON Reference objects +for Python (supporting Python 2.6+ and Python 3.3+). + +This library lets you use a data structure with JSON reference objects, as if +the references had been replaced with the referent data. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +jsonref is a library for automatic dereferencing of JSON Reference objects +for Python (supporting Python 2.6+ and Python 3.3+). + +This library lets you use a data structure with JSON reference objects, as if +the references had been replaced with the referent data. + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +# DOS line ending +sed -i -e 's/\r$//' README.rst + + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} -m pytest tests.py + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/proxytypes.py +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Tue Sep 08 2020 Aurelien Bompard - 0.2-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..8db0b4b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jsonref-0.2.tar.gz) = 415eaefcaf2c7a02bf70749522fef0d96f1e0cc5772edd50ca016a564258df21dd3eb178b7a33ee61e606125fb802a29b0cb8855a81c6116baf6393208927b0f