commit 994107f6c034c9fa51d8e212414a3cfa82eb3087b25772f8bee4c08ef0473b11 Author: Dirk Mueller Date: Tue Sep 3 09:01:23 2024 +0000 Accepting request 1198418 from home:glaubitz:branches:devel:languages:python - Initial build * Version 0.49.0 OBS-URL: https://build.opensuse.org/request/show/1198418 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extract-msg?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/extract_msg-0.49.0.tar.gz b/extract_msg-0.49.0.tar.gz new file mode 100644 index 0000000..ebae6a3 --- /dev/null +++ b/extract_msg-0.49.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40cdb019484bda654bb220364ade3bd4a141500232980373e5f1ee5d622d6043 +size 6981884 diff --git a/python-extract-msg.changes b/python-extract-msg.changes new file mode 100644 index 0000000..8dd1186 --- /dev/null +++ b/python-extract-msg.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Sep 3 07:16:42 UTC 2024 - John Paul Adrian Glaubitz + +- Initial build + * Version 0.49.0 diff --git a/python-extract-msg.spec b/python-extract-msg.spec new file mode 100644 index 0000000..c4bfa24 --- /dev/null +++ b/python-extract-msg.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-extract-msg +# +# 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/ +# + + +Name: python-extract-msg +Version: 0.49.0 +Release: 0 +Summary: Extracts emails and attachments saved in Microsoft Outlook's msg files +License: GPL-3.0 +URL: https://github.com/TeamMsgExtractor/msg-extractor +Source: %{url}/archive/v%{version}.tar.gz#/extract_msg-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module beautifulsoup4 >= 4.11.1} +BuildRequires: %{python_module compressed_rtf >= 1.0.6} +BuildRequires: %{python_module ebcdic >= 1.1.1} +BuildRequires: %{python_module olefile >= 0.47} +BuildRequires: %{python_module red-black-tree-mod >= 1.20} +BuildRequires: %{python_module RTFDE >= 0.1.1} +BuildRequires: %{python_module tzlocal >= 4.2} +# /SECTION +BuildRequires: fdupes +Requires: python-beautifulsoup4 >= 4.11.1 +Requires: python-compressed_rtf >= 1.0.6 +Requires: python-ebcdic >= 1.1.1 +Requires: python-olefile >= 0.47 +Requires: python-red-black-tree-mod >= 1.20 +Requires: python-RTFDE >= 0.1.1 +Requires: python-tzlocal >= 4.2 +Requires(post): update-alternatives +Requires(postun):update-alternatives +BuildArch: noarch +%python_subpackages + +%description +The python package extract-msg automates the extraction of key email +data (from, to, cc, date, subject, body) and the email’s attachments. + +%prep +%autosetup -p1 -n msg-extractor-%{version} +sed -i '/\#\!\/usr\/bin\/env python3/d' extract_msg/__init__.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/extract_msg +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest tests.py + +%post +%python_install_alternative extract_msg + +%postun +%python_uninstall_alternative extract_msg + +%files %{python_files} +%python_alternative %{_bindir}/extract_msg +%{python_sitelib}/extract_msg +%{python_sitelib}/extract_msg-%{version}.dist-info + +%changelog