diff --git a/jsonmodels-2.5.1.tar.gz b/jsonmodels-2.5.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..14f6eb31690e4d609f95982c1b7a58c4c9b4d628 Binary files /dev/null and b/jsonmodels-2.5.1.tar.gz differ diff --git a/python-jsonmodels-2.4.tar.gz b/python-jsonmodels-2.4.tar.gz deleted file mode 100644 index 792a3ea9e13c5e3e02c03013b4cfc1c5bda6a4b1..0000000000000000000000000000000000000000 Binary files a/python-jsonmodels-2.4.tar.gz and /dev/null differ diff --git a/python-jsonmodels.spec b/python-jsonmodels.spec index 9f5472ef2783d8e18f52cb2bd580a39a8b45dc32..7dc41ba9ecf48bf870f1d65d37c0183ce4a9828d 100644 --- a/python-jsonmodels.spec +++ b/python-jsonmodels.spec @@ -1,73 +1,77 @@ -%global pypi_name jsonmodels -%global use_tests 1 -%global is_install_py3 1 - -Name: python-jsonmodels -Version: 2.4 -Release: 2 -Source0: https://github.com/beregond/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -License: BSD-3-Clause -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 +%global _empty_manifest_terminate_build 0 +Name: python-jsonmodels +Version: 2.5.1 +Release: 1 +Summary: Create Python structures that are converted to, or read from JSON +License: BSD-3-Clause +URL: https://github.com/jazzband/jsonmodels +Source0: https://files.pythonhosted.org/packages/a9/db/4659e5eac76e7b1465a0acec89371e4408787e42ebcbf90d25e017f73c0d/jsonmodels-2.5.1.tar.gz +BuildArch: noarch %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 +%package -n python3-jsonmodels +Summary: Models to make easier to deal with structures that are converted to, or read from JSON. +Provides: python-jsonmodels +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-jsonmodels +Models to make it easier to deal with structures that are converted to, or +read from JSON. -%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 +%package help +Summary: Development documents and examples for jsonmodels +Provides: python3-jsonmodels-doc +%description help +Models to make it easier to deal with structures that are converted to, or +read from JSON. %prep -%setup -q -n %{pypi_name}-%{version} +%autosetup -n jsonmodels-2.5.1 %build -%if 0%{is_install_py3} %py3_build -%endif %install -%if 0%{is_install_py3} %py3_install -%endif +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . -%if %{use_tests} -%check -%if 0%{?py3_build:1} -PYTHONPATH=$(pwd) %{__python3} setup.py test -%endif -%endif +%files -n python3-jsonmodels -f filelist.lst +%dir %{python3_sitelib}/* -%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 +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Aug 01 2022 liqiuyu - 2.5.1-1 +- Update to 2.5.1 + * Tue May 10 2022 xigaoxinyan - 2.4-2 - License compliance rectification