diff --git a/python-bitcoinlib-0.12.2.tar.gz b/python-bitcoinlib-0.12.2.tar.gz deleted file mode 100644 index 9b62594ff179400f94e416d65160c6cd38686734..0000000000000000000000000000000000000000 Binary files a/python-bitcoinlib-0.12.2.tar.gz and /dev/null differ diff --git a/python-bitcoinlib-0.7.5.tar.gz b/python-bitcoinlib-0.7.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/python-bitcoinlib.spec b/python-bitcoinlib.spec index cfe76e0dca23e9db92ba2ccf647512ed5f33fce1..c4926ddf740889a0c352e9e1c4404a5cd9cb4a7f 100644 --- a/python-bitcoinlib.spec +++ b/python-bitcoinlib.spec @@ -1,13 +1,21 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-bitcoinlib -Version: 0.12.2 +Version: 0.7.5 Release: 1 Summary: Bitcoin and Other cryptocurrency Library License: GPL-3.0-only URL: http://github.com/1200wd/bitcoinlib -Source0: https://files.pythonhosted.org/packages/90/a1/ca9d770094a0bfd0f2ce66b7180f0a7729b1b646d90f37f6debf38b28fab/python-bitcoinlib-0.12.2.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/python-bitcoinlib/python-bitcoinlib-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-build +BuildRequires: python3-hatchling +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel + %description Bitcoin, Litecoin and Dash Crypto Currency Library for Python. Includes a fully functional wallet, with multi signature, multi currency and multiple accounts. @@ -19,10 +27,6 @@ blockchain information. It does currently not parse the blockchain itself. %package -n python3-bitcoinlib Summary: Bitcoin and Other cryptocurrency Library Provides: python-bitcoinlib = %{version}-%{release} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3-wheel Requires: python3-sqlalchemy Requires: python3-pycryptodome Requires: python3-requests @@ -52,10 +56,23 @@ blockchain information. It does currently not parse the blockchain itself. %prep %autosetup -n python-bitcoinlib-%{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 +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_build %install +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" # Prevent Python from writing bytecode files during installation export PYTHONDONTWRITEBYTECODE=1 %pyproject_install @@ -114,6 +131,9 @@ find %{buildroot} -name "*.pyo" -delete 2>/dev/null || true %{_docdir}/* %changelog +* Mon Dec 01 2025 zhangzeyang0718 - 0.7.5-1 +- Update package to version 0.7.5 + * Wed Nov 12 2025 - 0.12.2-1 - Update package to version 0.12.2 - Remove __pycache__ directories from package (Python will regenerate them at runtime)