Package jakarta-mail: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | Group: Development/Java BuildRequires: /proc rpm-build-java BuildRequires: jpackage-default # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: jakarta-mail Version: 1.6.7 Release: alt1_3jpp11 Summary: Jakarta Mail API License: EPL-2.0 or GPLv2 with exceptions URL: https://github.com/eclipse-ee4j/mail BuildArch: noarch Source0: https://github.com/eclipse-ee4j/mail/archive/%{version}/mail-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(com.sun.activation:jakarta.activation) BuildRequires: mvn(junit:junit) 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) # javadoc package is currently not built Obsoletes: javamail-javadoc < 1.5.2-16 Source44: import.info %description The Jakarta Mail API provides a platform-independent and protocol-independent framework to build mail and messaging applications. %prep %setup -q -n mail-%{version} # remove unnecessary dependency on parent POM %pom_remove_parent # disable unnecessary maven plugins %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :osgiversion-maven-plugin %pom_remove_plugin :directory-maven-plugin # disable android-specific code %pom_disable_module android # remove profiles that only add unnecessary things %pom_xpath_remove "pom:project/pom:profiles" # inject OSGi bundle versions manually instead of using osgiversion-maven-plugin find -name pom.xml -exec sed -i "s/\${mail\.osgiversion}/%{version}/g" {} + # -Werror is considered harmful sed -i "/-Werror/d" mail/pom.xml # add aliases for old maven artifact coordinates %mvn_alias com.sun.mail:mailapi \ javax.mail:mailapi %mvn_alias com.sun.mail:jakarta.mail \ com.sun.mail:javax.mail \ javax.mail:mail \ org.eclipse.jetty.orbit:javax.mail.glassfish %mvn_alias jakarta.mail:jakarta.mail-api \ javax.mail:javax.mail-api # add symlinks for compatibilty with old classpaths %mvn_file com.sun.mail:jakarta.mail \ %{name}/jakarta.mail \ javamail/mail \ javamail/javax.mail \ javax.mail/javax.mail %build # skip javadoc build due to https://github.com/fedora-java/xmvn/issues/58 # # XXX 2022-01-05 disable tests for now due to issue with DNS resolution caused by glibc change. # Tests fail with: java.net.UnknownHostException: myhostname: Temporary failure in name resolution # Simple reproducer: echo 'java.net.InetAddress.getLocalHost();' | jshell -s # Until glibc-2.34.9000-27.fc36 jakarta-mail tests pass. # Starting with glibc-2.34.9000-28.fc36 jakarta-mail tests fail. # Related bugs: # https://bugzilla.redhat.com/show_bug.cgi?id=2023741 # https://bugzilla.redhat.com/show_bug.cgi?id=2033020 # # define the variable ${main.basedir} to avoid using directory-maven-plugin %mvn_build -j -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Dmain.basedir=${PWD} %install %mvn_install %files -f .mfiles %doc --no-dereference LICENSE.md NOTICE.md %doc README.md %changelog * Mon Mar 20 2023 Igor Vlasenko <viy@altlinux.org> 1.6.7-alt1_3jpp11 - new version * Fri Jul 01 2022 Igor Vlasenko <viy@altlinux.org> 1.6.5-alt1_8jpp11 - update * Wed Aug 04 2021 Igor Vlasenko <viy@altlinux.org> 1.6.5-alt1_4jpp11 - update * Fri Jun 04 2021 Igor Vlasenko <viy@altlinux.org> 1.6.5-alt1_2jpp11 - new version |