14
0

- update to 5.0:

* It is now possible to specify a codec for archive entry
    metadata (`pathname`, `linkpath`, `uname` and `gname`)
  * **BREAKING:** If you use the `archive_read_class` and
    `archive_write_class` arguments, the classes you provide will
    receive a codec name as a second positional argument.
  * The `timestamp_nsec` arguments of the legacy
    `ArchiveEntry.set_{a,c,m}time` methods are now optional
  * Removed obsolete dependencies (`mock` and `six`) from
    `tox.ini` (#119).
  * Always use `UTF-8` when reading the `PKG-INFO` and
    `README.rst` files (#120).
  * Replaced `pytest-xdist` with `pytest-forked` in `tox.ini`
- drop python-libarchive-c-no-mock.patch (upstream)
    BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=13
This commit is contained in:
2023-12-07 22:22:36 +00:00
committed by Git OBS Bridge
parent 03c7ebd5ab
commit d0bb7fcc8c
5 changed files with 25 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-libarchive-c
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,15 +20,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-libarchive-c
Version: 4.0
Version: 5.0
Release: 0
Summary: Python interface to libarchive
License: CC0-1.0
Group: Development/Languages/Python
URL: https://github.com/Changaco/python-libarchive-c
Source: https://files.pythonhosted.org/packages/source/l/libarchive-c/libarchive-c-%{version}.tar.gz
# https://github.com/Changaco/python-libarchive-c/commit/13b904e2b046db25a42cd63557d259b3d3998323
Patch0: python-libarchive-c-no-mock.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -49,8 +47,7 @@ A Python interface to libarchive. It uses the standard ctypes_ module to
dynamically load and access the C library.
%prep
%setup -q -n libarchive-c-%{version}
%patch0 -p1
%autosetup -p1 -n libarchive-c-%{version}
%build
%python_build