# # spec file for package jackson-datatypes-misc # # 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: jackson-datatypes-misc Version: 2.17.3 Release: 0 Summary: Common Jackson datatype modules not part of other multi-project repos License: Apache-2.0 Group: Development/Libraries/Java URL: https://github.com/FasterXML/%{name} Source0: %{url}/archive/refs/tags/%{name}-parent-%{version}.tar.gz BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) BuildRequires: mvn(com.fasterxml.jackson:jackson-base:pom:) BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer) BuildRequires: mvn(jakarta.json:jakarta.json-api) BuildRequires: mvn(jakarta.mail:jakarta.mail-api) BuildRequires: mvn(javax.json:javax.json-api) BuildRequires: mvn(org.joda:joda-money) BuildRequires: mvn(org.json:json) BuildRequires: mvn(org.moditect:moditect-maven-plugin) BuildArch: noarch %description This is a multi-module umbrella project for various Jackson datatype modules to support 3rd party libraries. Currently included are: • jackson-datatype-joda-money for Joda-Money datatypes • JSR-353/JSON-P: 2 variants (starting with Jackson 2.12.2) ‣ jackson-datatype-jsr353 for older "javax.json" JSR-353 (aka JSON-P) datatypes (package javax.json) ‣ jackson-datatype-jakarta-jsonp for newer "Jakarta" JSON-P datatypes (package jakarta.json) • jackson-datatype-json-org for (org.json) JSON model datatypes (included in Android SDK, as well as stand-alone Java library) • jackson-datatype-jakarta-mail for Jakarta Mail (ex-Java Mail) (starting with Jackson 2.13) ‣ Currently (2.13) just type jakarta.mail.internet.InternetAddress %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %autosetup -n %{name}-%{name}-parent-%{version} %pom_remove_plugin de.jjohannes:gradle-module-metadata-maven-plugin %pom_change_dep com.sun.mail:jakarta.mail jakarta.mail:jakarta.mail-api jakarta-mail %build %{mvn_build} -f -- \ -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENSE %doc {README,SECURITY}.md %files javadoc -f .mfiles-javadoc %license LICENSE %changelog