# # spec file for package python-olefile # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define oldpython python Name: python-olefile Version: 0.46 Release: 3.1 Summary: Python package to read and write Microsoft OLE2 files License: BSD-2-Clause AND HPND URL: https://github.com/decalage2/olefile Source: https://files.pythonhosted.org/packages/source/o/olefile/olefile-%{version}.zip BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip BuildArch: noarch %ifpython2 Provides: %{oldpython}-OleFileIO_PL = %{version} Obsoletes: %{oldpython}-OleFileIO_PL <= 0.26 %endif %python_subpackages %description Olefile is a Python package to parse, read and write Microsoft OLE2 files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, Image Composer and FlashPix files, Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files, etc. %prep %setup -q -n olefile-%{version} # Fix wrong-file-end-of-line-encoding sed -i 's/\r$//' doc/License.rst README.rst %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check #%pyunittest discover -v %python_exec -munittest discover -v %files %{python_files} %doc CONTRIBUTORS.txt README.md README.rst README.html %license LICENSE.txt %{python_sitelib}/* %changelog * Thu May 27 2021 Matej Cepl - Fix README.rst EOL issues as well. * Wed May 26 2021 pgajdos@suse.com - %%check: use %%pyunittest rpm macro * Mon Oct 14 2019 Matej Cepl - Replace %%fdupes -s with plain %%fdupes; hardlinks are better. * Thu Apr 11 2019 pgajdos@suse.com - version update to 0.46 OleFileIO can now be used as a context manager (with...as), to close the file automatically Improved handling of malformed files, fixed several bugs. * Wed Dec 19 2018 Jan Engelhardt - Use noun phrase in summary. * Tue Dec 4 2018 Matej Cepl - Remove superfluous devel dependency for noarch package * Tue Aug 7 2018 toddrme2178@gmail.com - Update to 0.45.1 * overwrite streams of any size * improved handling of malformed files * fixed several bugs * end of support for Python 2.6 and 3.3. * Sat May 6 2017 toddrme2178@gmail.com - Don't provide python2-OleFileIO_PL, singlespec packages should use correct name. * Thu Apr 27 2017 toddrme2178@gmail.com - Provide/obsolete python(2|3)-OleFileIO_PL * Wed Apr 12 2017 toddrme2178@gmail.com - Implement single-spec version. * Mon Feb 6 2017 toddrme2178@gmail.com - Fix license * Sat Jan 7 2017 arun@gmx.de - initial version