From c3607355a81f69415c8a1bbaed01bb01d6cbb7e721d9fb4aee76a29ef2e0bf85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 20 Nov 2025 10:58:33 +0000 Subject: [PATCH] - Update to 1.19.0 * Fix: File move/rename is not supported when applying Git patch (#24) * Fix: Changing file permissions is ignored when applying Git patch (#23) * Fix: Git patch full index format is not recognized (#45) * Fix: Better handling for big patch files (#34) * Fix: Quoted file path is not parsed correctly - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patch-ng?expand=0&rev=8 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-patch-ng-1.18.1.tar.gz | 3 ++ python-patch-ng-1.19.0.tar.gz | 3 ++ python-patch-ng.changes | 34 +++++++++++++++++++ python-patch-ng.spec | 61 +++++++++++++++++++++++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-patch-ng-1.18.1.tar.gz create mode 100644 python-patch-ng-1.19.0.tar.gz create mode 100644 python-patch-ng.changes create mode 100644 python-patch-ng.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-patch-ng-1.18.1.tar.gz b/python-patch-ng-1.18.1.tar.gz new file mode 100644 index 0000000..4c7309d --- /dev/null +++ b/python-patch-ng-1.18.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:322b2ffe37c35ff4c6bc8e17f6a4928990ed343e9df3f350ca7542bc219e452f +size 166492 diff --git a/python-patch-ng-1.19.0.tar.gz b/python-patch-ng-1.19.0.tar.gz new file mode 100644 index 0000000..1de2e65 --- /dev/null +++ b/python-patch-ng-1.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19be239070b96224ff5d95de5be3c010610361cdc92af8634588f8c98686ef08 +size 174192 diff --git a/python-patch-ng.changes b/python-patch-ng.changes new file mode 100644 index 0000000..e4f7bc7 --- /dev/null +++ b/python-patch-ng.changes @@ -0,0 +1,34 @@ +------------------------------------------------------------------- +Thu Nov 20 10:13:00 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.19.0 + * Fix: File move/rename is not supported when applying Git patch (#24) + * Fix: Changing file permissions is ignored when applying Git patch (#23) + * Fix: Git patch full index format is not recognized (#45) + * Fix: Better handling for big patch files (#34) + * Fix: Quoted file path is not parsed correctly +- Use Python 3.11 on SLE-15 by default + +------------------------------------------------------------------- +Thu Nov 7 09:05:18 UTC 2024 - Dirk Müller + +- update to 1.18.1: + * Fix: Added pyproject to avoid errors when installing on + python 3.13 + +------------------------------------------------------------------- +Fri Oct 18 10:51:22 UTC 2024 - Dirk Müller + +- update to 1.18.0: + * Feature: Require python 3.6 as minimal version + * Fix: Fix DeprecationWarning/SyntaxWarning in regex + +------------------------------------------------------------------- +Sat Oct 28 00:18:58 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + +------------------------------------------------------------------- +Fri Oct 27 05:06:31 UTC 2023 - Atri Bhattacharya + +- Initial package. diff --git a/python-patch-ng.spec b/python-patch-ng.spec new file mode 100644 index 0000000..45a5eb0 --- /dev/null +++ b/python-patch-ng.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-patch-ng +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%{?sle15_python_module_pythons} +Name: python-patch-ng +Version: 1.19.0 +Release: 0 +Summary: Library to parse and apply unified diffs +License: MIT +URL: https://github.com/conan-io/python-patch +# PyPI sources do not include tests +Source: https://github.com/conan-io/python-patch-ng/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Patch-ng is a Python library to parse and apply unified diffs. + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%{python_expand %fdupes %{buildroot}%{$python_sitelib} +sed -Ei "1{\@%{_bindir}/env python@d}" %{buildroot}%{$python_sitelib}/patch_ng.py +} + +%check +# run_tests.py is a proprietary ultra-complicated beast +# not replaceable by anything standard +%python_exec tests/run_tests.py -v + +%files %{python_files} +%doc README.md +%{python_sitelib}/patch_ng.py +%{python_sitelib}/patch_ng-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/patch_ng*.pyc + +%changelog