SHA256
1
0
forked from pool/python-roman

3 Commits

Author SHA256 Message Date
57d6c6e4ca Convert to libalternatives, bsc#1245883 2025-11-03 15:04:27 +01:00
cac2f762d1 Accepting request 1276020 from devel:languages:python:numeric
- 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.

OBS-URL: https://build.opensuse.org/request/show/1276020
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-roman?expand=0&rev=14
2025-05-09 16:50:35 +00:00
e87ce641ca - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-roman?expand=0&rev=13
2025-05-09 05:36:54 +00:00
4 changed files with 48 additions and 13 deletions

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Aug 25 12:11:48 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Fri May 9 05:17:15 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-roman
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,33 @@
%define packagename roman
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?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
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -41,14 +54,17 @@ 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}
%pre
%python_libalternatives_reset_alternative %{packagename}
%post
%python_install_alternative %{packagename}
@@ -59,9 +75,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

Binary file not shown.

BIN
roman-5.0.tar.gz LFS Normal file

Binary file not shown.