Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| eb00c9c6a2 | |||
| 27e171e2fb | |||
| ebbdc81058 | |||
| cd7b3199af | |||
| 883a9630c8 | |||
| b71999e634 | |||
| 2685cdd375 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:beda602d97ca2913a1da697f840290b2dfdf0ee1d60bc230468df1e7de41da98
|
||||
size 209348
|
||||
3
msoffcrypto_tool-5.4.2.tar.gz
Normal file
3
msoffcrypto_tool-5.4.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:427bbf5d9e491c51fcf15fa462abaa7abf3827250f956533e7f69997ef186858
|
||||
size 306611
|
||||
@@ -1,3 +1,59 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 10 14:42:35 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Use source from github to have tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 4 05:30:19 UTC 2025 - Guang Yee <gyee@suse.com>
|
||||
|
||||
- Update to 5.4.2
|
||||
* Fix DeprecationWarning from cryptography library (reported by @dennn11, #92)
|
||||
v5.4.1 / 2024-05-25
|
||||
* Fix for incorrect key size with 0 length keySize var (@UserJHansen, #89)
|
||||
v5.4.0 / 2024-05-02
|
||||
* Never return None in ooxml's _parseinfo (@gdesmar, #88)
|
||||
v5.3.1 / 2024-01-19
|
||||
* Bug fixes
|
||||
v5.3.0 / 2024-01-19
|
||||
* Add support for OOXML encryption, a port from the C++ library
|
||||
https://github.com/herumi/msoffice (@stephane-rouleau, #86)
|
||||
v5.2.0 / 2024-01-06
|
||||
* Support XOR Obfuscation decryption for .xls documents (@DissectMalware, #80)
|
||||
* Bug fixes
|
||||
v5.1.1 / 2023-07-20
|
||||
* Drop Python 3.7 support as it reaches EOL, Add Python 3.11 to CI environments
|
||||
* Get the version in __main__.py instead of __init__.py to avoid a
|
||||
relevant error in PyInstaller/cx_Freeze in which pkg_resources
|
||||
does not work by default
|
||||
v5.1.0 / 2023-07-17
|
||||
* Load plain OOXML as OfficeFile with type == plain. Fixes #74
|
||||
* Use importlib.metadata.version in Python >=3.8 (#77)
|
||||
5.0.1 / 2023-02-28
|
||||
* (dev) Switch to GitHub Actions from Travis CI
|
||||
* Update dependencies, Drop Python 3.6 support
|
||||
5.0.0 / 2022-01-20
|
||||
* (dev) Add tests on Python 3.7 to 3.9 (#71)
|
||||
* (dev) Track poetry.lock (#71)
|
||||
* (BREAKING) Drop Python 2 support (#71)
|
||||
* Raise exception if no encryption type is specified (#70)
|
||||
* Support SHA256, SHA384 hash algorithm (@jackydo, #67)
|
||||
* Fix errors for unencrypted documents
|
||||
* Use absolute imports (#63)
|
||||
4.12.0 / 2021-06-04
|
||||
* Use custom exceptions (#59)
|
||||
* (dev) Remove nose (thank you) (#57)
|
||||
* (dev) Use poetry (#55)
|
||||
4.11.0 / 2020-09-03
|
||||
* Improve hash calculation (suggested by @StanislavNikolov)
|
||||
* Add "verify_passwd" and "verify_integrity" option (@jeffli678)
|
||||
* Make _packUserEditAtom spec-compliant
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 5 04:40:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- No more greedy globs in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 18:36:13 UTC 2024 - Guang Yee <gyee@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-msoffcrypto-tool
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,26 +18,25 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-msoffcrypto-tool
|
||||
Version: 4.10.2
|
||||
Version: 5.4.2
|
||||
Release: 0
|
||||
Summary: Library for decrypting MS Office files
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/nolze/msoffcrypto-tool
|
||||
Source: https://files.pythonhosted.org/packages/source/m/msoffcrypto-tool/msoffcrypto-tool-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
Source: https://github.com/nolze/msoffcrypto-tool/archive/v%{version}.tar.gz#/msoffcrypto_tool-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-cryptography >= 2.3
|
||||
Requires: python-olefile >= 0.45
|
||||
Requires: python-setuptools
|
||||
Requires: python-cryptography >= 39.0
|
||||
Requires: python-olefile >= 0.46
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module cryptography >= 2.3}
|
||||
BuildRequires: %{python_module olefile >= 0.45}
|
||||
BuildRequires: %{python_module cryptography >= 39.0}
|
||||
BuildRequires: %{python_module olefile >= 0.46}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -47,21 +46,23 @@ A Python tool and library for decrypting MS Office
|
||||
files with passwords or other keys.
|
||||
|
||||
%prep
|
||||
%setup -q -n msoffcrypto-tool-%{version}
|
||||
# Delete empty file as of v4.10.0
|
||||
wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs rm
|
||||
%autosetup -p1 -n msoffcrypto-tool-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/msoffcrypto-tool
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# pytest creates an illegitimate doctest case for __main__ which then fails
|
||||
%pytest --doctest-modules -k 'not __main__'
|
||||
%{python_expand #
|
||||
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
sed -i "s/python\([0-9]\.[0-9]*\)\?/python%{$python_bin_suffix}/" tests/test_cli.sh
|
||||
$python -m pytest --doctest-modules -k 'not __main__'
|
||||
}
|
||||
|
||||
%post
|
||||
%python_install_alternative msoffcrypto-tool
|
||||
@@ -71,8 +72,10 @@ wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%doc %{python_sitelib}/NOTICE.txt
|
||||
%license LICENSE.txt
|
||||
%python_alternative %{_bindir}/msoffcrypto-tool
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/msoffcrypto
|
||||
%{python_sitelib}/msoffcrypto_tool-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user