forked from pool/python-py7zr
Accepting request 1044074 from home:bnavigator:branches:devel:languages:python
- Update to 0.20.2 * Fix error with good path data, when detecting wrong path with new canonical_path(), and drop resolve() call on path. - Release 0.20.1 ## Security * Fix sanity check for path traversal attack(#480) * Add path checker in writef() and writestr() methods that ignores evil pass. - When pass arcname as evil path such as "../../../../tmp/evil.sh" - it raises ValueError * Check symlink and junction is under target folder when extraction - Release 0.20.0 * Support enhanced deflate compression.(#472) * Bump setuptools@63 and setuptools_scm@7 (#473) * Deprecate Python 3.6 support (#473) - Fixes boo#1206141 CVE-2022-44900 - Update to version 0.19.0 * big changelog - Move tests to multibuild OBS-URL: https://build.opensuse.org/request/show/1044074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py7zr?expand=0&rev=7
This commit is contained in:
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f9e872f02daf9be64ef35a0d69f5467a3ccbd028df0863ee39a2fbab5f80cc52
|
|
||||||
size 2579047
|
|
3
py7zr-0.20.2.tar.gz
Normal file
3
py7zr-0.20.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:791ef912a295b61b91c5fe0c23adeddb80bf13500308062c082b8fec6c8c9653
|
||||||
|
size 4983066
|
@@ -1,3 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 21 10:02:30 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 0.20.2
|
||||||
|
* Fix error with good path data, when detecting wrong path with
|
||||||
|
new canonical_path(), and drop resolve() call on path.
|
||||||
|
- Release 0.20.1
|
||||||
|
## Security
|
||||||
|
* Fix sanity check for path traversal attack(#480)
|
||||||
|
* Add path checker in writef() and writestr() methods that
|
||||||
|
ignores evil pass.
|
||||||
|
- When pass arcname as evil path such as
|
||||||
|
"../../../../tmp/evil.sh"
|
||||||
|
- it raises ValueError
|
||||||
|
* Check symlink and junction is under target folder when
|
||||||
|
extraction
|
||||||
|
- Release 0.20.0
|
||||||
|
* Support enhanced deflate compression.(#472)
|
||||||
|
* Bump setuptools@63 and setuptools_scm@7 (#473)
|
||||||
|
* Deprecate Python 3.6 support (#473)
|
||||||
|
- Fixes boo#1206141 CVE-2022-44900
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 15 07:54:24 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to version 0.19.0
|
||||||
|
* big changelog
|
||||||
|
- Move tests to multibuild
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 14 18:23:24 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Thu Jul 14 18:23:24 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-py7zr
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@@ -16,36 +16,55 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%define skip_python2 1
|
%if "%{flavor}" == "test"
|
||||||
Name: python-py7zr
|
%define psuffix -test
|
||||||
Version: 0.11.3
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: python-py7zr%{psuffix}
|
||||||
|
Version: 0.20.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library and utility to support 7zip
|
Summary: Library and utility to support 7zip
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/miurahr/py7zr
|
URL: https://github.com/miurahr/py7zr
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/py7zr/py7zr-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/py7zr/py7zr-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pep517}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module pyannotate}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pycryptodome}
|
BuildRequires: %{python_module setuptools >= 63}
|
||||||
BuildRequires: %{python_module pylzma}
|
BuildRequires: %{python_module setuptools_scm >= 7.0.5}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module texttable}
|
|
||||||
BuildRequires: %{python_module toml}
|
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
# SECTION test requirements
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-Brotli >= 1.0.9
|
||||||
|
Requires: python-multivolumefile >= 0.2.3
|
||||||
|
Requires: python-psutil
|
||||||
|
Requires: python-pybcj >= 0.6.0
|
||||||
|
Requires: python-pycryptodomex >= 3.6.6
|
||||||
|
Requires: python-pyzstd >= 0.14.4
|
||||||
|
Requires: python-texttable
|
||||||
|
Requires: (python-pyppmd >= 0.18.1 with python-pyppmd < 1.1.0)
|
||||||
|
%if 0%{?python_version_nodots} < 38
|
||||||
|
Requires: python-importlib_metadata
|
||||||
|
%endif
|
||||||
|
%if 0%{?python_version_nodots} > 36
|
||||||
|
Requires: python-inflate64 >= 0.3.1
|
||||||
|
%endif
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun):update-alternatives
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module py-cpuinfo}
|
||||||
|
BuildRequires: %{python_module py7zr = %{version}}
|
||||||
|
BuildRequires: %{python_module pyannotate}
|
||||||
|
BuildRequires: %{python_module pytest-benchmark}
|
||||||
BuildRequires: %{python_module pytest-remotedata}
|
BuildRequires: %{python_module pytest-remotedata}
|
||||||
BuildRequires: %{python_module pytest-timeout}
|
BuildRequires: %{python_module pytest-timeout}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
%endif
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
Requires: python-pycryptodome
|
|
||||||
Requires: python-texttable
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -54,24 +73,23 @@ py7zr is a library and utility to support 7zip archive compression, decompressio
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n py7zr-%{version}
|
%setup -q -n py7zr-%{version}
|
||||||
find . -type f -name "*.py" -exec sed -i \
|
# remove shebangs from source
|
||||||
-e '1s|/usr/bin/env python$|/usr/bin/python3|g' \
|
sed -i '1{/#!/d}' py7zr/*.py
|
||||||
-e '1s|/usr/bin/python |/usr/bin/python3 |g' \
|
|
||||||
{} \;
|
|
||||||
|
|
||||||
sed -i -e 's|setuptools-scm>=3.5.0|setuptools-scm|g' setup.cfg
|
|
||||||
sed -i -e '/addopts/d' tox.ini
|
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/py7zr
|
%python_clone -a %{buildroot}%{_bindir}/py7zr
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
for i in __init__.py __main__.py archiveinfo.py callbacks.py cli.py compressor.py helpers.py py7zr.py ; do
|
%endif
|
||||||
%python_expand chmod +x %{buildroot}%{$python_sitelib}/py7zr/$i
|
|
||||||
done
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative py7zr
|
%python_install_alternative py7zr
|
||||||
@@ -79,16 +97,13 @@ done
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative py7zr
|
%python_uninstall_alternative py7zr
|
||||||
|
|
||||||
%check
|
%if !%{with test}
|
||||||
# different format of argparse in python3.10
|
|
||||||
python310_donttest=("-k" "not (test_cli_help or test_cli_no_subcommand)")
|
|
||||||
%pytest -m "not benchmark" "${$python_donttest[@]}"
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst Changelog.rst
|
%doc README.rst Changelog.rst
|
||||||
%{python_sitelib}/py7zr
|
%{python_sitelib}/py7zr
|
||||||
%{python_sitelib}/py7zr-%{version}*-info
|
%{python_sitelib}/py7zr-%{version}*-info
|
||||||
%python_alternative %{_bindir}/py7zr
|
%python_alternative %{_bindir}/py7zr
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user