14
0

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
This commit is contained in:
2024-09-09 20:49:01 +00:00
committed by Git OBS Bridge
commit 9b63fd7118
5 changed files with 107 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Sep 5 12:45:17 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
* Version 0.0.1

75
python-python-oxmsg.spec Normal file
View File

@@ -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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fe901af219dd262721311d58edf71e0d0db8829da543eae27d5ff96969d58d6c
size 7209535