Package jackson-modules-base: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | Group: Development/Java BuildRequires: /proc rpm-build-java BuildRequires: jpackage-11-compat # fedora bcond_with macro %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} # redefine altlinux specific with and without %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %bcond_with jp_minimal Name: jackson-modules-base Version: 2.11.4 Release: alt1_2jpp11 Summary: Jackson modules: Base License: ASL 2.0 URL: https://github.com/FasterXML/jackson-modules-base Source0: %{url}/archive/%{name}-%{version}.tar.gz 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) %if %{without jp_minimal} BuildRequires: mvn(com.thoughtworks.paranamer:paranamer) %endif BuildRequires: mvn(jakarta.activation:jakarta.activation-api) BuildRequires: mvn(javax.xml.bind:jaxb-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime) BuildRequires: mvn(org.mockito:mockito-all) BuildRequires: mvn(org.osgi:osgi.core) BuildRequires: mvn(org.ow2.asm:asm) BuildArch: noarch Source44: import.info %description Jackson "base" modules: modules that build directly on databind, and are not data-type, data format, or JAX-RS provider modules. %package -n jackson-module-afterburner Group: Development/Java Summary: Jackson module that uses byte-code generation to further speed up data binding %description -n jackson-module-afterburner Module that will add dynamic bytecode generation for standard Jackson POJO serializers and deserializers, eliminating majority of remaining data binding overhead. %package -n jackson-module-guice Group: Development/Java Summary: Jackson module to make integration with Guice a bit easier %description -n jackson-module-guice This extension allows Jackson to delegate ObjectMapper creation and value injection to Guice when handling data bindings. %package -n jackson-module-jaxb-annotations Group: Development/Java 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. %if %{without jp_minimal} %package -n jackson-module-mrbean Group: Development/Java Summary: Functionality for implementing interfaces and abstract types dynamically %description -n jackson-module-mrbean 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. %endif %package -n jackson-module-osgi Group: Development/Java Summary: Jackson module to inject OSGI services in deserialized beans %description -n jackson-module-osgi This module provides a way to inject OSGI services into deserialized objects. 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. %if %{without jp_minimal} %package -n jackson-module-paranamer Group: Development/Java Summary: Jackson module that uses Paranamer to introspect names of constructor params %description -n jackson-module-paranamer Module that uses Paranamer library to auto-detect names of Creator (constructor, static factory method, annotated with @JsonCreator) methods. %endif %package javadoc Group: Development/Java Summary: Javadoc for %{name} # Obsoletes standalone jackson-module-jaxb-annotations since F28 Obsoletes: jackson-module-jaxb-annotations-javadoc < %{version}-%{release} Provides: jackson-module-jaxb-annotations-javadoc = %{version}-%{release} BuildArch: noarch %description javadoc This package contains API documentation for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} # no need for Java 9 module stuff %pom_remove_plugin -r :moditect-maven-plugin # move to "old" glassfish-jaxb-api artifactId %pom_change_dep -r jakarta.xml.bind:jakarta.xml.bind-api javax.xml.bind:jaxb-api # Disable bundling of asm %pom_remove_plugin ":maven-shade-plugin" afterburner mrbean paranamer %pom_xpath_remove "pom:properties/pom:osgi.private" mrbean paranamer sed -i 's/\r//' mrbean/src/main/resources/META-INF/{LICENSE,NOTICE} cp -p mrbean/src/main/resources/META-INF/{LICENSE,NOTICE} . # Fix OSGi dependency %pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core osgi # NoClassDefFoundError: net/sf/cglib/core/CodeGenerationException %pom_add_dep cglib:cglib:3.2.4:test guice %if %{with jp_minimal} # Disable modules with additional deps %pom_disable_module paranamer %pom_disable_module mrbean %endif # Allow javax,activation to be optional %pom_add_plugin "org.apache.felix:maven-bundle-plugin" jaxb " <configuration> <instructions> <Import-Package>javax.activation;resolution:=optional,*</Import-Package> </instructions> </configuration>" # This test fails since mockito was upgraded to 2.x rm osgi/src/test/java/com/fasterxml/jackson/module/osgi/InjectOsgiServiceTest.java %mvn_file ":{*}" jackson-modules/@1 %build %mvn_build -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 %install %mvn_install %files -f .mfiles-jackson-modules-base %doc README.md release-notes %doc --no-dereference LICENSE NOTICE %files -n jackson-module-afterburner -f .mfiles-jackson-module-afterburner %doc afterburner/README.md afterburner/release-notes %doc --no-dereference LICENSE NOTICE %files -n jackson-module-guice -f .mfiles-jackson-module-guice %doc guice/README.md %doc --no-dereference LICENSE NOTICE %files -n jackson-module-jaxb-annotations -f .mfiles-jackson-module-jaxb-annotations %doc jaxb/README.md jaxb/release-notes %doc --no-dereference LICENSE NOTICE %if %{without jp_minimal} %files -n jackson-module-mrbean -f .mfiles-jackson-module-mrbean %doc mrbean/README.md mrbean/release-notes %doc --no-dereference LICENSE NOTICE %endif %files -n jackson-module-osgi -f .mfiles-jackson-module-osgi %doc osgi/README.md osgi/release-notes %doc --no-dereference LICENSE NOTICE %if %{without jp_minimal} %files -n jackson-module-paranamer -f .mfiles-jackson-module-paranamer %doc paranamer/README.md paranamer/release-notes %doc --no-dereference LICENSE NOTICE %endif %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE NOTICE %changelog * Thu Jun 10 2021 Igor Vlasenko <viy@altlinux.org> 2.11.4-alt1_2jpp11 - new version * Tue Jun 01 2021 Igor Vlasenko <viy@altlinux.org> 2.11.2-alt1_1jpp11 - new version * Wed May 12 2021 Igor Vlasenko <viy@altlinux.org> 2.10.2-alt1_2jpp8 - new version * Sat Jul 13 2019 Igor Vlasenko <viy@altlinux.ru> 2.9.8-alt1_2jpp8 - new version * Mon Jun 17 2019 Igor Vlasenko <viy@altlinux.ru> 2.9.4-alt1_4jpp8 - new version * Tue May 15 2018 Igor Vlasenko <viy@altlinux.ru> 2.9.4-alt1_2jpp8 - java update * Sat Nov 04 2017 Igor Vlasenko <viy@altlinux.ru> 2.7.6-alt1_4jpp8 - new version |