From f36bd80115f2e674de0cab8621216370e148cd95 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 29 Jan 2024 15:55:37 -0700 Subject: [PATCH] Version 5.0.1 - Convert License tag to SPDX - Modernize the spec file --- .gitignore | 1 + python-zope-exceptions.spec | 52 +++++++++++++++++-------------------- sources | 2 +- 3 files changed, 26 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index 4ebaaa7..1839e51 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /zope.exceptions-4.0.6.zip /zope.exceptions-4.0.7.tar.gz /zope.exceptions-4.0.8.tar.gz +/zope.exceptions-5.0.1.tar.gz diff --git a/python-zope-exceptions.spec b/python-zope-exceptions.spec index 9932706..27d6562 100644 --- a/python-zope-exceptions.spec +++ b/python-zope-exceptions.spec @@ -2,12 +2,13 @@ Summary: Zope Exceptions Name: python-zope-exceptions -Version: 4.0.8 -Release: 29%{?dist} -Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz -License: ZPLv2.1 +Version: 5.0.1 +Release: 1%{?dist} +VCS: https://github.com/zopefoundation/zope.exceptions +Source0: %{VCS}/archive/%{version}/%{modname}-%{version}.tar.gz +License: ZPL-2.1 BuildArch: noarch -URL: http://pypi.python.org/pypi/zope.exceptions +URL: https://zopeexceptions.readthedocs.io/ %description This package contains exception interfaces and implementations which are so @@ -15,44 +16,39 @@ general purpose that they don't belong in Zope application-specific packages. %package -n python3-zope-exceptions Summary: Zope Exceptions -%{?python_provide:%python_provide python3-zope-exceptions} - BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-zope-interface - -Requires: python3-zope-interface %description -n python3-zope-exceptions This package contains exception interfaces and implementations which are so general purpose that they don't belong in Zope application-specific packages. %prep -%setup -q -n %{modname}-%{version} +%autosetup -n %{modname}-%{version} -rm -rf %{modname}.egg-info +%generate_buildrequires +%pyproject_buildrequires -t %build -%{py3_build} +%pyproject_wheel %install -%{py3_install} - -# As of python-zope-exceptions-4.0.6, the tests require -# python-zope-testrunner which has not yet been packaged. -#%%check -#%%{__python3} setup.py test - -%files -n python3-zope-exceptions -%doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt -%{python3_sitelib}/zope/exceptions/ -# Co-own %%{python3_sitelib}/zope/ -%dir %{python3_sitelib}/zope/ -%exclude %{python3_sitelib}/zope/exceptions/tests/ -%{python3_sitelib}/%{modname}-*.egg-info +%pyproject_install +%pyproject_save_files zope + +%check +%tox + +%files -n python3-zope-exceptions -f %{pyproject_files} +%doc CHANGES.rst README.rst +%license COPYRIGHT.txt LICENSE.txt %{python3_sitelib}/%{modname}-*-nspkg.pth %changelog +* Mon Jan 29 2024 Jerry James - 5.0.1-1 +- Version 5.0.1 +- Convert License tag to SPDX +- Modernize the spec file + * Fri Jan 26 2024 Fedora Release Engineering - 4.0.8-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index ddbb661..12c695a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c6f9b3905a48ba0487f82d95fba71c0c zope.exceptions-4.0.8.tar.gz +SHA512 (zope.exceptions-5.0.1.tar.gz) = 1b599b4e4cd3d3e3a9a1dd793d912d2ab860be4167f16cdbef092319fd46105401db8b16e04aacb18299da5d795fcbad488ce644f184b3336e8ffcf7f2306bc4