代码拉取完成,页面将自动刷新
%global _empty_manifest_terminate_build 0
Name: python-bitcoinlib
Version: 0.12.2
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
BuildArch: noarch
%description
Bitcoin, Litecoin and Dash Crypto Currency Library for Python.
Includes a fully functional wallet, with multi signature, multi currency and multiple accounts.
You this library at a high level and create and manage wallets for the command line or at a low level
and create your own custom made transactions, keys or wallets.
The BitcoinLib connects to various service providers automatically to update wallets, transactions and
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
Requires: python3-fastecdsa
Requires: python3-ecdsa
Requires: python3-numpy
Requires: python3-numpy
%description -n python3-bitcoinlib
Bitcoin, Litecoin and Dash Crypto Currency Library for Python.
Includes a fully functional wallet, with multi signature, multi currency and multiple accounts.
You this library at a high level and create and manage wallets for the command line or at a low level
and create your own custom made transactions, keys or wallets.
The BitcoinLib connects to various service providers automatically to update wallets, transactions and
blockchain information. It does currently not parse the blockchain itself.
%package help
Summary: Development documents and examples for bitcoinlib
Provides: python3-bitcoinlib-doc
%description help
Bitcoin, Litecoin and Dash Crypto Currency Library for Python.
Includes a fully functional wallet, with multi signature, multi currency and multiple accounts.
You this library at a high level and create and manage wallets for the command line or at a low level
and create your own custom made transactions, keys or wallets.
The BitcoinLib connects to various service providers automatically to update wallets, transactions and
blockchain information. It does currently not parse the blockchain itself.
%prep
%autosetup -n python-bitcoinlib-%{version}
%build
%pyproject_build
%install
# Prevent Python from writing bytecode files during installation
export PYTHONDONTWRITEBYTECODE=1
%pyproject_install
# Remove __pycache__ directories (not needed in package, Python will regenerate them at runtime)
find %{buildroot} -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find %{buildroot} -name "*.pyc" -delete 2>/dev/null || true
find %{buildroot} -name "*.pyo" -delete 2>/dev/null || true
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
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
# Remove __pycache__ directories before generating filelist
find %{buildroot} -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find %{buildroot} -name "*.pyc" -delete 2>/dev/null || true
find %{buildroot} -name "*.pyo" -delete 2>/dev/null || true
pushd %{buildroot}
touch filelist.lst
if [ -d usr/lib ]; then
find usr/lib -type f ! -path "*/__pycache__/*" -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f ! -path "*/__pycache__/*" -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f ! -path "*/__pycache__/*" -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f ! -path "*/__pycache__/*" -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
# Final cleanup of __pycache__ before RPM checks for unpackaged files
rm -rf %{buildroot}%{python3_sitelib}/bitcoin/__pycache__ 2>/dev/null || true
rm -rf %{buildroot}%{python3_sitelib}/bitcoin/*/__pycache__ 2>/dev/null || true
rm -rf %{buildroot}%{python3_sitelib}/bitcoin/*/*/__pycache__ 2>/dev/null || true
find %{buildroot} -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find %{buildroot} -name "*.pyc" -delete 2>/dev/null || true
find %{buildroot} -name "*.pyo" -delete 2>/dev/null || true
%files -n python3-bitcoinlib -f filelist.lst
%dir %{python3_sitelib}/*
%exclude %{python3_sitelib}/bitcoin/__pycache__
%exclude %{python3_sitelib}/bitcoin/__pycache__/*
%exclude %{python3_sitelib}/bitcoin/*/__pycache__
%exclude %{python3_sitelib}/bitcoin/*/__pycache__/*
%exclude %{python3_sitelib}/bitcoin/*/*/__pycache__
%exclude %{python3_sitelib}/bitcoin/*/*/__pycache__/*
%files help
%{_docdir}/*
%changelog
* Wed Nov 12 2025 <zhaojianbin@kylinos.com> - 0.12.2-1
- Update package to version 0.12.2
- Remove __pycache__ directories from package (Python will regenerate them at runtime)
- Add %exclude for all nested __pycache__ directories (including bitcoin/core/contrib)
* Mon Nov 11 2024 liutao1 <liutao1@kylinos.cn> - 0.6.10-1
- Update package to version 0.6.10
Allow to encrypt private key fields in database
Include examples/documentation for field and full database encryption
Fixed various provider issues
Fixed unittests fee issues
Fixed secure bitcoind connection
* Thu Mar 16 2023 wubijie <wubijie@kylinos.cn> - 0.6.9-1
- Update package to version 0.6.9
* Thu Dec 15 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.6.7-1
- Update package to version 0.6.7
* Wed Nov 02 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.6.6-1
- Upgrade package to version 0.6.6
* Thu Jul 28 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.6.5-1
- update to 0.6.5
* Tue May 10 2022 houyingchao <houyingchao@h-partners.com> - 0.5.3-2
- License compliance rectification
* Tue Jul 16 2021 Python_Bot <Python_Bot@openeuler.org> - 0.5.3-1
- Package Spec generated
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。