forked from pool/python-rarfile
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 60826cf42c | |||
| 719ed1f63c | |||
| 3c067de7f3 | |||
| 8b6fc38b5f |
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,47 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -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,21 +18,19 @@
|
||||
|
||||
%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
|
||||
BuildRequires: python3-Sphinx >= 1.3
|
||||
BuildRequires: unar
|
||||
Requires: bsdtar
|
||||
Recommends: unar
|
||||
BuildArch: noarch
|
||||
@@ -55,8 +53,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 +65,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
|
||||
|
||||
@@ -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