From c9410112cb43cd8e157378bf0da0f27c40ec99c6c255a6f220d8fc04a051cb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 22:52:09 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-roman revision dc92fb1dab8a98657db340178b69fa8f --- .gitattributes | 23 ++++++++++++++ python-roman.changes | 68 +++++++++++++++++++++++++++++++++++++++++ python-roman.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++ roman-3.3.tar.gz | 3 ++ 4 files changed, 166 insertions(+) create mode 100644 .gitattributes create mode 100644 python-roman.changes create mode 100644 python-roman.spec create mode 100644 roman-3.3.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/python-roman.changes b/python-roman.changes new file mode 100644 index 0000000..57f585f --- /dev/null +++ b/python-roman.changes @@ -0,0 +1,68 @@ +------------------------------------------------------------------- +Fri Apr 21 12:33:24 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Tue Dec 22 08:53:53 UTC 2020 - Matej Cepl + +- Fix using %pyunittest macro + +------------------------------------------------------------------- +Sun Dec 20 14:28:03 UTC 2020 - andy great + +- 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 + +- 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 + diff --git a/python-roman.spec b/python-roman.spec new file mode 100644 index 0000000..0584160 --- /dev/null +++ b/python-roman.spec @@ -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 diff --git a/roman-3.3.tar.gz b/roman-3.3.tar.gz new file mode 100644 index 0000000..56ed970 --- /dev/null +++ b/roman-3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c46ac8db827d34e4fa9ccc0577e7f0b0d84f16ffe112351bd4f1ec2eb12d73f +size 7577