|
|
a2bb83 |
%global pkg_name jackson-jaxrs-providers
|
|
|
a2bb83 |
%{?scl:%scl_package %{pkg_name}}
|
|
|
a2bb83 |
%{?java_common_find_provides_and_requires}
|
|
|
a2bb83 |
Name: %{?scl_prefix}jackson-jaxrs-providers
|
|
|
a2bb83 |
Version: 2.5.0
|
|
|
a2bb83 |
Release: 2.3%{?dist}
|
|
|
a2bb83 |
Summary: Jackson JAX-RS providers
|
|
|
a2bb83 |
License: ASL 2.0
|
|
|
a2bb83 |
URL: http://wiki.fasterxml.com/JacksonHome
|
|
|
a2bb83 |
Source0: https://github.com/FasterXML/jackson-jaxrs-providers/archive/%{pkg_name}-%{version}.tar.gz
|
|
|
a2bb83 |
|
|
|
a2bb83 |
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix}mvn(com.fasterxml.jackson.core:jackson-core)
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix}mvn(com.fasterxml.jackson.core:jackson-databind)
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix}mvn(com.fasterxml.jackson.module:jackson-module-jaxb-annotations)
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix}mvn(javax.ws.rs:javax.ws.rs-api)
|
|
|
a2bb83 |
|
|
|
a2bb83 |
#BuildRequires: mvn(org.jboss.resteasy:resteasy-jackson2-provider)
|
|
|
a2bb83 |
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_java_common}maven-local
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_maven}maven-enforcer-plugin
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_maven}maven-plugin-build-helper
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_maven}maven-site-plugin
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_maven}maven-source-plugin
|
|
|
a2bb83 |
BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-junit
|
|
|
a2bb83 |
|
|
|
a2bb83 |
BuildArch: noarch
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%description
|
|
|
a2bb83 |
This is a multi-module project that contains Jackson-based JAX-RS providers for
|
|
|
a2bb83 |
following data formats:
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* JSON (https://github.com/FasterXML/jackson-core)
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%package -n %{?scl_prefix}jackson-jaxrs-json-provider
|
|
|
a2bb83 |
Summary: Jackson-JAXRS-JSON
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%description -n %{?scl_prefix}jackson-jaxrs-json-provider
|
|
|
a2bb83 |
Functionality to handle JSON input/output for JAX-RS implementations
|
|
|
a2bb83 |
(like Jersey and RESTeasy) using standard Jackson data binding.
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%package javadoc
|
|
|
a2bb83 |
Summary: Javadoc for %{pkg_name}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%description javadoc
|
|
|
a2bb83 |
This package contains javadoc for %{pkg_name}.
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%prep
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
a2bb83 |
%setup -q -n %{pkg_name}-%{pkg_name}-%{version}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
cp -p xml/src/main/resources/META-INF/LICENSE .
|
|
|
a2bb83 |
cp -p xml/src/main/resources/META-INF/NOTICE .
|
|
|
a2bb83 |
sed -i 's/\r//' LICENSE NOTICE
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%pom_disable_module cbor
|
|
|
a2bb83 |
%pom_disable_module smile
|
|
|
a2bb83 |
%pom_disable_module xml
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%pom_xpath_set "pom:properties/pom:version.jersey" 1.19
|
|
|
a2bb83 |
|
|
|
a2bb83 |
# Circular dep?
|
|
|
a2bb83 |
%pom_remove_dep org.jboss.resteasy:resteasy-jackson2-provider json
|
|
|
a2bb83 |
rm json/src/test/java/com/fasterxml/jackson/jaxrs/json/resteasy/RestEasyProviderLoadingTest.java
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%mvn_package ":jackson-jaxrs-providers" %{pkg_name}
|
|
|
a2bb83 |
%mvn_package ":jackson-jaxrs-base" %{pkg_name}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%pom_remove_parent
|
|
|
a2bb83 |
%pom_xpath_remove "pom:dependency[pom:scope='test']"
|
|
|
a2bb83 |
%pom_remove_dep "javax.ws.rs:jsr311-api"
|
|
|
a2bb83 |
%pom_add_dep "javax.ws.rs:javax.ws.rs-api"
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%pom_xpath_inject "pom:project" '
|
|
|
a2bb83 |
<build>
|
|
|
a2bb83 |
<plugins>
|
|
|
a2bb83 |
<plugin>
|
|
|
a2bb83 |
<groupId>org.apache.felix</groupId>
|
|
|
a2bb83 |
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
a2bb83 |
<extensions>true</extensions>
|
|
|
a2bb83 |
<version>1.0.0</version>
|
|
|
a2bb83 |
<configuration>
|
|
|
a2bb83 |
<instructions>
|
|
|
a2bb83 |
<_nouses>true</_nouses>
|
|
|
a2bb83 |
<_removeheaders>Include-Resource,JAVA_1_3_HOME,JAVA_1_4_HOME,JAVA_1_5_HOME,JAVA_1_6_HOME,JAVA_1_7_HOME</_removeheaders>
|
|
|
a2bb83 |
<_versionpolicy>${osgi.versionpolicy}</_versionpolicy>
|
|
|
a2bb83 |
<Bundle-Name>${project.name}</Bundle-Name>
|
|
|
a2bb83 |
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
|
|
|
a2bb83 |
<Bundle-Description>${project.description}</Bundle-Description>
|
|
|
a2bb83 |
<Export-Package>${osgi.export}</Export-Package>
|
|
|
a2bb83 |
<Private-Package>${osgi.private}</Private-Package>
|
|
|
a2bb83 |
<Import-Package>${osgi.import}</Import-Package>
|
|
|
a2bb83 |
<DynamicImport-Package>${osgi.dynamicImport}</DynamicImport-Package>
|
|
|
a2bb83 |
<Bundle-DocURL>${project.url}</Bundle-DocURL>
|
|
|
a2bb83 |
<Bundle-RequiredExecutionEnvironment>${osgi.requiredExecutionEnvironment}</Bundle-RequiredExecutionEnvironment>
|
|
|
a2bb83 |
|
|
|
a2bb83 |
<Implementation-Build-Date>${maven.build.timestamp}</Implementation-Build-Date>
|
|
|
a2bb83 |
<X-Compile-Source-JDK>${javac.src.version}</X-Compile-Source-JDK>
|
|
|
a2bb83 |
<X-Compile-Target-JDK>${javac.target.version}</X-Compile-Target-JDK>
|
|
|
a2bb83 |
|
|
|
a2bb83 |
<Implementation-Title>${project.name}</Implementation-Title>
|
|
|
a2bb83 |
<Implementation-Version>${project.version}</Implementation-Version>
|
|
|
a2bb83 |
<Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
|
|
|
a2bb83 |
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
|
|
|
a2bb83 |
|
|
|
a2bb83 |
<Specification-Title>${project.name}</Specification-Title>
|
|
|
a2bb83 |
<Specification-Version>${project.version}</Specification-Version>
|
|
|
a2bb83 |
<Specification-Vendor>${project.organization.name}</Specification-Vendor>
|
|
|
a2bb83 |
</instructions>
|
|
|
a2bb83 |
</configuration>
|
|
|
a2bb83 |
</plugin>
|
|
|
a2bb83 |
</plugins>
|
|
|
a2bb83 |
</build>'
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%pom_xpath_inject "pom:properties" '
|
|
|
a2bb83 |
<osgi.versionpolicy>${range;[===,=+);${@}}</osgi.versionpolicy>'
|
|
|
a2bb83 |
|
|
|
a2bb83 |
file=`find json -name PackageVersion.java.in`
|
|
|
a2bb83 |
gid=`grep "<groupId>" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'`
|
|
|
a2bb83 |
aid=`grep "<artifactId>" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'`
|
|
|
a2bb83 |
v=`grep "<version>" pom.xml | head -1 | sed 's/.*>\(.*\)<.*/\1/'`
|
|
|
a2bb83 |
pkg=`echo ${file} | cut -d/ -f5- | rev | cut -d/ -f2- | rev | tr '/' '\.'`
|
|
|
a2bb83 |
|
|
|
a2bb83 |
sed -i "s/@projectversion@/${v}/
|
|
|
a2bb83 |
s/@projectgroupid@/${gid}/
|
|
|
a2bb83 |
s/@package@/${pkg}/
|
|
|
a2bb83 |
s/@projectartifactid@/${aid}/" ${file}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
cp ${file} ${file%.in}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%{?scl:EOF}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%build
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%mvn_build -s -- -Dmaven.test.skip=true
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%{?scl:EOF}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%install
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
a2bb83 |
%mvn_install
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%{?scl:EOF}
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%files -f .mfiles-%{pkg_name}
|
|
|
a2bb83 |
%doc README.md release-notes/* LICENSE NOTICE
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%files -n %{?scl_prefix}jackson-jaxrs-json-provider -f .mfiles-jackson-jaxrs-json-provider
|
|
|
a2bb83 |
%doc LICENSE NOTICE
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%files javadoc -f .mfiles-javadoc
|
|
|
a2bb83 |
%doc LICENSE NOTICE
|
|
|
a2bb83 |
|
|
|
a2bb83 |
%changelog
|
|
|
a2bb83 |
* Thu Jul 30 2015 Roland Grunberg <rgrunber@redhat.com> - 2.5.0-2.3
|
|
|
a2bb83 |
- Add missing osgi.versionpolicy property.
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Tue Jul 28 2015 Alexander Kurtakov <akurtako@redhat.com> 2.5.0-2.2
|
|
|
a2bb83 |
- Drop provides/obsoletes outside of dts namespace.
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Thu Jul 02 2015 Roland Grunberg <rgrunber@redhat.com> - 2.5.0-2.1
|
|
|
a2bb83 |
- SCL-ize.
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-2
|
|
|
a2bb83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Sat Jan 31 2015 gil cattaneo <puntogil@libero.it> 2.5.0-1
|
|
|
a2bb83 |
- update to 2.5.0
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Sat Sep 20 2014 gil cattaneo <puntogil@libero.it> 2.4.2-1
|
|
|
a2bb83 |
- update to 2.4.2
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Wed Jul 09 2014 gil cattaneo <puntogil@libero.it> 2.4.1-2
|
|
|
a2bb83 |
- enable jackson-jaxrs-cbor-provider
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Fri Jul 04 2014 gil cattaneo <puntogil@libero.it> 2.4.1-1
|
|
|
a2bb83 |
- update to 2.4.1
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-3
|
|
|
a2bb83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.2.2-2
|
|
|
a2bb83 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Wed Jul 17 2013 gil cattaneo <puntogil@libero.it> 2.2.2-1
|
|
|
a2bb83 |
- update to 2.2.2
|
|
|
a2bb83 |
- renamed jackson-jaxrs-providers
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Tue Jul 16 2013 gil cattaneo <puntogil@libero.it> 2.1.5-1
|
|
|
a2bb83 |
- update to 2.1.5
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Wed Oct 24 2012 gil cattaneo <puntogil@libero.it> 2.1.0-1
|
|
|
a2bb83 |
- update to 2.1.0
|
|
|
a2bb83 |
- renamed jackson2-jaxrs-json-provider
|
|
|
a2bb83 |
|
|
|
a2bb83 |
* Thu Sep 13 2012 gil cattaneo <puntogil@libero.it> 2.0.5-1
|
|
|
a2bb83 |
- initial rpm
|