Ai
5 Star 0 Fork 16

src-openEuler/python-bitcoinlib
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-bitcoinlib.spec 6.16 KB
一键复制 编辑 原始数据 按行查看 历史
大唐 提交于 2025-11-06 16:12 +08:00 . Update package with version 0.12.2
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-bitcoinlib.git
git@gitee.com:src-openeuler/python-bitcoinlib.git
src-openeuler
python-bitcoinlib
python-bitcoinlib
master

搜索帮助