From fd3d680a225680215fe83fd8826c5a1c9884a17e Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 10 Aug 2023 13:01:44 +0200 Subject: [PATCH] Implement bootstrap mode --- jakarta-mail.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jakarta-mail.spec b/jakarta-mail.spec index 13970c6..ff5b3fb 100644 --- a/jakarta-mail.spec +++ b/jakarta-mail.spec @@ -1,3 +1,5 @@ +%bcond_with bootstrap + Name: jakarta-mail Version: 1.6.7 Release: 5%{?dist} @@ -9,6 +11,9 @@ ExclusiveArch: %{java_arches} noarch Source0: https://github.com/eclipse-ee4j/mail/archive/%{version}/mail-%{version}.tar.gz +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: maven-local BuildRequires: mvn(com.sun.activation:jakarta.activation) BuildRequires: mvn(junit:junit) @@ -16,6 +21,7 @@ BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +%endif # javadoc package is currently not built Obsoletes: javamail-javadoc < 1.5.2-16