First packaging
Build and provide rpm of python3-mail-parser-rpm / rpmbuild (release) Failing after 19s

This commit is contained in:
2025-03-30 23:44:45 +02:00
parent 0031469473
commit 51358470cb
2 changed files with 73 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
archful = false
archive_name = "mail_parser-4.1.2.tar.gz"
extras = [
"dev",
"test",
]
license_files_present = true
pypi_name = "mail-parser"
pypi_version = "4.1.2"
python_name = "python-mail-parser"
source = "PyPI"
summary = "Improved wrapper for email standard library"
url = "https://github.com/SpamScope/mail-parser"
+60
View File
@@ -0,0 +1,60 @@
Name: mail-parser
Version: 4.1.2
Release: %autorelease
Summary: Improved wrapper for email standard library
# No license information obtained, it's up to the packager to fill it in
License: Apache-2.0
URL: https://github.com/SpamScope/mail-parser
Source: %{pypi_source mail_parser}
BuildArch: noarch
BuildRequires: python3-devel pyproject-srpm-macros python3-build python3-pytest-cov
Requires: python3-mail-parser
%global __requires_exclude ^python3\\.13dist\\(ipaddress\\)$
%global _description %{expand:
mail-parser is not only a wrapper for email Python Standard Library.
It gives you an easy way to pass from raw mail to Python object that
you can use in your code. It's the key module of SpamScope.}
%description %_description
%package -n python3-mail-parser
Summary: %{summary}
Requires: python3-libs
%description -n python3-mail-parser %_description
%dnl %pyproject_extras_subpkg -n python3-mail-parser dev,test
%prep
%autosetup -p1 -n mail_parser-%{version}
%generate_buildrequires
%pyproject_buildrequires -R
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l mailparser
%check
%pyproject_check_import
%files
%{_bindir}/mail-parser
%files -n python3-mail-parser -f %{pyproject_files}
%changelog
%autochangelog