Files
apache-james-mime4j/apache-james-mime4j.spec

78 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package apache-james-mime4j
#
Accepting request 1172224 from home:urbic:branches:Java:packages - Upgrade to v0.8.11 + MIME4J-326 SILENT monitor for header decoding - Update to v0.8.10 CVE-2024-21742: Mime4J DOM header injection * Bug fixes: + Prevent header injection with MIME4J DOM + MIME4J-325 DateTimeParser should throw ParseException if value can't be parsed (#88) + MIME4J-324 Handle URL parsing exception in LenientContentDispositionField * Performance: + ContentTypeFieldLenientImpl: clear is not needed (#86) + MIME4J-322 Use ArrayDeque in MimeTokenStream + MIME4J-324 Avoid an extra copy of ContentDispositionFieldLenientImpl parameters - Update to v0.8.9 - 2022-12-30 * Bug fixes: + MIME4J-322 Rely on Files.createTempFile (#82) * Enhancements: + MIME4J-321 SingleBody should return its size (#80) - Update to v0.8.8 - 2022-10-28 * Upgrades: + Bump log4j-core from 2.16.0 to 2.19.0 * Bug fixes: + MIME4J-320 Make DateTimeParser case-insensitive for day of week and month + MIME4J-316 Parts missing in case of a specific combination of boundaries + MIME4J-313 -- correctly allow for builds with JDK > 8 but target/release of 8. (#67) * Enhancements: + MIME4J-315 Add a convenient method to parse DateTime + MIME4J-315 Add a convenient method to transform DateTime into a java date * Performance: + MIME4J-317 Improve message writing (JMH + optimized copy) + MIME4J-318 Add a TextBody::getCharset + MIME4J-318 Buffer recycling + MIME4J-318 Fasten ContentDispositionFieldLenientImpl + MIME4J-318 DefaultBodyDescriptorBuilder should avoid copying all headers + MIME4J-318 Fields: rely on lenient parsers - Add build dependency on mvn(org.openjdk.jmh:jmh-core), mvn(org.openjdk.jmh:jmh-generator-annprocess), mvn(org.apache.felix:maven-bundle-plugin) - Reproducible builds: use SOURCE_DATE_EPOCH for timestamp OBS-URL: https://build.opensuse.org/request/show/1172224 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-james-mime4j?expand=0&rev=2
2024-05-06 16:37:48 +00:00
# Copyright (c) 2024 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: apache-james-mime4j
Accepting request 1172224 from home:urbic:branches:Java:packages - Upgrade to v0.8.11 + MIME4J-326 SILENT monitor for header decoding - Update to v0.8.10 CVE-2024-21742: Mime4J DOM header injection * Bug fixes: + Prevent header injection with MIME4J DOM + MIME4J-325 DateTimeParser should throw ParseException if value can't be parsed (#88) + MIME4J-324 Handle URL parsing exception in LenientContentDispositionField * Performance: + ContentTypeFieldLenientImpl: clear is not needed (#86) + MIME4J-322 Use ArrayDeque in MimeTokenStream + MIME4J-324 Avoid an extra copy of ContentDispositionFieldLenientImpl parameters - Update to v0.8.9 - 2022-12-30 * Bug fixes: + MIME4J-322 Rely on Files.createTempFile (#82) * Enhancements: + MIME4J-321 SingleBody should return its size (#80) - Update to v0.8.8 - 2022-10-28 * Upgrades: + Bump log4j-core from 2.16.0 to 2.19.0 * Bug fixes: + MIME4J-320 Make DateTimeParser case-insensitive for day of week and month + MIME4J-316 Parts missing in case of a specific combination of boundaries + MIME4J-313 -- correctly allow for builds with JDK > 8 but target/release of 8. (#67) * Enhancements: + MIME4J-315 Add a convenient method to parse DateTime + MIME4J-315 Add a convenient method to transform DateTime into a java date * Performance: + MIME4J-317 Improve message writing (JMH + optimized copy) + MIME4J-318 Add a TextBody::getCharset + MIME4J-318 Buffer recycling + MIME4J-318 Fasten ContentDispositionFieldLenientImpl + MIME4J-318 DefaultBodyDescriptorBuilder should avoid copying all headers + MIME4J-318 Fields: rely on lenient parsers - Add build dependency on mvn(org.openjdk.jmh:jmh-core), mvn(org.openjdk.jmh:jmh-generator-annprocess), mvn(org.apache.felix:maven-bundle-plugin) - Reproducible builds: use SOURCE_DATE_EPOCH for timestamp OBS-URL: https://build.opensuse.org/request/show/1172224 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-james-mime4j?expand=0&rev=2
2024-05-06 16:37:48 +00:00
Version: 0.8.11
Release: 0
Summary: A parser for e-mail message streams in plain rfc822 and MIME format
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/apache/james-mime4j/
Source0: %{url}/archive/refs/tags/apache-mime4j-project-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
Accepting request 1172224 from home:urbic:branches:Java:packages - Upgrade to v0.8.11 + MIME4J-326 SILENT monitor for header decoding - Update to v0.8.10 CVE-2024-21742: Mime4J DOM header injection * Bug fixes: + Prevent header injection with MIME4J DOM + MIME4J-325 DateTimeParser should throw ParseException if value can't be parsed (#88) + MIME4J-324 Handle URL parsing exception in LenientContentDispositionField * Performance: + ContentTypeFieldLenientImpl: clear is not needed (#86) + MIME4J-322 Use ArrayDeque in MimeTokenStream + MIME4J-324 Avoid an extra copy of ContentDispositionFieldLenientImpl parameters - Update to v0.8.9 - 2022-12-30 * Bug fixes: + MIME4J-322 Rely on Files.createTempFile (#82) * Enhancements: + MIME4J-321 SingleBody should return its size (#80) - Update to v0.8.8 - 2022-10-28 * Upgrades: + Bump log4j-core from 2.16.0 to 2.19.0 * Bug fixes: + MIME4J-320 Make DateTimeParser case-insensitive for day of week and month + MIME4J-316 Parts missing in case of a specific combination of boundaries + MIME4J-313 -- correctly allow for builds with JDK > 8 but target/release of 8. (#67) * Enhancements: + MIME4J-315 Add a convenient method to parse DateTime + MIME4J-315 Add a convenient method to transform DateTime into a java date * Performance: + MIME4J-317 Improve message writing (JMH + optimized copy) + MIME4J-318 Add a TextBody::getCharset + MIME4J-318 Buffer recycling + MIME4J-318 Fasten ContentDispositionFieldLenientImpl + MIME4J-318 DefaultBodyDescriptorBuilder should avoid copying all headers + MIME4J-318 Fields: rely on lenient parsers - Add build dependency on mvn(org.openjdk.jmh:jmh-core), mvn(org.openjdk.jmh:jmh-generator-annprocess), mvn(org.apache.felix:maven-bundle-plugin) - Reproducible builds: use SOURCE_DATE_EPOCH for timestamp OBS-URL: https://build.opensuse.org/request/show/1172224 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-james-mime4j?expand=0&rev=2
2024-05-06 16:37:48 +00:00
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
Accepting request 1172224 from home:urbic:branches:Java:packages - Upgrade to v0.8.11 + MIME4J-326 SILENT monitor for header decoding - Update to v0.8.10 CVE-2024-21742: Mime4J DOM header injection * Bug fixes: + Prevent header injection with MIME4J DOM + MIME4J-325 DateTimeParser should throw ParseException if value can't be parsed (#88) + MIME4J-324 Handle URL parsing exception in LenientContentDispositionField * Performance: + ContentTypeFieldLenientImpl: clear is not needed (#86) + MIME4J-322 Use ArrayDeque in MimeTokenStream + MIME4J-324 Avoid an extra copy of ContentDispositionFieldLenientImpl parameters - Update to v0.8.9 - 2022-12-30 * Bug fixes: + MIME4J-322 Rely on Files.createTempFile (#82) * Enhancements: + MIME4J-321 SingleBody should return its size (#80) - Update to v0.8.8 - 2022-10-28 * Upgrades: + Bump log4j-core from 2.16.0 to 2.19.0 * Bug fixes: + MIME4J-320 Make DateTimeParser case-insensitive for day of week and month + MIME4J-316 Parts missing in case of a specific combination of boundaries + MIME4J-313 -- correctly allow for builds with JDK > 8 but target/release of 8. (#67) * Enhancements: + MIME4J-315 Add a convenient method to parse DateTime + MIME4J-315 Add a convenient method to transform DateTime into a java date * Performance: + MIME4J-317 Improve message writing (JMH + optimized copy) + MIME4J-318 Add a TextBody::getCharset + MIME4J-318 Buffer recycling + MIME4J-318 Fasten ContentDispositionFieldLenientImpl + MIME4J-318 DefaultBodyDescriptorBuilder should avoid copying all headers + MIME4J-318 Fields: rely on lenient parsers - Add build dependency on mvn(org.openjdk.jmh:jmh-core), mvn(org.openjdk.jmh:jmh-generator-annprocess), mvn(org.apache.felix:maven-bundle-plugin) - Reproducible builds: use SOURCE_DATE_EPOCH for timestamp OBS-URL: https://build.opensuse.org/request/show/1172224 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-james-mime4j?expand=0&rev=2
2024-05-06 16:37:48 +00:00
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
BuildArch: noarch
%description
Mime4j can be used to parse e-mail message streams in plain rfc822 and MIME
format and to build a tree representation of an e-mail message.
The parser uses a callback mechanism to report parsing events such as the start
of an entity header, the start of a body. The parser has been designed to be
extremely tolerant against messages violating the standards.
Mime4j can also be used to build a tree representation of an e-mail message via
the DOM API.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n james-mime4j-apache-mime4j-project-%{version}
%{mvn_file} ':apache-mime4j-{*}' %{name}/@1
%build
Accepting request 1172224 from home:urbic:branches:Java:packages - Upgrade to v0.8.11 + MIME4J-326 SILENT monitor for header decoding - Update to v0.8.10 CVE-2024-21742: Mime4J DOM header injection * Bug fixes: + Prevent header injection with MIME4J DOM + MIME4J-325 DateTimeParser should throw ParseException if value can't be parsed (#88) + MIME4J-324 Handle URL parsing exception in LenientContentDispositionField * Performance: + ContentTypeFieldLenientImpl: clear is not needed (#86) + MIME4J-322 Use ArrayDeque in MimeTokenStream + MIME4J-324 Avoid an extra copy of ContentDispositionFieldLenientImpl parameters - Update to v0.8.9 - 2022-12-30 * Bug fixes: + MIME4J-322 Rely on Files.createTempFile (#82) * Enhancements: + MIME4J-321 SingleBody should return its size (#80) - Update to v0.8.8 - 2022-10-28 * Upgrades: + Bump log4j-core from 2.16.0 to 2.19.0 * Bug fixes: + MIME4J-320 Make DateTimeParser case-insensitive for day of week and month + MIME4J-316 Parts missing in case of a specific combination of boundaries + MIME4J-313 -- correctly allow for builds with JDK > 8 but target/release of 8. (#67) * Enhancements: + MIME4J-315 Add a convenient method to parse DateTime + MIME4J-315 Add a convenient method to transform DateTime into a java date * Performance: + MIME4J-317 Improve message writing (JMH + optimized copy) + MIME4J-318 Add a TextBody::getCharset + MIME4J-318 Buffer recycling + MIME4J-318 Fasten ContentDispositionFieldLenientImpl + MIME4J-318 DefaultBodyDescriptorBuilder should avoid copying all headers + MIME4J-318 Fields: rely on lenient parsers - Add build dependency on mvn(org.openjdk.jmh:jmh-core), mvn(org.openjdk.jmh:jmh-generator-annprocess), mvn(org.apache.felix:maven-bundle-plugin) - Reproducible builds: use SOURCE_DATE_EPOCH for timestamp OBS-URL: https://build.opensuse.org/request/show/1172224 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-james-mime4j?expand=0&rev=2
2024-05-06 16:37:48 +00:00
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE NOTICE
%doc CHANGELOG.md README.adoc
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog