forked from pool/python-oletools
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 81076b7d8c | |||
| 8d413d47f8 | |||
| 145ffb54d0 | |||
| 42fb245202 | |||
| ddda8bdafa | |||
| ec193b5337 | |||
| bb03356415 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:67a796da4c4b8e2feb9a6b2495bef8798a3323a75512de4e5669d9dc9d1fae31
|
|
||||||
size 3382775
|
|
||||||
3
oletools-0.60.2.zip
Normal file
3
oletools-0.60.2.zip
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ad452099f4695ffd8855113f453348200d195ee9fa341a09e197d66ee7e0b2c3
|
||||||
|
size 3433750
|
||||||
@@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 18 04:04:55 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Use pyproject macros to build and install.
|
||||||
|
- Do not ship docs in the Python sitelib.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 25 14:03:35 UTC 2024 - Guang Yee <gyee@suse.com>
|
||||||
|
|
||||||
|
- Enable sle15_python_module_pythons.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 20 07:00:20 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
|
||||||
|
|
||||||
|
- update to version 0.60.2:
|
||||||
|
- fixed a bug in open_slk (issue #797, PR #769)
|
||||||
|
- fixed a bug due to new PROJECTCOMPATVERSION record in dir stream (PR #723, issues #700, #701, #725, #791, #808, #811, #833)
|
||||||
|
- oleobj: fixed SyntaxError with Python 3.12 (PR #855), SyntaxWarning (PR #774)
|
||||||
|
- rtfobj: fixed SyntaxError with Python 3.12 (PR #854)
|
||||||
|
- clsid: added CLSIDs for MSI, Zed
|
||||||
|
- ftguess: added MSI, PNG and OneNote formats
|
||||||
|
- pyxswf: fixed python 3.12 compatibility (PR #841, issue #813)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 2 13:58:18 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
|
Fri Feb 2 13:58:18 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
|
||||||
|
|
||||||
|
|||||||
@@ -16,14 +16,17 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-oletools
|
Name: python-oletools
|
||||||
Version: 0.60.1
|
Version: 0.60.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tools to analyze security characteristics of MS Office and OLE files
|
Summary: Tools to analyze security characteristics of MS Office and OLE files
|
||||||
License: BSD-2-Clause AND MIT
|
License: BSD-2-Clause AND MIT
|
||||||
URL: http://www.decalage.info/python/oletools
|
URL: https://github.com/decalage2/oletools
|
||||||
Source: https://files.pythonhosted.org/packages/source/o/oletools/oletools-%{version}.zip
|
Source: https://files.pythonhosted.org/packages/source/o/oletools/oletools-%{version}.zip
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module colorclass}
|
BuildRequires: %{python_module colorclass}
|
||||||
@@ -60,15 +63,17 @@ Python tools to analyze security characteristics of MS Office and OLE files (als
|
|||||||
%setup -q -n oletools-%{version}
|
%setup -q -n oletools-%{version}
|
||||||
find oletools -name "*.py" -exec sed -i '1{/\/bin\/env python/d;}' {} \+
|
find oletools -name "*.py" -exec sed -i '1{/\/bin\/env python/d;}' {} \+
|
||||||
find oletools -name "*.py" -exec sed -i 's/\r\n/\n/' {} \+
|
find oletools -name "*.py" -exec sed -i 's/\r\n/\n/' {} \+
|
||||||
|
# remove actually optional dependency from requires
|
||||||
|
sed -i '/.*pcodedmp>=/d' setup.py
|
||||||
dos2unix tests/olevba/test_basic.py oletools/olevba.py README.md
|
dos2unix tests/olevba/test_basic.py oletools/olevba.py README.md
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# remove actually optional dependency from requires
|
# Do not ship docs in sitelib
|
||||||
sed -i '1{/pcodedmp/d;}' %{buildroot}%{python_sitelib}/oletools-*.egg-info/requires.txt
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/oletools/doc
|
||||||
%python_clone -a %{buildroot}%{_bindir}/ezhexviewer
|
%python_clone -a %{buildroot}%{_bindir}/ezhexviewer
|
||||||
%python_clone -a %{buildroot}%{_bindir}/mraptor
|
%python_clone -a %{buildroot}%{_bindir}/mraptor
|
||||||
%python_clone -a %{buildroot}%{_bindir}/olebrowse
|
%python_clone -a %{buildroot}%{_bindir}/olebrowse
|
||||||
@@ -89,7 +94,6 @@ sed -i '1{/pcodedmp/d;}' %{buildroot}%{python_sitelib}/oletools-*.egg-info/requi
|
|||||||
%check
|
%check
|
||||||
# test_macros, test_empty_behaviour, test_rtf_behaviour, test_text_behaviour, test_xlm: reported at https://github.com/decalage2/oletools/issues/767
|
# test_macros, test_empty_behaviour, test_rtf_behaviour, test_text_behaviour, test_xlm: reported at https://github.com/decalage2/oletools/issues/767
|
||||||
%pytest -k 'not test_rough_doctype and not test_encrypted and not test_crypt_return and not test_all and not test_macros and not test_empty_behaviour and not test_rtf_behaviour and not test_text_behaviour and not test_xlm'
|
%pytest -k 'not test_rough_doctype and not test_encrypted and not test_crypt_return and not test_all and not test_macros and not test_empty_behaviour and not test_rtf_behaviour and not test_text_behaviour and not test_xlm'
|
||||||
#%%pyunittest
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative ezhexviewer mraptor olebrowse oledir oleid olemap olemeta oletimes olevba pyxswf rtfobj oleobj msodde olefile ftguess
|
%python_install_alternative ezhexviewer mraptor olebrowse oledir oleid olemap olemeta oletimes olevba pyxswf rtfobj oleobj msodde olefile ftguess
|
||||||
@@ -116,6 +120,6 @@ sed -i '1{/pcodedmp/d;}' %{buildroot}%{python_sitelib}/oletools-*.egg-info/requi
|
|||||||
%python_alternative %{_bindir}/olefile
|
%python_alternative %{_bindir}/olefile
|
||||||
%python_alternative %{_bindir}/ftguess
|
%python_alternative %{_bindir}/ftguess
|
||||||
%{python_sitelib}/oletools/
|
%{python_sitelib}/oletools/
|
||||||
%{python_sitelib}/oletools-%{version}-py*.egg-info
|
%{python_sitelib}/oletools-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user