commit f602447554ba7e3ff41d5e14962e680a1faf45532acdf8b485c3593c0a9d3fc7 Author: Markéta Machová Date: Wed Sep 4 07:25:48 2024 +0000 - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-olefile?expand=0&rev=20 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/olefile-0.46.zip b/olefile-0.46.zip new file mode 100644 index 0000000..1bd968c --- /dev/null +++ b/olefile-0.46.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:133b031eaf8fd2c9399b78b8bc5b8fcbe4c31e85295749bb17a87cba8f3c3964 +size 112226 diff --git a/olefile-0.47.zip b/olefile-0.47.zip new file mode 100644 index 0000000..b47f067 --- /dev/null +++ b/olefile-0.47.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:599383381a0bf3dfbd932ca0ca6515acd174ed48870cbf7fee123d698c192c1c +size 112240 diff --git a/python-olefile.changes b/python-olefile.changes new file mode 100644 index 0000000..8cedaf8 --- /dev/null +++ b/python-olefile.changes @@ -0,0 +1,97 @@ +------------------------------------------------------------------- +Tue Sep 3 06:42:23 UTC 2024 - John Paul Adrian Glaubitz + +- 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 + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:42:46 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Thu May 27 10:02:58 UTC 2021 - Matej Cepl + +- Fix README.rst EOL issues as well. + +------------------------------------------------------------------- +Wed May 26 09:16:10 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Mon Oct 14 14:01:01 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Thu Apr 11 18:36:34 UTC 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 00:13:17 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Tue Dec 4 12:51:00 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Aug 7 15:04:40 UTC 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 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Don't provide python2-OleFileIO_PL, singlespec packages should + use correct name. + +------------------------------------------------------------------- +Thu Apr 27 21:03:01 UTC 2017 - toddrme2178@gmail.com + +- Provide/obsolete python(2|3)-OleFileIO_PL + +------------------------------------------------------------------- +Wed Apr 12 17:47:15 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- +Mon Feb 6 17:24:34 UTC 2017 - toddrme2178@gmail.com + +- Fix license + +------------------------------------------------------------------- +Sat Jan 7 23:11:33 UTC 2017 - arun@gmx.de + +- initial version + diff --git a/python-olefile.spec b/python-olefile.spec new file mode 100644 index 0000000..51c4c21 --- /dev/null +++ b/python-olefile.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-olefile +# +# Copyright (c) 2024 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-olefile +Version: 0.47 +Release: 0 +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 pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildArch: noarch +%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$//' README.md + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v + +%files %{python_files} +%doc CONTRIBUTORS.txt README.md +%license LICENSE.txt +%{python_sitelib}/olefile +%{python_sitelib}/olefile-*.dist-info + +%changelog