|
|
07f3db |
%global namedreltag .Final
|
|
|
07f3db |
%global namedversion %{version}%{namedreltag}
|
|
|
07f3db |
%global prodname resteasy
|
|
|
07f3db |
|
|
|
07f3db |
Name: resteasy-base
|
|
|
07f3db |
Version: 3.0.6
|
|
|
07f3db |
Release: 4%{?dist}
|
|
|
07f3db |
Summary: Framework for RESTful Web services and Java applications
|
|
|
07f3db |
License: ASL 2.0 and CDDL
|
|
|
07f3db |
URL: http://www.jboss.org/resteasy
|
|
|
07f3db |
|
|
|
07f3db |
# git clone git://github.com/resteasy/Resteasy.git
|
|
|
07f3db |
# cd Resteasy
|
|
|
07f3db |
# git archive --prefix=resteasy-3.0.6.Final/ --output=resteasy-3.0.6.Final.tar.gz 3.0.6.Final
|
|
|
07f3db |
Source0: %{prodname}-%{namedversion}.tar.gz
|
|
|
07f3db |
Patch0: 0001-Mime4j-0.7.2-support.patch
|
|
|
07f3db |
Patch1: 0002-bcmail-api-change.patch
|
|
|
07f3db |
Patch2: %{prodname}-%{namedversion}-resteasy-1073.patch
|
|
|
07f3db |
Patch3: %{prodname}-%{namedversion}-resteasy-1280539.patch
|
|
|
07f3db |
Patch4: %{prodname}-%{namedversion}-resteasy-1357624.patch
|
|
|
07f3db |
Patch5: %{prodname}-%{namedversion}-resteasy-1378619.patch
|
|
|
07f3db |
|
|
|
07f3db |
BuildArch: noarch
|
|
|
07f3db |
|
|
|
07f3db |
BuildRequires: maven-local
|
|
|
07f3db |
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
|
|
|
07f3db |
BuildRequires: mvn(commons-httpclient:commons-httpclient)
|
|
|
07f3db |
BuildRequires: mvn(javax.servlet:servlet-api)
|
|
|
07f3db |
BuildRequires: mvn(junit:junit)
|
|
|
07f3db |
BuildRequires: mvn(log4j:log4j)
|
|
|
07f3db |
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
|
|
|
07f3db |
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
|
|
07f3db |
BuildRequires: mvn(org.apache.maven.plugins:maven-deploy-plugin)
|
|
|
07f3db |
BuildRequires: mvn(org.apache.maven.plugins:maven-install-plugin)
|
|
|
07f3db |
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
|
|
07f3db |
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
07f3db |
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
|
|
|
07f3db |
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
|
|
|
07f3db |
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
|
|
|
07f3db |
BuildRequires: mvn(org.codehaus.jackson:jackson-xc)
|
|
|
07f3db |
BuildRequires: mvn(org.codehaus.jettison:jettison)
|
|
|
07f3db |
BuildRequires: mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec)
|
|
|
07f3db |
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec)
|
|
|
07f3db |
BuildRequires: mvn(org.scannotation:scannotation)
|
|
|
07f3db |
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
07f3db |
BuildRequires: mvn(org.jboss:jandex)
|
|
|
07f3db |
|
|
|
07f3db |
Requires: resteasy-base-jaxrs-api = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-providers-pom = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-atom-provider = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-jackson-provider = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-jaxb-provider = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-jaxrs = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-jaxrs-all = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-jettison-provider = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-tjws = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-client = %{version}-%{release}
|
|
|
07f3db |
Requires: resteasy-base-resteasy-pom = %{version}-%{release}
|
|
|
07f3db |
|
|
|
07f3db |
|
|
|
07f3db |
%description
|
|
|
07f3db |
%global desc \
|
|
|
07f3db |
RESTEasy contains a JBoss project that provides frameworks to help\
|
|
|
07f3db |
build RESTful Web Services and RESTful Java applications. It is a fully\
|
|
|
07f3db |
certified and portable implementation of the JAX-RS specification.
|
|
|
07f3db |
%{desc}
|
|
|
07f3db |
%global extdesc %{desc}\
|
|
|
07f3db |
\
|
|
|
07f3db |
This package contains
|
|
|
07f3db |
|
|
|
07f3db |
%package javadoc
|
|
|
07f3db |
Summary: Javadocs for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description javadoc
|
|
|
07f3db |
This package contains the API documentation for %{name}.
|
|
|
07f3db |
|
|
|
07f3db |
%package jaxrs-api
|
|
|
07f3db |
Summary: Module jaxrs-api for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description jaxrs-api
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package providers-pom
|
|
|
07f3db |
Summary: Module providers-pom for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description providers-pom
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package atom-provider
|
|
|
07f3db |
Summary: Module atom-provider for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description atom-provider
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package jackson-provider
|
|
|
07f3db |
Summary: Module jackson-provider for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description jackson-provider
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package jaxb-provider
|
|
|
07f3db |
Summary: Module jaxb-provider for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description jaxb-provider
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package jaxrs
|
|
|
07f3db |
Summary: Module jaxrs for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description jaxrs
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package jaxrs-all
|
|
|
07f3db |
Summary: Module jaxrs-all for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description jaxrs-all
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package jettison-provider
|
|
|
07f3db |
Summary: Module jettison-provider for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description jettison-provider
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package tjws
|
|
|
07f3db |
Summary: Module tjws for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description tjws
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package client
|
|
|
07f3db |
Summary: Client for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description client
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%package resteasy-pom
|
|
|
07f3db |
Summary: Module pom for %{name}
|
|
|
07f3db |
|
|
|
07f3db |
%description resteasy-pom
|
|
|
07f3db |
%{extdesc} %{summary}.
|
|
|
07f3db |
|
|
|
07f3db |
%prep
|
|
|
07f3db |
%setup -q -n Resteasy-%{namedversion}
|
|
|
07f3db |
|
|
|
07f3db |
# Disable unnecesary modules
|
|
|
07f3db |
%pom_disable_module examples jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module profiling-tests jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-test-data jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module war-tests jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-links jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module jboss-modules jaxrs/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
%pom_disable_module resteasy-cache jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module security jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-spring jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-bom jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-guice jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-jsapi jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module async-http-servlet-3.0 jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-cdi jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module server-adapters jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-jaxrs-testsuite jaxrs/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-servlet-initializer jaxrs/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
%pom_disable_module resteasy-oauth jaxrs/security/pom.xml
|
|
|
07f3db |
%pom_disable_module login-module-authenticator jaxrs/security/pom.xml
|
|
|
07f3db |
%pom_disable_module skeleton-key-idm jaxrs/security/pom.xml
|
|
|
07f3db |
%pom_disable_module keystone/keystone-as7 jaxrs/security/pom.xml
|
|
|
07f3db |
%pom_disable_module keystone/keystone-as7-modules jaxrs/security/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
%pom_disable_module async-http-servlet-3.0-test jaxrs/async-http-servlet-3.0/pom.xml
|
|
|
07f3db |
%pom_disable_module callback-test jaxrs/async-http-servlet-3.0/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
%pom_disable_module fastinfoset jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module multipart jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module yaml jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-html jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module test-resteasy-html jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module test-all-jaxb jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module test-jackson-jaxb-coexistence jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-hibernatevalidator-provider jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module jackson2 jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module json-p-ee7 jaxrs/providers/pom.xml
|
|
|
07f3db |
%pom_disable_module resteasy-validator-provider-11 jaxrs/providers/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
# Leave Netty 3, disable Netty 4
|
|
|
07f3db |
%pom_disable_module resteasy-netty4 jaxrs/server-adapters/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
# Replace 2.5 servlet with the jboss-servlet-2.5-api provides
|
|
|
07f3db |
for m in jaxrs/tjws; do
|
|
|
07f3db |
%pom_remove_dep "javax.servlet:servlet-api" ${m}/pom.xml
|
|
|
07f3db |
%pom_add_dep "org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec" ${m}/pom.xml
|
|
|
07f3db |
done
|
|
|
07f3db |
|
|
|
07f3db |
# Need to be patched to work with Jetty 9
|
|
|
07f3db |
rm jaxrs/resteasy-spring/src/main/java/org/jboss/resteasy/springmvc/JettyLifecycleManager.java
|
|
|
07f3db |
|
|
|
07f3db |
%pom_remove_dep "org.springframework:spring-test" jaxrs/resteasy-spring/pom.xml
|
|
|
07f3db |
%pom_remove_dep "org.mortbay.jetty:jetty" jaxrs/resteasy-spring/pom.xml
|
|
|
07f3db |
%pom_add_dep "org.eclipse.jetty:jetty-server" jaxrs/resteasy-spring/pom.xml
|
|
|
07f3db |
%pom_remove_dep net.jcip:jcip-annotations jaxrs/pom.xml
|
|
|
07f3db |
%pom_remove_dep net.jcip:jcip-annotations jaxrs/resteasy-jaxrs/pom.xml
|
|
|
07f3db |
%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin jaxrs/pom.xml
|
|
|
07f3db |
%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin jaxrs/resteasy-jaxrs/pom.xml
|
|
|
07f3db |
|
|
|
07f3db |
# Fixing JDK7 ASCII issues
|
|
|
07f3db |
files='
|
|
|
07f3db |
jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/JSAPIWriter.java
|
|
|
07f3db |
jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/JSAPIServlet.java
|
|
|
07f3db |
jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/ServiceRegistry.java
|
|
|
07f3db |
jaxrs/providers/jaxb/src/main/java/org/jboss/resteasy/plugins/providers/jaxb/ExternalEntityUnmarshaller.java
|
|
|
07f3db |
'
|
|
|
07f3db |
|
|
|
07f3db |
for f in ${files}; do
|
|
|
07f3db |
native2ascii -encoding UTF8 ${f} ${f}
|
|
|
07f3db |
done
|
|
|
07f3db |
|
|
|
07f3db |
%patch0 -p1
|
|
|
07f3db |
%patch1 -p0
|
|
|
07f3db |
%patch2 -p1
|
|
|
07f3db |
%patch3 -p1
|
|
|
07f3db |
%patch4 -p1
|
|
|
07f3db |
%patch5 -p1
|
|
|
07f3db |
|
|
|
07f3db |
# additional gId:aId for jaxrs-api
|
|
|
07f3db |
%mvn_alias ":jaxrs-api" "org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec"
|
|
|
07f3db |
|
|
|
07f3db |
%build
|
|
|
07f3db |
# build, skip tests, singleton packaging
|
|
|
07f3db |
%mvn_build -f -s
|
|
|
07f3db |
|
|
|
07f3db |
# Create Jandex index file(s)
|
|
|
07f3db |
# Not all files are required by JBoss AS7, but let's create indexes for all of them
|
|
|
07f3db |
find -name 'resteasy-*-%{namedversion}.jar' | while read f; do
|
|
|
07f3db |
java -cp $(build-classpath jandex) org.jboss.jandex.Main -j ${f}
|
|
|
07f3db |
done
|
|
|
07f3db |
|
|
|
07f3db |
%install
|
|
|
07f3db |
%mvn_install
|
|
|
07f3db |
|
|
|
07f3db |
find -name "resteasy-*-jandex.jar" | while read f; do
|
|
|
07f3db |
install -pm 644 ${f} %{buildroot}%{_javadir}/%{name}/$(basename -s "-%{namedversion}-jandex.jar" $f)-jandex.jar
|
|
|
07f3db |
done
|
|
|
07f3db |
|
|
|
07f3db |
%files -f .mfiles
|
|
|
07f3db |
%dir %{_javadir}/%{name}
|
|
|
07f3db |
%doc jaxrs/License.html jaxrs/README.html
|
|
|
07f3db |
%files jaxrs-all -f .mfiles-resteasy-jaxrs-all
|
|
|
07f3db |
%files providers-pom -f .mfiles-providers-pom
|
|
|
07f3db |
%files jaxrs-api -f .mfiles-jaxrs-api
|
|
|
07f3db |
%files atom-provider -f .mfiles-resteasy-atom-provider
|
|
|
07f3db |
%{_javadir}/%{name}/resteasy-atom-provider-jandex.jar
|
|
|
07f3db |
%files jackson-provider -f .mfiles-resteasy-jackson-provider
|
|
|
07f3db |
%{_javadir}/%{name}/resteasy-jackson-provider-jandex.jar
|
|
|
07f3db |
%files jaxb-provider -f .mfiles-resteasy-jaxb-provider
|
|
|
07f3db |
%{_javadir}/%{name}/resteasy-jaxb-provider-jandex.jar
|
|
|
07f3db |
%files jaxrs -f .mfiles-resteasy-jaxrs
|
|
|
07f3db |
%{_javadir}/%{name}/resteasy-jaxrs-jandex.jar
|
|
|
07f3db |
%files jettison-provider -f .mfiles-resteasy-jettison-provider
|
|
|
07f3db |
%{_javadir}/%{name}/resteasy-jettison-provider-jandex.jar
|
|
|
07f3db |
%files tjws -f .mfiles-tjws
|
|
|
07f3db |
%files javadoc -f .mfiles-javadoc
|
|
|
07f3db |
%doc jaxrs/License.html
|
|
|
07f3db |
%files client -f .mfiles-resteasy-client
|
|
|
07f3db |
%{_javadir}/%{name}/resteasy-client-jandex.jar
|
|
|
07f3db |
%files resteasy-pom -f .mfiles-resteasy-pom
|
|
|
07f3db |
|
|
|
07f3db |
|
|
|
07f3db |
%changelog
|
|
|
07f3db |
* Mon Sep 26 2016 Ade Lee <alee@redhat.com> - 3.0.6-4
|
|
|
07f3db |
- Resolves: rhbz1378619 - disable SerializerProvider by default
|
|
|
07f3db |
|
|
|
07f3db |
* Thu Jul 28 2016 Ade Lee <alee@redhat.com> - 3.0.6-3
|
|
|
07f3db |
- Resolves: rhbz1357624 - fail to build with java 8
|
|
|
07f3db |
|
|
|
07f3db |
* Fri Jun 24 2016 Ade Lee <alee@redhat.com> - 3.0.6-2
|
|
|
07f3db |
- Resolves: rhbz1280539 - fix pom version
|
|
|
07f3db |
|
|
|
07f3db |
* Sun Sep 7 2014 Ade Lee <alee@redhat.com> - 3.0.6-1
|
|
|
07f3db |
- Resolves: rhbz1139067 - rebase to 3.0.6
|
|
|
07f3db |
|
|
|
07f3db |
* Mon Aug 25 2014 Ade Lee <alee@redhat.com> - 2.3.5-3
|
|
|
07f3db |
- Resolves: rhbz1121918 - CVE-2014-3490: XXE via parameter entities
|
|
|
07f3db |
|
|
|
07f3db |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.3.5-2
|
|
|
07f3db |
- Mass rebuild 2013-12-27
|
|
|
07f3db |
|
|
|
07f3db |
* Thu Oct 24 2013 Ade Lee <alee@redhat.com> - 2.3.5-1
|
|
|
07f3db |
- Resolved Bugzilla #1017459 - resteasy-base contains known vulnerable components
|
|
|
07f3db |
|
|
|
07f3db |
* Tue Jul 2 2013 Ade Lee <alee@redhat.com> - 2.3.2-12
|
|
|
07f3db |
- Removed modules not needed for pki-core
|
|
|
07f3db |
- Bugzilla # 973224 - resteasy-base must be split into subpackages to
|
|
|
07f3db |
simplify dependencies. With help from msrb.
|
|
|
07f3db |
|
|
|
07f3db |
* Thu May 9 2013 Ade Lee <alee@redhat.com> - 2.3.2-11
|
|
|
07f3db |
- Removed unneeded maven-checkstyle-plugin BR
|
|
|
07f3db |
- Removed Tomcat 6 dependency
|
|
|
07f3db |
- Replaced maven BR with maven-local
|
|
|
07f3db |
|
|
|
07f3db |
* Fri Jan 4 2013 Ade Lee <alee@redhat.com> - 2.3.2-10
|
|
|
07f3db |
- Disabled resteasy-cdi for rhel 7.0
|
|
|
07f3db |
|
|
|
07f3db |
* Tue Aug 7 2012 Ade Lee <alee@redhat.com> - 2.3.2-9
|
|
|
07f3db |
- Added tomcat6-servlet-2.5-api as a dependency
|
|
|
07f3db |
|
|
|
07f3db |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-8
|
|
|
07f3db |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
07f3db |
|
|
|
07f3db |
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-7
|
|
|
07f3db |
- Create also the jandex index jar files
|
|
|
07f3db |
|
|
|
07f3db |
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-6
|
|
|
07f3db |
- Added resteasy-multipart-provider module
|
|
|
07f3db |
|
|
|
07f3db |
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-5
|
|
|
07f3db |
- Fix the async HTTP Servlet 3.0 artifact id
|
|
|
07f3db |
|
|
|
07f3db |
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-4
|
|
|
07f3db |
- Added an additional artifact and group id for jaxrs-api
|
|
|
07f3db |
|
|
|
07f3db |
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-3
|
|
|
07f3db |
- Added async HTTP Servlet 3.0 module
|
|
|
07f3db |
|
|
|
07f3db |
* Thu Apr 12 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-2
|
|
|
07f3db |
- Build CDI integration module (bug #812978)
|
|
|
07f3db |
|
|
|
07f3db |
* Tue Mar 6 2012 Ade Lee <alee@redhat.com> 2.3.2-1
|
|
|
07f3db |
- Initial packaging
|