2018-08-22 07:37:37 +00:00
|
|
|
%bcond_with jp_minimal
|
|
|
|
|
2016-09-19 13:13:16 +00:00
|
|
|
Name: jackson-modules-base
|
2018-01-24 20:48:10 +00:00
|
|
|
Version: 2.9.4
|
2018-08-22 07:37:37 +00:00
|
|
|
Release: 4%{?dist}
|
2016-09-19 13:13:16 +00:00
|
|
|
Summary: Jackson modules: Base
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/FasterXML/jackson-modules-base
|
|
|
|
Source0: https://github.com/FasterXML/jackson-modules-base/archive/%{name}-%{version}.tar.gz
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(cglib:cglib)
|
|
|
|
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
|
|
|
|
BuildRequires: 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)
|
|
|
|
BuildRequires: mvn(com.google.inject:guice)
|
2018-08-22 07:37:37 +00:00
|
|
|
%if %{without jp_minimal}
|
2018-01-23 15:29:23 +00:00
|
|
|
BuildRequires: mvn(com.thoughtworks.paranamer:paranamer)
|
2018-08-22 07:37:37 +00:00
|
|
|
%endif
|
2018-01-23 15:29:23 +00:00
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.mockito:mockito-all)
|
|
|
|
BuildRequires: mvn(org.osgi:osgi.core)
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Jackson "base" modules: modules that build directly on databind,
|
2016-09-20 22:04:54 +00:00
|
|
|
and are not data-type, data format, or JAX-RS provider modules.
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%package -n jackson-module-afterburner
|
2018-01-23 15:29:23 +00:00
|
|
|
Summary: Jackson module that uses byte-code generation to further speed up data binding
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description -n jackson-module-afterburner
|
2018-01-23 15:29:23 +00:00
|
|
|
Module that will add dynamic bytecode generation for standard Jackson POJO
|
|
|
|
serializers and deserializers, eliminating majority of remaining data binding
|
|
|
|
overhead.
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%package -n jackson-module-guice
|
2018-01-23 15:29:23 +00:00
|
|
|
Summary: Jackson module to make integration with Guice a bit easier
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description -n jackson-module-guice
|
2018-01-23 15:29:23 +00:00
|
|
|
This extension allows Jackson to delegate ObjectMapper creation and value
|
|
|
|
injection to Guice when handling data bindings.
|
|
|
|
|
|
|
|
%package -n jackson-module-jaxb-annotations
|
|
|
|
Summary: Support for using JAXB annotations as an alternative to "native" Jackson annotations
|
|
|
|
|
|
|
|
%description -n jackson-module-jaxb-annotations
|
|
|
|
This Jackson extension module provides support for using JAXB (javax.xml.bind)
|
|
|
|
annotations as an alternative to native Jackson annotations. It is most often
|
|
|
|
used to make it easier to reuse existing data beans that used with JAXB
|
|
|
|
framework to read and write XML.
|
2016-09-19 13:13:16 +00:00
|
|
|
|
2018-08-22 07:37:37 +00:00
|
|
|
%if %{without jp_minimal}
|
2016-09-19 13:13:16 +00:00
|
|
|
%package -n jackson-module-mrbean
|
2018-01-23 15:29:23 +00:00
|
|
|
Summary: Functionality for implementing interfaces and abstract types dynamically
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description -n jackson-module-mrbean
|
2018-01-23 15:29:23 +00:00
|
|
|
Mr Bean is an extension that implements support for "POJO type materialization"
|
|
|
|
ability for databinder to construct implementation classes for Java interfaces
|
|
|
|
and abstract classes, as part of deserialization.
|
2018-08-22 07:37:37 +00:00
|
|
|
%endif
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%package -n jackson-module-osgi
|
2018-01-23 15:29:23 +00:00
|
|
|
Summary: Jackson module to inject OSGI services in deserialized beans
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description -n jackson-module-osgi
|
|
|
|
This module provides a way to inject OSGI services into deserialized objects.
|
2018-01-23 15:29:23 +00:00
|
|
|
Thanks to the JacksonInject annotations, the OsgiJacksonModule will search for
|
|
|
|
the required service in the OSGI service registry and injects it in the object
|
|
|
|
while deserializing.
|
2016-09-19 13:13:16 +00:00
|
|
|
|
2018-08-22 07:37:37 +00:00
|
|
|
%if %{without jp_minimal}
|
2016-09-19 13:13:16 +00:00
|
|
|
%package -n jackson-module-paranamer
|
2018-01-23 15:29:23 +00:00
|
|
|
Summary: Jackson module that uses Paranamer to introspect names of constructor params
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description -n jackson-module-paranamer
|
2018-01-23 15:29:23 +00:00
|
|
|
Module that uses Paranamer library to auto-detect names of Creator
|
|
|
|
(constructor, static factory method, annotated with @JsonCreator) methods.
|
2018-08-22 07:37:37 +00:00
|
|
|
%endif
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%package javadoc
|
2018-01-23 15:29:23 +00:00
|
|
|
Summary: Javadoc for %{name}
|
2018-01-23 16:14:20 +00:00
|
|
|
# Obsoletes standalone jackson-module-jaxb-annotations since F28
|
|
|
|
Obsoletes: jackson-module-jaxb-annotations-javadoc < %{version}-%{release}
|
|
|
|
Provides: jackson-module-jaxb-annotations-javadoc = %{version}-%{release}
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%description javadoc
|
2018-01-23 15:29:23 +00:00
|
|
|
This package contains API documentation for %{name}.
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
# Disable bundling of asm
|
|
|
|
%pom_remove_plugin ":maven-shade-plugin" afterburner mrbean paranamer
|
|
|
|
%pom_xpath_remove "pom:properties/pom:osgi.private" mrbean paranamer
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
sed -i 's/\r//' mrbean/src/main/resources/META-INF/{LICENSE,NOTICE}
|
|
|
|
cp -p mrbean/src/main/resources/META-INF/{LICENSE,NOTICE} .
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
# Fix OSGi dependency
|
|
|
|
%pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core osgi
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
# NoClassDefFoundError: net/sf/cglib/core/CodeGenerationException
|
|
|
|
%pom_add_dep cglib:cglib:3.2.4:test guice
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
# This is provided by modern JREs
|
|
|
|
%pom_remove_dep "javax.xml.bind:jaxb-api" jaxb
|
2016-09-19 13:13:16 +00:00
|
|
|
|
2018-08-22 07:37:37 +00:00
|
|
|
%if %{with jp_minimal}
|
|
|
|
# Disable modules with additional deps
|
|
|
|
%pom_disable_module paranamer
|
|
|
|
%pom_disable_module mrbean
|
|
|
|
%endif
|
|
|
|
|
2018-01-24 20:48:10 +00:00
|
|
|
%mvn_file ":{*}" jackson-modules/@1
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
%build
|
2016-09-19 13:13:16 +00:00
|
|
|
%mvn_build -s
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%files -f .mfiles-jackson-modules-base
|
|
|
|
%doc README.md release-notes
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%files -n jackson-module-afterburner -f .mfiles-jackson-module-afterburner
|
|
|
|
%doc afterburner/README.md afterburner/release-notes
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%files -n jackson-module-guice -f .mfiles-jackson-module-guice
|
|
|
|
%doc guice/README.md
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
%files -n jackson-module-jaxb-annotations -f .mfiles-jackson-module-jaxb-annotations
|
|
|
|
%doc jaxb/README.md jaxb/release-notes
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
2018-08-22 07:37:37 +00:00
|
|
|
%if %{without jp_minimal}
|
2016-09-19 13:13:16 +00:00
|
|
|
%files -n jackson-module-mrbean -f .mfiles-jackson-module-mrbean
|
|
|
|
%doc mrbean/README.md mrbean/release-notes
|
|
|
|
%license LICENSE NOTICE
|
2018-08-22 07:37:37 +00:00
|
|
|
%endif
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%files -n jackson-module-osgi -f .mfiles-jackson-module-osgi
|
|
|
|
%doc osgi/README.md osgi/release-notes
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
2018-08-22 07:37:37 +00:00
|
|
|
%if %{without jp_minimal}
|
2016-09-19 13:13:16 +00:00
|
|
|
%files -n jackson-module-paranamer -f .mfiles-jackson-module-paranamer
|
|
|
|
%doc paranamer/README.md paranamer/release-notes
|
|
|
|
%license LICENSE NOTICE
|
2018-08-22 07:37:37 +00:00
|
|
|
%endif
|
2016-09-19 13:13:16 +00:00
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
|
|
%changelog
|
2018-08-22 07:37:37 +00:00
|
|
|
* Wed Aug 22 2018 Mat Booth <mat.booth@redhat.com> - 2.9.4-4
|
|
|
|
- Allow conditional building of some extra modules
|
|
|
|
|
2018-07-13 05:59:03 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 17:53:51 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-24 20:48:10 +00:00
|
|
|
* Wed Jan 24 2018 Mat Booth <mat.booth@redhat.com> - 2.9.4-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
|
2018-01-23 16:14:20 +00:00
|
|
|
* Tue Jan 23 2018 Mat Booth <mat.booth@redhat.com> - 2.9.3-2
|
|
|
|
- Properly obsolete jackson-module-jaxb-annotations-javadoc package
|
|
|
|
|
2018-01-23 15:29:23 +00:00
|
|
|
* Tue Jan 23 2018 Mat Booth <mat.booth@redhat.com> - 2.9.3-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Obsoletes standalone jaxb-annotations package now provided by this package
|
|
|
|
|
2017-07-26 13:53:50 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 16:42:16 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-09-20 22:04:54 +00:00
|
|
|
* Tue Sep 20 2016 gil cattaneo <puntogil@libero.it> 2.7.6-2
|
|
|
|
- fix some rpmlint problems
|
|
|
|
|
2016-09-19 13:13:16 +00:00
|
|
|
* Mon Aug 22 2016 gil cattaneo <puntogil@libero.it> 2.7.6-1
|
|
|
|
- initial rpm
|
|
|
|
|