Add missing dependency on junit OBS-URL: https://build.opensuse.org/request/show/1264596 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-james-mime4j?expand=0&rev=3
78 lines
2.5 KiB
RPMSpec
78 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package apache-james-mime4j
|
|
#
|
|
# 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
|
|
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)
|
|
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)
|
|
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
|
|
%{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
|