%bcond_with jp_minimal Name: jackson-datatypes-collections Version: 2.9.8 Release: 1 Summary: Jackson datatypes: collections # Source files without license headers https://github.com/FasterXML/jackson-datatypes-collections/issues/10 License: ASL 2.0 URL: https://github.com/FasterXML/jackson-datatypes-collections Source0: https://github.com/FasterXML/jackson-datatypes-collections/archive/%{name}-%{version}.tar.gz BuildRequires: maven-local mvn(com.fasterxml.jackson.core:jackson-core) >= %{version} BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version} BuildRequires: mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version} BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer) mvn(com.google.guava:guava) BuildRequires: mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) %if %{without jp_minimal} BuildRequires: mvn(com.carrotsearch:hppc) %endif BuildArch: noarch %description This is a multi-module umbrella project for various Jackson Data-type modules to support 3rd party Collection libraries. Currently included are: * Guava data-type * HPPC data-type * PCollections data-type %package -n jackson-datatype-guava Summary: Add-on module for Jackson which handles Guava data-types %description -n jackson-datatype-guava Add-on datatype-support module for Jackson that handles Guava types (currently mostly just collection ones). %if %{without jp_minimal} %package -n jackson-datatype-hppc Summary: Add-on module for Jackson to support HPPC data-types %description -n jackson-datatype-hppc Jackson data-type module to support JSON serialization and deserialization of High-Performance Primitive Collections data-types. %endif %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains API documentation for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} sed -i 's/\r//' hppc/src/main/resources/META-INF/LICENSE cp -p hppc/src/main/resources/META-INF/LICENSE . %if %{with jp_minimal} # Disable modules with additional deps %pom_disable_module hppc %endif # Deps are missing from Fedora for these modules: %pom_disable_module eclipse-collections %pom_disable_module pcollections %build %mvn_build -s %install %mvn_install %files -f .mfiles-jackson-datatypes-collections %doc README.md release-notes %license LICENSE %files -n jackson-datatype-guava -f .mfiles-jackson-datatype-guava %doc guava/README.md guava/release-notes %license LICENSE %if %{without jp_minimal} %files -n jackson-datatype-hppc -f .mfiles-jackson-datatype-hppc %doc hppc/README.md hppc/release-notes %license LICENSE %endif %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Thu Aug 27 2020 wutao - 2.9.8-1 - package init