15
0

4 Commits

Author SHA256 Message Date
60826cf42c Accepting request 1216919 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1216919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=9
2024-10-22 12:53:23 +00:00
719ed1f63c - Do not BuildRequire unar: this seems unused during the build/test
phase.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=23
2024-10-22 07:17:18 +00:00
3c067de7f3 Accepting request 1185230 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1185230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=8
2024-07-04 14:26:27 +00:00
8b6fc38b5f Accepting request 1184025 from home:alois:branches:devel:languages:python
- 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)

OBS-URL: https://build.opensuse.org/request/show/1184025
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=21
2024-07-03 19:49:41 +00:00
2 changed files with 6 additions and 13 deletions

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-rarfile
#
# Copyright (c) 2025 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
@@ -24,10 +24,8 @@ 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
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: 7zip
BuildRequires: bsdtar
BuildRequires: fdupes
@@ -58,12 +56,12 @@ This package contains technical documentation.
%autosetup -p1 -n rarfile-%{version}
%build
%pyproject_wheel
%python_build
%make_build -C doc html
rm doc/_build/html/.buildinfo
%install
%pyproject_install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -71,9 +69,9 @@ rm doc/_build/html/.buildinfo
%files %{python_files}
%license LICENSE
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.pyc
%{python_sitelib}/rarfile.py
%{python_sitelib}/rarfile-%{version}.dist-info
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.py*
%{python_sitelib}/rarfile.py*
%{python_sitelib}/rarfile-%{version}-py%{python_version}.egg-info
%files %{python_files doc}
%license LICENSE