From 65c044f660d1066563234988265568a90bf8ed3d883e32b66a762452f7f72b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 27 Jun 2025 15:54:55 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-roman revision d1a82fba9597880e7b306457ba142491 --- python-roman.changes | 13 +++++++++++++ python-roman.spec | 24 ++++++++++++++---------- roman-3.3.tar.gz | 3 --- roman-5.0.tar.gz | 3 +++ 4 files changed, 30 insertions(+), 13 deletions(-) delete mode 100644 roman-3.3.tar.gz create mode 100644 roman-5.0.tar.gz diff --git a/python-roman.changes b/python-roman.changes index 57f585f..b16473a 100644 --- a/python-roman.changes +++ b/python-roman.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri May 9 05:17:15 UTC 2025 - Steve Kowalik + +- Update to 5.0: + * Drop support for Python 3.7, 3.8. + * Add support for lower case roman numerals. + * Remove overlooked mentions of the Python 2.1.1 license + * Add support for Python 3.12 and 3.13. + * Change license to the Zope Public License (ZPL) version 2.1 + * Add support for Python 3.10, 3.11. + * Drop support for Python 2.7, 3.5, 3.6. +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Apr 21 12:33:24 UTC 2023 - Dirk Müller diff --git a/python-roman.spec b/python-roman.spec index 0584160..d332403 100644 --- a/python-roman.spec +++ b/python-roman.spec @@ -1,7 +1,7 @@ # # spec file for package python-roman # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,22 @@ %define packagename roman -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-roman -Version: 3.3 +Version: 5.0 Release: 0 Summary: Integer to Roman numerals converter -License: Python-2.0 -Group: Development/Languages/Python +License: ZPL-2.1 URL: https://github.com/zopefoundation/roman Source: https://files.pythonhosted.org/packages/source/r/roman/%{packagename}-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -41,10 +44,10 @@ This module converts from and to Roman numerals. It can convert numbers from %setup -q -n %{packagename}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/%{packagename} %python_expand %fdupes %{buildroot}%{$python_sitelib} %prepare_alternative %{packagename} @@ -59,9 +62,10 @@ This module converts from and to Roman numerals. It can convert numbers from %pyunittest discover -v src %files %{python_files} -%doc CHANGES.txt -%pycache_only %{python_sitelib}/__pycache__/%{packagename}* -%{python_sitelib}/*egg-info/ +%doc README.rst CHANGES.rst +%license LICENSE.txt +%pycache_only %{python_sitelib}/__pycache__/%{packagename}*pyc +%{python_sitelib}/%{packagename}-%{version}.dist-info %{python_sitelib}/%{packagename}.py %python_alternative %{_bindir}/roman diff --git a/roman-3.3.tar.gz b/roman-3.3.tar.gz deleted file mode 100644 index 56ed970..0000000 --- a/roman-3.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2c46ac8db827d34e4fa9ccc0577e7f0b0d84f16ffe112351bd4f1ec2eb12d73f -size 7577 diff --git a/roman-5.0.tar.gz b/roman-5.0.tar.gz new file mode 100644 index 0000000..c165d5c --- /dev/null +++ b/roman-5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb35293c1c4046105fd899194f4f2985f78c955a8b05937f7ab93f3be1660697 +size 7664