File python-libratom.spec of Package python-libratom
#
# spec file for package python-libratom
#
# Copyright (c) 2026 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-libratom
Version: 0.7.1
Release: 0
Summary: Python library and supporting utilities to parse and process PST and mbox email sources
License: MIT
URL: https://github.com/libratom/libratom
Source: libratom-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-sugar}
BuildRequires: %{python_module pytest-click}
BuildRequires: %{python_module requests}
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpff)
BuildRequires: fdupes
BuildRequires: %{python_module click}
BuildRequires: %{python_module click-log}
BuildRequires: %{python_module treelib}
BuildRequires: %{python_module humanfriendly}
BuildRequires: %{python_module libpff}
BuildRequires: %{python_module spacy}
BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module enlighten}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module tabulate}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module striprtf}
Requires: python3-click
Requires: python3-click-log
Requires: python3-requests
Requires: python3-treelib
Requires: python3-humanfriendly
Requires: python3-libpff
Requires: python3-spacy
Requires: python3-SQLAlchemy
Requires: python3-enlighten
Requires: python3-psutil
Requires: python3-tabulate
Requires: python3-packaging
Requires: python3-jsonschema
Requires: python3-beautifulsoup4
Requires: python3-striprtf
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Gemini hat gesagt
libratom is a Python library designed for digital forensics and preservation,
specifically for the analysis and triage of large-scale email collections.
It provides a set of tools to process PST and mbox files, extract entities
using natural language processing (NLP), and export data for further
investigation. The library is part of the Review, Analysis, and Triage of
Electronic Mail (RATOM) project, focusing on scalable workflows for archivists
and researchers.
%prep
%autosetup -p1 -n libratom-%{version}
%build
%pyproject_wheel
%check
%pytest
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ratom
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative ratom
%postun
%python_uninstall_alternative ratom
%files %{python_files}
%python_alternative %{_bindir}/ratom
%{python_sitelib}/libratom
%{python_sitelib}/libratom-%{version}.dist-info
%changelog