Sync from SUSE:SLFO:Main python-olefile revision e0b7917e4e05d78166c99a0e350681a3
This commit is contained in:
parent
80afcf5dce
commit
2e2cc5a89d
BIN
olefile-0.46.zip
(Stored with Git LFS)
BIN
olefile-0.46.zip
(Stored with Git LFS)
Binary file not shown.
BIN
olefile-0.47.zip
(Stored with Git LFS)
Normal file
BIN
olefile-0.47.zip
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 3 06:42:23 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.47
|
||||||
|
* Now distributed as wheel package
|
||||||
|
* Added VT_VECTOR support for properties
|
||||||
|
* Added get_userdefined_properties
|
||||||
|
* Fixed bugs in isOleFile and write_sect
|
||||||
|
* Improved file closure
|
||||||
|
- Drop README.html from %doc section
|
||||||
|
- Drop README.rst from %doc section
|
||||||
|
- Drop support for older Python versions
|
||||||
|
- Limit Python files matched in %files section
|
||||||
|
- Remove obsolete sed invocation to fix line endings
|
||||||
|
- Switch build system from setuptools to pyproject.toml
|
||||||
|
* Add python-pip and python-wheel to BuildRequires
|
||||||
|
* Replace %python_build with %pyproject_wheel
|
||||||
|
* Replace %python_install with %pyproject_install
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 21 12:28:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 21 12:28:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-olefile
|
# spec file for package python-olefile
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 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,25 +16,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define oldpython python
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-olefile
|
Name: python-olefile
|
||||||
Version: 0.46
|
Version: 0.47
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python package to read and write Microsoft OLE2 files
|
Summary: Python package to read and write Microsoft OLE2 files
|
||||||
License: BSD-2-Clause AND HPND
|
License: BSD-2-Clause AND HPND
|
||||||
URL: https://github.com/decalage2/olefile
|
URL: https://github.com/decalage2/olefile
|
||||||
Source: https://files.pythonhosted.org/packages/source/o/olefile/olefile-%{version}.zip
|
Source: https://files.pythonhosted.org/packages/source/o/olefile/olefile-%{version}.zip
|
||||||
|
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
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
|
||||||
Provides: %{oldpython}-OleFileIO_PL = %{version}
|
|
||||||
Obsoletes: %{oldpython}-OleFileIO_PL <= 0.26
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,21 +44,22 @@ formats, McAfee antivirus quarantine files, etc.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n olefile-%{version}
|
%setup -q -n olefile-%{version}
|
||||||
# Fix wrong-file-end-of-line-encoding
|
# Fix wrong-file-end-of-line-encoding
|
||||||
sed -i 's/\r$//' doc/License.rst README.rst
|
sed -i 's/\r$//' README.md
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest discover -v
|
%pyunittest discover -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CONTRIBUTORS.txt README.md README.rst README.html
|
%doc CONTRIBUTORS.txt README.md
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/olefile
|
||||||
|
%{python_sitelib}/olefile-*.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user