diff --git a/-1.25.0.tar.gz b/-1.25.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/1.22.0.tar.gz b/1.22.0.tar.gz deleted file mode 100644 index a1cd7fbc62c9e7319b30893dd893215027e105a5..0000000000000000000000000000000000000000 Binary files a/1.22.0.tar.gz and /dev/null differ diff --git a/python-blessed.spec b/python-blessed.spec index dda05c2ac095ec6b45c3725fe7049aadfe2860cb..d98c55835f3751d317f9f35c5d33911de1071a06 100644 --- a/python-blessed.spec +++ b/python-blessed.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-blessed -Version: 1.22.0 +Version: 1.25.0 Release: 1 Summary: Easy, practical library for making terminal apps, by providing an elegant, well-documented interface to Colors, Keyboard input, and screen Positioning capabilities. License: MIT URL: https://github.com/jquast/blessed -Source0: https://github.com/jquast/blessed/archive/refs/tags/%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/-//-%{version}.tar.gz BuildArch: noarch Requires: python3-wcwidth @@ -13,15 +14,20 @@ Requires: python3-six Requires: python3-jinxed Requires: python3-ordereddict +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-build +BuildRequires: python3-hatchling +BuildRequires: python3-devel +BuildRequires: zlib >= 1.2.11 +BuildRequires: python3-setuptools + %description Blessed is an easy, practical library for making python terminal apps %package -n python3-blessed Summary: Easy, practical library for making terminal apps, by providing an elegant, well-documented interface to Colors, Keyboard input, and screen Positioning capabilities. Provides: python-blessed -BuildRequires: python3-devel -BuildRequires: zlib >= 1.2.11 -BuildRequires: python3-setuptools %description -n python3-blessed Blessed is an easy, practical library for making python terminal apps @@ -34,11 +40,29 @@ Blessed is an easy, practical library for making python terminal apps %prep %autosetup -n blessed-%{version} +# Fix setuptools_scm version issue +if [ -f pyproject.toml ]; then + sed -i '/^version *=/d' pyproject.toml + sed -i '/^\[project\]/a version = "%{version}"' pyproject.toml + sed -i '/dynamic *= *\[.*version.*\]/d' pyproject.toml + if grep -q '^\[tool\.setuptools_scm\]' pyproject.toml; then + sed -i '/^\[tool\.setuptools_scm\]/,/^\[/ {/^write_to *=/d}' pyproject.toml + sed -i '/^\[tool\.setuptools_scm\]/a fallback_version = "%{version}"' pyproject.toml + fi +fi + %build -%py3_build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_build %install -%py3_install +export PYTHONDONTWRITEBYTECODE=1 + +# Clean __pycache__ directories and .pyc/.pyo files +find %{buildroot} -name '*.py[co]' -delete +find %{buildroot} -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -72,6 +96,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Mon Dec 01 2025 zhangzeyang0718 - 1.25.0-1 +- Update package to version 1.25.0 + * Mon Nov 17 2025 dongqi - 1.22.0-1 - Update package to version 1.22.0 Fixes for failing tests