代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/python-bsddb3 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global srcname bsddb3
%global common_description %{expand:
This package contains Python wrappers for Berkeley DB, the Open Source embedded
database system. The Python wrappers allow you to store Python string objects of
any length.}
Name: python-%{srcname}
Version: 6.2.9
Release: 2%{?dist}
Summary: Python 3 bindings for Berkeley DB
License: BSD-3-Clause
URL: https://pypi.org/project/bsddb3
Source0: %{pypi_source}
Patch0: dont-include-standard-paths-in-runtime-libdir.patch
Patch1: TextTestResult.patch
BuildRequires: gcc libdb-devel python3-setuptools
%description %{common_description}
%global python3_name %{expand:python%{python3_pkgversion}-%{srcname}}
%package -n %{python3_name}
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%description -n %{python3_name} %{common_description}
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%{py3_build}
%install
fix_scripts_shebangs_and_permissions() {
local -r py_binary="$1"
local -r py_install_dir="$2"
local -r WRONG_SHEBANG='#!/usr/bin/python|#!/usr/bin/env python[[:digit:]]*'
local -r CORRECT_SHEBANG="#!${py_binary}"
grep --recursive --files-with-matches --null --extended-regexp \
--regexp="${WRONG_SHEBANG}" "${py_install_dir}" \
| xargs --null -- sed --regexp-extended --in-place \
--expression="s@${WRONG_SHEBANG}@${CORRECT_SHEBANG}@"
grep --recursive --files-with-matches --null --extended-regexp \
--regexp="${CORRECT_SHEBANG}" "${py_install_dir}" \
| xargs --null -- chmod 0755
%{py_byte_compile "${py_binary}" "${py_install_dir}"}
}
%{py3_install}
fix_scripts_shebangs_and_permissions %{__python3} \
%{buildroot}%{python3_sitearch}/%{srcname}
rm -f %{buildroot}%{_includedir}/python3.*/%{srcname}/bsddb.h
%check
%{__python3} test.py
%files -n %{python3_name}
%doc ChangeLog PKG-INFO README.txt
%license LICENSE.txt
%{python3_sitearch}/bsddb3/
%{python3_sitearch}/bsddb3-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Sep 3 2024 Ze Zhang <bbrucezhang@tencent.com> - 6.2.9-2
- [Type] other
- [DESC] Remove not used macors
* Fri Apr 12 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 6.2.9-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。