Sync from SUSE:ALP:Source:Standard:1.0 python-roman revision dc92fb1dab8a98657db340178b69fa8f

This commit is contained in:
Adrian Schröter 2023-06-06 15:18:14 +02:00
commit 491fa35081
4 changed files with 166 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

68
python-roman.changes Normal file
View File

@ -0,0 +1,68 @@
-------------------------------------------------------------------
Fri Apr 21 12:33:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Tue Dec 22 08:53:53 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Fix using %pyunittest macro
-------------------------------------------------------------------
Sun Dec 20 14:28:03 UTC 2020 - andy great <andythe_great@pm.me>
- Update to version 3.3.
* added support for Python 3.9
* added CLI command ``roman`` with ``-r/--reverse`` to convert back from Roman
* added simple usage instructions
- Clean up spec file a bit.
-------------------------------------------------------------------
Wed Apr 17 07:44:28 UTC 2019 - pgajdos@suse.com
- version update to 3.2
- expanded test coverage
- Added support for 0 -> N
(see https://en.wikipedia.org/wiki/Roman_numerals#Zero)
- Added support for Python 3.8
-------------------------------------------------------------------
Sat Dec 22 05:20:48 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Update to 3.1
* Added support for Python 3.7.
-------------------------------------------------------------------
Fri Jun 1 19:13:58 UTC 2018 - petr@cervinka.net
- Update to version 3.0
+ Added support for Python 3.5, 3.6 and PyPy3.
+ Dropped support for Python 2.6 and 3.3.
- Convert package to single spec
- Remove workaround to build on SLES (suse_version <= 1110)
-------------------------------------------------------------------
Sun Nov 24 16:09:42 UTC 2013 - p.drouand@gmail.com
- Update to version 2.0
+ Added Python 3.3 and PyPy support.
+ Added tests.
- Add CHANGES.txt to package documentation
- Remove redundant %clean section
-------------------------------------------------------------------
Wed Jan 2 19:44:41 UTC 2013 - toddrme2178@gmail.com
- Fix building on SLES
-------------------------------------------------------------------
Tue Jun 26 12:54:58 UTC 2012 - toddrme2178@gmail.com
- Fix building on SLE 11
- Spec file cleanup
-------------------------------------------------------------------
Wed Jun 6 11:56:06 UTC 2012 - idonmez@suse.com
- Initial release

72
python-roman.spec Normal file
View File

@ -0,0 +1,72 @@
#
# spec file for package python-roman
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define packagename roman
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-roman
Version: 3.3
Release: 0
Summary: Integer to Roman numerals converter
License: Python-2.0
Group: Development/Languages/Python
URL: https://github.com/zopefoundation/roman
Source: https://files.pythonhosted.org/packages/source/r/roman/%{packagename}-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
This module converts from and to Roman numerals. It can convert numbers from
1 to 4999 and understands the common shortcuts (IX == 9), but not illegal ones (MIM == 1999).
%prep
%setup -q -n %{packagename}-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/%{packagename}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%prepare_alternative %{packagename}
%post
%python_install_alternative %{packagename}
%postun
%python_uninstall_alternative %{packagename}
%check
%pyunittest discover -v src
%files %{python_files}
%doc CHANGES.txt
%pycache_only %{python_sitelib}/__pycache__/%{packagename}*
%{python_sitelib}/*egg-info/
%{python_sitelib}/%{packagename}.py
%python_alternative %{_bindir}/roman
%if 0%{?sle_version} > 0 && 0%{?sle_version} <= 150200
%{_prefix}/lib/python2.7/site-packages/%{packagename}.py*
%endif
%changelog

BIN
roman-3.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.