17
0

4 Commits

2 changed files with 19 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
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>
- Enable sle15_python_module_pythons.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 16 15:25:25 UTC 2020 - John Vandenberg <jayvdb@gmail.com> Sun Aug 16 15:25:25 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-msoffcrypto-tool # spec file for package python-msoffcrypto-tool
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,21 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
Name: python-msoffcrypto-tool Name: python-msoffcrypto-tool
Version: 4.10.2 Version: 4.10.2
Release: 0 Release: 0
Summary: Library for decrypting MS Office files Summary: Library for decrypting MS Office files
License: MIT License: MIT
Group: Development/Languages/Python
URL: https://github.com/nolze/msoffcrypto-tool URL: https://github.com/nolze/msoffcrypto-tool
Source: https://files.pythonhosted.org/packages/source/m/msoffcrypto-tool/msoffcrypto-tool-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/m/msoffcrypto-tool/msoffcrypto-tool-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-cryptography >= 2.3 Requires: python-cryptography >= 2.3
Requires: python-olefile >= 0.45 Requires: python-olefile >= 0.45
Requires: python-setuptools
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
@@ -52,10 +52,10 @@ files with passwords or other keys.
wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs rm wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs rm
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/msoffcrypto-tool %python_clone -a %{buildroot}%{_bindir}/msoffcrypto-tool
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -73,6 +73,7 @@ wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs
%doc README.md %doc README.md
%license LICENSE.txt %license LICENSE.txt
%python_alternative %{_bindir}/msoffcrypto-tool %python_alternative %{_bindir}/msoffcrypto-tool
%{python_sitelib}/* %{python_sitelib}/msoffcrypto
%{python_sitelib}/msoffcrypto_tool-%{version}.dist-info
%changelog %changelog