diff --git a/python-jsonmodels-2.4.tar.gz b/python-jsonmodels-2.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..792a3ea9e13c5e3e02c03013b4cfc1c5bda6a4b1 Binary files /dev/null and b/python-jsonmodels-2.4.tar.gz differ diff --git a/python-jsonmodels.spec b/python-jsonmodels.spec new file mode 100644 index 0000000000000000000000000000000000000000..4422d27f82f5989c0e6b8c78379b6a1d7cfd063b --- /dev/null +++ b/python-jsonmodels.spec @@ -0,0 +1,72 @@ +%global pypi_name jsonmodels +%global use_tests 1 +%global is_install_py3 1 + +Name: python-jsonmodels +Version: 2.4 +Release: 1 +Source0: https://github.com/beregond/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +License: BSD +Summary: Create Python structures that are converted to, or read from JSON +BuildArch: noarch +Url: https://github.com/beregond/jsonmodels + +%if %{is_install_py3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-invoke +%endif + +%description +Models to make it easier to deal with structures that are converted to, or +read from JSON. + +%if %{is_install_py3} +%package -n python3-%{pypi_name} +Summary: %summary + +BuildRequires: python3-dateutil +BuildRequires: python3-pytest +%if %{use_tests} +BuildRequires: python3-pytest-cov +%endif +BuildRequires: python3-six +Requires: python3-dateutil +Requires: python3-six + +%description -n python3-%{pypi_name} +Python 3 models to make it easier to deal with structures that are +converted to, or read from JSON. +%endif + +%prep +%setup -q -n %{pypi_name}-%{version} + +%build +%if 0%{is_install_py3} +%py3_build +%endif + +%install +%if 0%{is_install_py3} +%py3_install +%endif + +%if %{use_tests} +%check +%if 0%{?py3_build:1} +PYTHONPATH=$(pwd) %{__python3} setup.py test +%endif +%endif + +%if %{is_install_py3} +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{pypi_name}/ +%endif + +%changelog +* Fri Jun 25 2021 sunligang - 2.4-1 +- Init package