%global _empty_manifest_terminate_build 0
Name: python-dulwich
Version: 1.2.5
Release: 1
Summary: Python Git Library
License: Apachev2 or GPLv2+ or GPLv2
URL: https://www.dulwich.io/
Source0: %{pypi_source dulwich}
%description
This is the Dulwich project.
It aims to provide an interface to git repos (both local and remote) that
doesn't call out to git directly but instead uses pure Python.
%package -n python3-dulwich
Summary: Python Git Library
Provides: python-dulwich = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools-rust
BuildRequires: python3-cffi
BuildRequires: gcc
%description -n python3-dulwich
This is the Dulwich project.
It aims to provide an interface to git repos (both local and remote) that
doesn't call out to git directly but instead uses pure Python.
%package help
Summary: Development documents and examples for dulwich
Provides: python3-dulwich-doc
%description help
This is the Dulwich project.
It aims to provide an interface to git repos (both local and remote) that
doesn't call out to git directly but instead uses pure Python.
%prep
%autosetup -n dulwich-%{version}
%build
%py3_build
%install
%py3_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
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -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 .
%files -n python3-dulwich -f filelist.lst
%dir %{python3_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jun 12 2026 YangengLiu <dev01202@linx-info.com> - 1.2.5-1
- update version to 1.2.5
Fix CVE-2026-47712
Fix CVE-2026-42305
Fix CVE-2026-42563
Fix CVE-2026-52726
Fix CVE-2026-47734
* Wed Apr 22 2026 YangengLiu <dev01202@linx-info.com> - 1.2.0-1
- update version to 1.2.0
* Fix GPG signature verification to raise BadSignature for all GPG errors, not just BadSignatures; also detect when GPG returns no signatures.
* Fix client incorrectly sending unborn argument in Git protocol v2 ls-refs requests to servers that don't advertise ls-refs=unborn, preventing clones from older servers like Gerrit 3.12.2.
* Improve error message in read_info_refs() to show the actual line content when parsing fails.
* Preserve quoted trailing whitespace in config values.
* Fix .gitignore parent re-include handling so a later !dir/ re-include allows a subsequent file-level negation to take effect.
* Fix host key verification in contrib/paramiko_vendor.py by loading known hosts and rejecting unknown SSH host keys by default.
* Add support for push options (-o/--push-option) in push, enabling AGit flow and other server-side push option workflows.
* Add missing push options: --all, --tags, --delete, --dry-run, --prune, --set-upstream, --follow-tags, and --mirror.
* Add support for atomic push operations (--atomic): either all ref updates succeed or none are applied.
* Mon Mar 02 2026 zhang_jian <zhang_jian7@hoperun.com> - 1.1.0-1
- update to 1.1.0
- Add reference to c-git-compatibility doc in README.md
- Add test-minimal to CI; run tests without installing any optional dependencies
- Allow passing commit and author timestamps into porcelain.commit
* Fri Jan 16 2026 yyli <dev01209@linx-info.com> - 0.25.2-1
- update to 0.25.2
- Fix test failure when GPG raises `InvalidSigners` instead of `GPGMEError` on systems without usable secret keys.
- Object store `close()` methods can now be called multiple times safely.Object stores now raise `ResourceWarning` when destroyed with unclosedresources.
* Tue Dec 23 2025 chukaiping <chukaiping@baidu.com> - 0.25.0-1
- update package to 0.25.0
- Add tests to verify client args are passed
- Add column formatting support
- Implement restore and switch commands
* Mon Nov 17 2025 zhangchaorui <zhangchaorui@kylinos.cn> - 0.24.10-1
- update package to 0.24.10
* Mon Nov 3 2025 Hann <hannannan@kylinos.cn> - 0.24.8-1
- update package to 0.24.8
Fix config file leakage in compat tests
Fix TypeError when passing refspec to clone()
Add rust implementation of create_delta
* Thu Oct 09 2025 lifeifei <lifeifei@kylinos.cn> - 0.24.2-1
- update package to 0.24.2
Fix merge functionality to gracefully handle missing optional merge3 dependency
Fix worktree CLI tests to properly change to repository directory.
Add filter server support.
* Thu Aug 14 2025 zhang_wenyu <zhang_wenyu@hoperun.com> - 0.24.1-1
- Update package to version 0.24.1
- Require ``typing_extensions`` on Python 3.10.
* Wed Jun 11 2025 huangwenjie <huangwj@teligen.net> - 0.22.8-1
- Update package to version 0.22.8
* Tue Nov 05 2024 zhangyulong <zhangyulong@kylinos.cn> - 0.22.4-1
- Update package to version 0.22.4
-Fix confusing "Possible areas for improvement"in docs
-GitClient.get_refs() doesnot return peeled refs anymore(git protocol v2)
-Publish Python 3.13 wheels
* Thu Oct 24 2024 dongqi <dongqi1@kylinos.cn> - 0.22.3-1
- Update versionto 0.22.3
- Fix typing error from mypy
- Attempt to build wheels in parallel
* Thu Aug 15 2024 Ge Wang <wang__ge@126.com> - 0.22.1-1
- Update package to version 0.22.1
* Sun Apr 07 2024 GuoCe <guoce@kylinso.cn> - 0.21.7-1
- Update package to version 0.21.7
- Support credentials in proxy URL and fix some issues.
* Thu Oct 26 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.21.6-1
- Update package to version 0.21.6
* Sun Jun 25 2023 chendexi <chendexi@kylinos.cn> - 0.21.5-1
- Update package to version 0.21.5
* Fri Feb 24 2023 wubijie <wubijie@kylinos.cn> - 0.21.3-1
- Update package to version 0.21.3
* Thu Nov 24 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.20.50-1
- Update package to version 0.20.50
* Sat Sep 24 2022 guozhengxin <guozhengxin@kylinos.cn> - 0.20.46-1
- Upgrade package to version 0.20.46
* Sun Jul 24 2022 liksh <liks11@chinaunicom.com.cn> - 0.20.32-1
- Upgrade to 0.20.32 for openstack yoga
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.20.20-2
- DESC: delete BuildRequires gdb
* Fri Jul 09 2021 openstack-sig <openstack@openeuler.org>
- Update to 0.20.20
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated