Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f802fda6fc | |||
| 59e09452c2 | |||
| 97c1a4136d | |||
| 7423e796aa | |||
| 0990c85dc2 | |||
| 86f6b7a4cb |
11
help.patch
11
help.patch
@@ -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
|
|
||||||
|
|
||||||
@@ -1,3 +1,52 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 24 02:21:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 22 06:44:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Do not BuildRequire unar: this seems unused during the build/test
|
||||||
|
phase.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 29 17:30:32 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- 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á <mmachova@suse.com>
|
Wed May 4 06:25:49 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-rarfile
|
# spec file for package python-rarfile
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,21 +18,21 @@
|
|||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-rarfile
|
Name: python-rarfile
|
||||||
Version: 4.0
|
Version: 4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: RAR Archive Reader for Python
|
Summary: RAR Archive Reader for Python
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://rarfile.readthedocs.org/
|
URL: https://rarfile.readthedocs.org/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz
|
||||||
# https://github.com/markokr/rarfile/pull/85
|
BuildRequires: %{python_module pip}
|
||||||
Patch0: help.patch
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: 7zip
|
||||||
BuildRequires: bsdtar
|
BuildRequires: bsdtar
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx >= 1.3
|
BuildRequires: python3-Sphinx >= 1.3
|
||||||
BuildRequires: unar
|
|
||||||
Requires: bsdtar
|
Requires: bsdtar
|
||||||
Recommends: unar
|
Recommends: unar
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -55,26 +55,25 @@ Python module for RAR archive reading.
|
|||||||
This package contains technical documentation.
|
This package contains technical documentation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n rarfile-%{version}
|
%autosetup -p1 -n rarfile-%{version}
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
%make_build -C doc html
|
%make_build -C doc html
|
||||||
rm doc/_build/html/.buildinfo
|
rm doc/_build/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest -k "not (test_unrar_tool or test_reading or test_rar3_header_encryption)"
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.py*
|
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.pyc
|
||||||
%{python_sitelib}/rarfile.py*
|
%{python_sitelib}/rarfile.py
|
||||||
%{python_sitelib}/rarfile-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/rarfile-%{version}.dist-info
|
||||||
|
|
||||||
%files %{python_files doc}
|
%files %{python_files doc}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:67548769229c5bda0827c1663dce3f54644f9dbfba4ae86d4da2b2afd3e602a1
|
|
||||||
size 148026
|
|
||||||
3
rarfile-4.2.tar.gz
Normal file
3
rarfile-4.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8e1c8e72d0845ad2b32a47ab11a719bc2e41165ec101fd4d3fe9e92aa3f469ef
|
||||||
|
size 153476
|
||||||
Reference in New Issue
Block a user