diff --git a/jackson-datatypes-collections-2.9.8.tar.gz b/jackson-datatypes-collections-2.9.8.tar.gz new file mode 100644 index 0000000..04335e1 Binary files /dev/null and b/jackson-datatypes-collections-2.9.8.tar.gz differ diff --git a/jackson-datatypes-collections.spec b/jackson-datatypes-collections.spec new file mode 100644 index 0000000..317baa0 --- /dev/null +++ b/jackson-datatypes-collections.spec @@ -0,0 +1,84 @@ +%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 diff --git a/jackson-datatypes-collections.yaml b/jackson-datatypes-collections.yaml new file mode 100644 index 0000000..0d51850 --- /dev/null +++ b/jackson-datatypes-collections.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: FasterXML/jackson-datatypes-collections +tag_prefix: "^jackson-datatypes-collections-" +seperator: "."