Blame SPECS/jackson-modules-base.spec

9c744f
%bcond_with     jp_minimal
9c744f
9c744f
Name:           jackson-modules-base
074b2e
Version:        2.14.1
074b2e
Release:        2%{?dist}
9c744f
Summary:        Jackson modules: Base
074b2e
License:        Apache-2.0
9c744f
9c744f
URL:            https://github.com/FasterXML/jackson-modules-base
9c744f
Source0:        %{url}/archive/%{name}-%{version}.tar.gz
074b2e
Patch1:         0001-Expose-javax.security.auth-from-JDK-internals.patch
9c744f
9c744f
BuildRequires:  maven-local
9c744f
BuildRequires:  mvn(cglib:cglib)
9c744f
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
9c744f
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
9c744f
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
9c744f
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
9c744f
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
9c744f
BuildRequires:  mvn(jakarta.activation:jakarta.activation-api)
9c744f
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
9c744f
BuildRequires:  mvn(junit:junit)
9c744f
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
9c744f
BuildRequires:  mvn(org.mockito:mockito-all)
9c744f
BuildRequires:  mvn(org.ow2.asm:asm)
9c744f
9c744f
BuildArch:      noarch
9c744f
9c744f
%description
9c744f
Jackson "base" modules: modules that build directly on databind,
9c744f
and are not data-type, data format, or JAX-RS provider modules.
9c744f
9c744f
%package -n pki-%{name}
9c744f
Summary: Jackson modules: Base
9c744f
Obsoletes: %{name} < %{version}-%{release}
9c744f
Conflicts: %{name} < %{version}-%{release}
9c744f
Provides: %{name} = %{version}-%{release}
9c744f
9c744f
%description -n pki-%{name}
9c744f
Jackson "base" modules: modules that build directly on databind,
9c744f
and are not data-type, data format, or JAX-RS provider modules.
9c744f
9c744f
%package -n pki-jackson-module-jaxb-annotations
9c744f
Summary: Support for using JAXB annotations as an alternative to "native" Jackson annotations
9c744f
Obsoletes: jackson-module-jaxb-annotations < %{version}-%{release}
9c744f
Conflicts: jackson-module-jaxb-annotations < %{version}-%{release}
9c744f
Provides: jackson-module-jaxb-annotations = %{version}-%{release}
9c744f
9c744f
%description -n pki-jackson-module-jaxb-annotations
9c744f
This Jackson extension module provides support for using JAXB (javax.xml.bind)
9c744f
annotations as an alternative to native Jackson annotations. It is most often
9c744f
used to make it easier to reuse existing data beans that used with JAXB
9c744f
framework to read and write XML.
9c744f
9c744f
%prep
9c744f
%setup -q -n %{name}-%{name}-%{version}
074b2e
%patch1 -p1
9c744f
074b2e
%pom_remove_dep -r org.glassfish.jaxb:jaxb-runtime
074b2e
%pom_remove_plugin "de.jjohannes:gradle-module-metadata-maven-plugin"
9c744f
9c744f
# no need for Java 9 module stuff
9c744f
%pom_remove_plugin -r :moditect-maven-plugin
9c744f
9c744f
# move to "old" glassfish-jaxb-api artifactId
9c744f
%pom_change_dep -r jakarta.xml.bind:jakarta.xml.bind-api javax.xml.bind:jaxb-api
9c744f
9c744f
# Disable bundling of asm
9c744f
%pom_remove_plugin ":maven-shade-plugin" afterburner mrbean paranamer
9c744f
%pom_xpath_remove "pom:properties/pom:osgi.private" mrbean paranamer
9c744f
9c744f
sed -i 's/\r//' mrbean/src/main/resources/META-INF/{LICENSE,NOTICE}
9c744f
cp -p mrbean/src/main/resources/META-INF/{LICENSE,NOTICE} .
9c744f
9c744f
# Fix OSGi dependency
9c744f
%pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core osgi
9c744f
9c744f
# NoClassDefFoundError: net/sf/cglib/core/CodeGenerationException
9c744f
%pom_add_dep cglib:cglib:3.2.4:test guice
9c744f
9c744f
%pom_disable_module afterburner
9c744f
%pom_disable_module guice
9c744f
%pom_disable_module mrbean
9c744f
%pom_disable_module osgi
9c744f
%pom_disable_module paranamer
074b2e
%pom_disable_module jakarta-xmlbind
074b2e
%pom_disable_module blackbird
074b2e
%pom_disable_module no-ctor-deser
9c744f
9c744f
# Allow javax,activation to be optional
9c744f
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" jaxb "
9c744f
<configuration>
9c744f
  <instructions>
9c744f
    <Import-Package>javax.activation;resolution:=optional,*</Import-Package>
9c744f
  </instructions>
9c744f
</configuration>"
9c744f
9c744f
# This test fails since mockito was upgraded to 2.x
9c744f
rm osgi/src/test/java/com/fasterxml/jackson/module/osgi/InjectOsgiServiceTest.java
9c744f
9c744f
%mvn_file ":{*}" jackson-modules/@1
9c744f
9c744f
%build
9c744f
%mvn_build -s -j
9c744f
9c744f
%install
9c744f
%mvn_install
9c744f
9c744f
%files -n pki-%{name} -f .mfiles-jackson-modules-base
9c744f
%doc README.md release-notes
9c744f
%license LICENSE NOTICE
9c744f
9c744f
%files -n pki-jackson-module-jaxb-annotations -f .mfiles-jackson-module-jaxb-annotations
9c744f
%doc jaxb/README.md jaxb/release-notes
9c744f
%license LICENSE NOTICE
9c744f
9c744f
%changelog
074b2e
* Wed Nov 23 2022 Chris Kelley <ckelley@redhat.com> - 2.14.1-1
074b2e
- Update to version 2.14.1
074b2e
- Resolves: #2070122
074b2e
9c744f
* Wed Sep 22 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 2.11.4-8
9c744f
- Drop jaxb-runtime dependency
9c744f
9c744f
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.11.4-7
9c744f
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9c744f
  Related: rhbz#1991688
9c744f
9c744f
* Fri May 21 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 2.11.4-6
9c744f
- Drop jackson-module-afterburner, jackson-module-guice, jackson-module-mrbean,
9c744f
  jackson-module-osgi, jackson-module-paranamer, and jackson-module-javadoc
9c744f
9c744f
* Wed Apr 28 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 2.11.4-5
9c744f
- Add Obsoletes and Conflicts
9c744f
9c744f
* Fri Apr 23 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 2.11.4-4
9c744f
- Rename subpackages to pki-jackson
9c744f
9c744f
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.11.4-3
9c744f
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9c744f
9c744f
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.4-2
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9c744f
9c744f
* Mon Jan 18 2021 Fabio Valentini <decathorpe@gmail.com> - 2.11.4-1
9c744f
- Update to version 2.11.4.
9c744f
9c744f
* Wed Oct 14 2020 Fabio Valentini <decathorpe@gmail.com> - 2.11.3-1
9c744f
- Update to version 2.11.3.
9c744f
9c744f
* Sat Aug 08 2020 Fabio Valentini <decathorpe@gmail.com> - 2.11.2-1
9c744f
- Update to version 2.11.2.
9c744f
9c744f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-3
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9c744f
9c744f
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.11.1-2
9c744f
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
9c744f
9c744f
* Mon Jul 06 2020 Fabio Valentini <decathorpe@gmail.com> - 2.11.1-1
9c744f
- Update to version 2.11.1.
9c744f
9c744f
* Mon May 25 2020 Fabio Valentini <decathorpe@gmail.com> - 2.11.0-1
9c744f
- Update to version 2.11.0.
9c744f
9c744f
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 2.10.4-1
9c744f
- Update to version 2.10.4.
9c744f
9c744f
* Tue Mar 03 2020 Fabio Valentini <decathorpe@gmail.com> - 2.10.3-1
9c744f
- Update to version 2.10.3.
9c744f
9c744f
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.2-2
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9c744f
9c744f
* Fri Jan 17 2020 Fabio Valentini <decathorpe@gmail.com> - 2.10.2-1
9c744f
- Update to version 2.10.2.
9c744f
9c744f
* Wed Nov 13 2019 Fabio Valentini <decathorpe@gmail.com> - 2.10.1-1
9c744f
- Update to version 2.10.1.
9c744f
9c744f
* Tue Oct 08 2019 Fabio Valentini <decathorpe@gmail.com> - 2.10.0-1
9c744f
- Update to version 2.10.0.
9c744f
9c744f
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.8-3
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9c744f
9c744f
* Sun Mar 17 2019 Mat Booth <mat.booth@redhat.com> - 2.9.8-2
9c744f
- Make the OSGi dep on javax.activation optional
9c744f
9c744f
* Wed Feb 06 2019 Mat Booth <mat.booth@redhat.com> - 2.9.8-1
9c744f
- Update to latest upstream release
9c744f
9c744f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-6
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9c744f
9c744f
* Fri Jan 11 2019 Mat Booth <mat.booth@redhat.com> - 2.9.4-5
9c744f
- Avoid running test that fails since Mockito 2.x
9c744f
9c744f
* Wed Aug 22 2018 Mat Booth <mat.booth@redhat.com> - 2.9.4-4
9c744f
- Allow conditional building of some extra modules
9c744f
9c744f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-3
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9c744f
9c744f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-2
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9c744f
9c744f
* Wed Jan 24 2018 Mat Booth <mat.booth@redhat.com> - 2.9.4-1
9c744f
- Update to latest upstream release
9c744f
9c744f
* Tue Jan 23 2018 Mat Booth <mat.booth@redhat.com> - 2.9.3-2
9c744f
- Properly obsolete jackson-module-jaxb-annotations-javadoc package
9c744f
9c744f
* Tue Jan 23 2018 Mat Booth <mat.booth@redhat.com> - 2.9.3-1
9c744f
- Update to latest upstream release
9c744f
- Obsoletes standalone jaxb-annotations package now provided by this package
9c744f
9c744f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.6-4
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9c744f
9c744f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.6-3
9c744f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9c744f
9c744f
* Tue Sep 20 2016 gil cattaneo <puntogil@libero.it> 2.7.6-2
9c744f
- fix some rpmlint problems 
9c744f
9c744f
* Mon Aug 22 2016 gil cattaneo <puntogil@libero.it> 2.7.6-1
9c744f
- initial rpm
9c744f