Files
demus 51358470cb
Build and provide rpm of python3-mail-parser-rpm / rpmbuild (release) Failing after 19s
First packaging
2025-03-30 23:44:45 +02:00

60 lines
1.3 KiB
RPMSpec

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