diff --git a/help.patch b/help.patch deleted file mode 100644 index a161e2c..0000000 --- a/help.patch +++ /dev/null @@ -1,11 +0,0 @@ -Index: rarfile-4.0/test/test_tool.py -=================================================================== ---- rarfile-4.0.orig/test/test_tool.py -+++ rarfile-4.0/test/test_tool.py -@@ -116,5 +116,5 @@ def test_cli_extract(capsys, tmp_path): - def test_cli_help(capsys): - assert cli("--help") == 0 - res = capsys.readouterr() -- assert "optional" in res.out -+ assert "option" in res.out - diff --git a/python-rarfile.changes b/python-rarfile.changes index e8071ae..75c71cf 100644 --- a/python-rarfile.changes +++ b/python-rarfile.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Sat Jun 29 17:30:32 UTC 2024 - Luigi Baldoni + +- Update to version 4.2 + Features: + * Support unrar-free >= 0.2.0. + * Add RarFile.is_solid to check if archive uses solid compression. + Fixes: + * Support old multi-volume archives better where ENDARC does + not contain NEXTVOL. + version 4.1: + Features: + * Support 7zip/p7zip as decompression backend. + * RAR5: check password before trying to read file. + New APIs: + * Make get_rar_version a public function. + * New option: ``part_only`` for :class:`RarFile`, + to read only single file and allow it to be middle-part + of multi-volume archive. + * Add :meth:`RarFile.printdir`, use it in dumprar. Needed to + examine FILE_COPY or HARD_LINK entries that do not contain + data. + Fixes: + * Use OS separator to access filename. + * DirectReader: check seek position on each read. + Fixes read reading from multiple entries in parallel + on RarFile backed by file object. + * DirectReader: properly disable CRC check when seeking. + * Reset _hdrenc_main before processing a new volume. + Fixes CRC checks on multi-volume reads. + * Adapt to Python 3.10 argparse. + * SFX: Handle volume numbering special cases better. + * nsdatetime: support pypy internal use + * Throw error if backend does not support passwords. + Cleanups: + * Avoid isascii, not in 3.6 +- Drop help.patch (merged upstream) + ------------------------------------------------------------------- Wed May 4 06:25:49 UTC 2022 - Markéta Machová diff --git a/python-rarfile.spec b/python-rarfile.spec index fc59bf6..8fde387 100644 --- a/python-rarfile.spec +++ b/python-rarfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-rarfile # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -18,16 +18,15 @@ %define skip_python2 1 Name: python-rarfile -Version: 4.0 +Version: 4.2 Release: 0 Summary: RAR Archive Reader for Python License: ISC URL: https://rarfile.readthedocs.org/ Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz -# https://github.com/markokr/rarfile/pull/85 -Patch0: help.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: 7zip BuildRequires: bsdtar BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -55,8 +54,7 @@ Python module for RAR archive reading. This package contains technical documentation. %prep -%setup -q -n rarfile-%{version} -%autopatch -p1 +%autosetup -p1 -n rarfile-%{version} %build %python_build @@ -68,7 +66,7 @@ rm doc/_build/html/.buildinfo %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +%pytest -k "not (test_unrar_tool or test_reading or test_rar3_header_encryption)" %files %{python_files} %license LICENSE diff --git a/rarfile-4.0.tar.gz b/rarfile-4.0.tar.gz deleted file mode 100644 index 2ecc800..0000000 --- a/rarfile-4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:67548769229c5bda0827c1663dce3f54644f9dbfba4ae86d4da2b2afd3e602a1 -size 148026 diff --git a/rarfile-4.2.tar.gz b/rarfile-4.2.tar.gz new file mode 100644 index 0000000..b42dbda --- /dev/null +++ b/rarfile-4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e1c8e72d0845ad2b32a47ab11a719bc2e41165ec101fd4d3fe9e92aa3f469ef +size 153476