commit 83eafcd0976c68bd3fdbe7be749dbf33a8a2ec841800cad345cf73694050c3de Author: Todd R Date: Wed Apr 12 17:52:51 2017 +0000 Accepting request 487678 from home:TheBlackCat:branches:devel:languages:python Needed by latest version of python-Pillow, which is already in openSUSE:Factory. OBS-URL: https://build.opensuse.org/request/show/487678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-olefile?expand=0&rev=1 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.44.zip b/olefile-0.44.zip new file mode 100644 index 0000000..f6a8aa1 --- /dev/null +++ b/olefile-0.44.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61f2ca0cd0aa77279eb943c07f607438edf374096b66332fae1ee64a6f0f73ad +size 74147 diff --git a/python-olefile.changes b/python-olefile.changes new file mode 100644 index 0000000..befe906 --- /dev/null +++ b/python-olefile.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +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..cfab45f --- /dev/null +++ b/python-olefile.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-olefile +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-olefile +Version: 0.44 +Release: 0 +Summary: Read and write Microsoft OLE2 files +License: BSD-2-Clause and HPND +Group: Development/Languages/Python +Url: https://www.decalage.info/python/olefileio +Source: https://files.pythonhosted.org/packages/source/o/olefile/olefile-%{version}.zip +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: unzip +BuildRoot: %{_tmppath}/%{name}-%{version}-build +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$//' doc/License.rst + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.md doc/License.rst +%{python_sitelib}/* + +%changelog