commit 9b63fd7118c852ae9ccc5e465aa25dd8b2e66c70acde5d564814e20c4739904c Author: Matej Cepl Date: Mon Sep 9 20:49:01 2024 +0000 Accepting request 1198988 from home:glaubitz:branches:devel:languages:python - Initial build * Version 0.0.1 OBS-URL: https://build.opensuse.org/request/show/1198988 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-oxmsg?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/python-python-oxmsg.changes b/python-python-oxmsg.changes new file mode 100644 index 0000000..893c0bc --- /dev/null +++ b/python-python-oxmsg.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Sep 5 12:45:17 UTC 2024 - John Paul Adrian Glaubitz + +- Initial build + * Version 0.0.1 diff --git a/python-python-oxmsg.spec b/python-python-oxmsg.spec new file mode 100644 index 0000000..e4d3f80 --- /dev/null +++ b/python-python-oxmsg.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-python-oxmsg +# +# 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-python-oxmsg +Version: 0.0.1 +Release: 0 +Summary: Parse Outlook MSG (.msg) files to extract email messages and attachments +License: MIT +URL: https://github.com/scanny/python-oxmsg +Source: %{url}/archive/v%{version}.tar.gz#/python_oxmsg-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 61.0.0} +# SECTION test requirements +BuildRequires: %{python_module click} +BuildRequires: %{python_module olefile} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing_extensions >= 4.9.0} +# /SECTION +BuildRequires: fdupes +Requires: python-click +Requires: python-olefile +Requires: python-typing_extensions >= 4.9.0 +Requires(post): update-alternatives +Requires(postun):update-alternatives +BuildArch: noarch +%python_subpackages + +%description +The target use case is extracting Outlook message text and accessing attachments. +There is no support for modifying messages or creating them from scratch. In +addition to message text, other message properties such as sent-date, etc. are +also accessible. + +%prep +%autosetup -p1 -n python-oxmsg-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/oxmsg +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative oxmsg + +%postun +%python_uninstall_alternative oxmsg + +%files %{python_files} +%python_alternative %{_bindir}/oxmsg +%{python_sitelib}/oxmsg +%{python_sitelib}/python_oxmsg-%{version}.dist-info + +%changelog diff --git a/python_oxmsg-0.0.1.tar.gz b/python_oxmsg-0.0.1.tar.gz new file mode 100644 index 0000000..f19d19a --- /dev/null +++ b/python_oxmsg-0.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe901af219dd262721311d58edf71e0d0db8829da543eae27d5ff96969d58d6c +size 7209535