|
|
07c370 |
%global namedreltag .Final
|
|
|
07c370 |
%global namedversion %{version}%{namedreltag}
|
|
|
07c370 |
%global prodname resteasy
|
|
|
07c370 |
|
|
|
07c370 |
Name: resteasy-base
|
|
|
07c370 |
Version: 2.3.5
|
|
|
07c370 |
Release: 1%{?dist}
|
|
|
07c370 |
Summary: Framework for RESTful Web services and Java applications
|
|
|
07c370 |
License: ASL 2.0 and CDDL
|
|
|
07c370 |
URL: http://www.jboss.org/resteasy
|
|
|
07c370 |
|
|
|
07c370 |
# git clone git://github.com/resteasy/Resteasy.git
|
|
|
07c370 |
# cd Resteasy
|
|
|
07c370 |
# git archive --prefix=resteasy-2.3.5.Final/ --output=resteasy-2.3.5.Final.tgz 2.3.5.Final
|
|
|
07c370 |
Source0: %{prodname}-%{namedversion}.tgz
|
|
|
07c370 |
|
|
|
07c370 |
BuildArch: noarch
|
|
|
07c370 |
|
|
|
07c370 |
BuildRequires: maven-local
|
|
|
07c370 |
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
|
|
|
07c370 |
BuildRequires: mvn(commons-httpclient:commons-httpclient)
|
|
|
07c370 |
BuildRequires: mvn(javax.servlet:servlet-api)
|
|
|
07c370 |
BuildRequires: mvn(junit:junit)
|
|
|
07c370 |
BuildRequires: mvn(log4j:log4j)
|
|
|
07c370 |
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
|
|
|
07c370 |
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
|
|
07c370 |
BuildRequires: mvn(org.apache.maven.plugins:maven-deploy-plugin)
|
|
|
07c370 |
BuildRequires: mvn(org.apache.maven.plugins:maven-install-plugin)
|
|
|
07c370 |
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
|
|
07c370 |
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
07c370 |
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
|
|
|
07c370 |
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
|
|
|
07c370 |
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
|
|
|
07c370 |
BuildRequires: mvn(org.codehaus.jackson:jackson-xc)
|
|
|
07c370 |
BuildRequires: mvn(org.codehaus.jettison:jettison)
|
|
|
07c370 |
BuildRequires: mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec)
|
|
|
07c370 |
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec)
|
|
|
07c370 |
BuildRequires: mvn(org.scannotation:scannotation)
|
|
|
07c370 |
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
07c370 |
BuildRequires: mvn(org.jboss:jandex)
|
|
|
07c370 |
|
|
|
07c370 |
Requires: resteasy-base-jaxrs-api = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-providers-pom = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-atom-provider = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-jackson-provider = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-jaxb-provider = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-jaxrs = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-jaxrs-all = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-jettison-provider = %{version}-%{release}
|
|
|
07c370 |
Requires: resteasy-base-tjws = %{version}-%{release}
|
|
|
07c370 |
|
|
|
07c370 |
|
|
|
07c370 |
%description
|
|
|
07c370 |
%global desc \
|
|
|
07c370 |
RESTEasy contains a JBoss project that provides frameworks to help\
|
|
|
07c370 |
build RESTful Web Services and RESTful Java applications. It is a fully\
|
|
|
07c370 |
certified and portable implementation of the JAX-RS specification.
|
|
|
07c370 |
%{desc}
|
|
|
07c370 |
%global extdesc %{desc}\
|
|
|
07c370 |
\
|
|
|
07c370 |
This package contains
|
|
|
07c370 |
|
|
|
07c370 |
%package javadoc
|
|
|
07c370 |
Summary: Javadocs for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description javadoc
|
|
|
07c370 |
This package contains the API documentation for %{name}.
|
|
|
07c370 |
|
|
|
07c370 |
%package jaxrs-api
|
|
|
07c370 |
Summary: Module jaxrs-api for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description jaxrs-api
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package providers-pom
|
|
|
07c370 |
Summary: Module providers-pom for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description providers-pom
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package atom-provider
|
|
|
07c370 |
Summary: Module atom-provider for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description atom-provider
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package jackson-provider
|
|
|
07c370 |
Summary: Module jackson-provider for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description jackson-provider
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package jaxb-provider
|
|
|
07c370 |
Summary: Module jaxb-provider for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description jaxb-provider
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package jaxrs
|
|
|
07c370 |
Summary: Module jaxrs for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description jaxrs
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package jaxrs-all
|
|
|
07c370 |
Summary: Module jaxrs-all for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description jaxrs-all
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package jettison-provider
|
|
|
07c370 |
Summary: Module jettison-provider for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description jettison-provider
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
%package tjws
|
|
|
07c370 |
Summary: Module tjws for %{name}
|
|
|
07c370 |
|
|
|
07c370 |
%description tjws
|
|
|
07c370 |
%{extdesc} %{summary}.
|
|
|
07c370 |
|
|
|
07c370 |
|
|
|
07c370 |
%prep
|
|
|
07c370 |
%setup -q -n %{prodname}-%{namedversion}
|
|
|
07c370 |
|
|
|
07c370 |
# remove unneeded modules
|
|
|
07c370 |
%pom_disable_module resteasy-jaxrs-war
|
|
|
07c370 |
%pom_disable_module resteasy-cache
|
|
|
07c370 |
%pom_disable_module eagledns
|
|
|
07c370 |
%pom_disable_module security
|
|
|
07c370 |
%pom_disable_module resteasy-links
|
|
|
07c370 |
%pom_disable_module arquillian
|
|
|
07c370 |
%pom_disable_module async-http-jbossweb
|
|
|
07c370 |
%pom_disable_module async-http-tomcat
|
|
|
07c370 |
%pom_disable_module resteasy-spring
|
|
|
07c370 |
%pom_disable_module war-tests
|
|
|
07c370 |
%pom_disable_module examples
|
|
|
07c370 |
%pom_disable_module profiling-tests
|
|
|
07c370 |
%pom_disable_module resteasy-test-data
|
|
|
07c370 |
%pom_disable_module resteasy-bom
|
|
|
07c370 |
%pom_disable_module resteasy-guice
|
|
|
07c370 |
%pom_disable_module resteasy-jsapi
|
|
|
07c370 |
%pom_disable_module async-http-servlet-3.0
|
|
|
07c370 |
%pom_disable_module resteasy-cdi
|
|
|
07c370 |
%pom_disable_module jboss-modules
|
|
|
07c370 |
%pom_disable_module server-adapters
|
|
|
07c370 |
|
|
|
07c370 |
%pom_disable_module fastinfoset providers
|
|
|
07c370 |
%pom_disable_module multipart providers
|
|
|
07c370 |
%pom_disable_module yaml providers
|
|
|
07c370 |
%pom_disable_module resteasy-html providers
|
|
|
07c370 |
%pom_disable_module test-resteasy-html providers
|
|
|
07c370 |
%pom_disable_module test-all-jaxb providers
|
|
|
07c370 |
%pom_disable_module test-jackson-jaxb-coexistence providers
|
|
|
07c370 |
%pom_disable_module resteasy-hibernatevalidator-provider providers
|
|
|
07c370 |
|
|
|
07c370 |
%pom_remove_dep net.jcip:jcip-annotations
|
|
|
07c370 |
%pom_remove_dep net.jcip:jcip-annotations resteasy-jaxrs
|
|
|
07c370 |
|
|
|
07c370 |
%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin
|
|
|
07c370 |
%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin resteasy-jaxrs
|
|
|
07c370 |
|
|
|
07c370 |
# Fix gId:aId javax.servlet:servlet-api ->
|
|
|
07c370 |
# org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec
|
|
|
07c370 |
# in resteasy-jaxrs/pom.xml:
|
|
|
07c370 |
%pom_xpath_replace "pom:dependency[pom:artifactId[text()='servlet-api']]" \
|
|
|
07c370 |
"<dependency>
|
|
|
07c370 |
<groupId>org.jboss.spec.javax.servlet</groupId>
|
|
|
07c370 |
<artifactId>jboss-servlet-api_2.5_spec</artifactId>
|
|
|
07c370 |
<scope>provided</scope>
|
|
|
07c370 |
</dependency>" resteasy-jaxrs
|
|
|
07c370 |
# in tjws/pom.xml:
|
|
|
07c370 |
%pom_xpath_replace "pom:dependency[pom:artifactId[text()='servlet-api']]" \
|
|
|
07c370 |
"<dependency>
|
|
|
07c370 |
<groupId>org.jboss.spec.javax.servlet</groupId>
|
|
|
07c370 |
<artifactId>jboss-servlet-api_2.5_spec</artifactId>
|
|
|
07c370 |
<scope>provided</scope>
|
|
|
07c370 |
</dependency>" tjws
|
|
|
07c370 |
|
|
|
07c370 |
|
|
|
07c370 |
# additional gId:aId for jaxrs-api
|
|
|
07c370 |
%mvn_alias ":jaxrs-api" "org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec"
|
|
|
07c370 |
|
|
|
07c370 |
%build
|
|
|
07c370 |
# build, skip tests, singleton packaging
|
|
|
07c370 |
%mvn_build -f -s
|
|
|
07c370 |
|
|
|
07c370 |
%install
|
|
|
07c370 |
# Install jars, poms and dependencies maps
|
|
|
07c370 |
%mvn_install
|
|
|
07c370 |
|
|
|
07c370 |
# Create also the Jandex index files
|
|
|
07c370 |
# Required by JBoss AS7
|
|
|
07c370 |
while read module_path artifact_id additional_aid_gid
|
|
|
07c370 |
do
|
|
|
07c370 |
base_name=${module_path}/target/${artifact_id}-%{namedversion}
|
|
|
07c370 |
jandex_file=${base_name}-jandex.jar
|
|
|
07c370 |
if [ -f ${base_name}.jar ]; then
|
|
|
07c370 |
java -cp $(build-classpath jandex) org.jboss.jandex.Main -j ${base_name}.jar
|
|
|
07c370 |
install -pm 644 ${jandex_file} %{buildroot}%{_javadir}/%{name}/${artifact_id}-jandex.jar
|
|
|
07c370 |
fi
|
|
|
07c370 |
done <<'.'
|
|
|
07c370 |
. jaxrs-all
|
|
|
07c370 |
jaxrs-api jaxrs-api org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec
|
|
|
07c370 |
providers/jackson resteasy-jackson-provider
|
|
|
07c370 |
providers/jaxb resteasy-jaxb-provider
|
|
|
07c370 |
providers/jettison resteasy-jettison-provider
|
|
|
07c370 |
providers/resteasy-atom resteasy-atom-provider
|
|
|
07c370 |
resteasy-jaxrs resteasy-jaxrs
|
|
|
07c370 |
tjws tjws
|
|
|
07c370 |
.
|
|
|
07c370 |
|
|
|
07c370 |
|
|
|
07c370 |
%files -f .mfiles
|
|
|
07c370 |
%dir %{_javadir}/%{name}
|
|
|
07c370 |
%doc License.html README.html
|
|
|
07c370 |
%files jaxrs-all -f .mfiles-resteasy-jaxrs-all
|
|
|
07c370 |
%files providers-pom -f .mfiles-providers-pom
|
|
|
07c370 |
%files jaxrs-api -f .mfiles-jaxrs-api
|
|
|
07c370 |
%{_javadir}/%{name}/jaxrs-api-jandex.jar
|
|
|
07c370 |
%files atom-provider -f .mfiles-resteasy-atom-provider
|
|
|
07c370 |
%{_javadir}/%{name}/resteasy-atom-provider-jandex.jar
|
|
|
07c370 |
%files jackson-provider -f .mfiles-resteasy-jackson-provider
|
|
|
07c370 |
%{_javadir}/%{name}/resteasy-jackson-provider-jandex.jar
|
|
|
07c370 |
%files jaxb-provider -f .mfiles-resteasy-jaxb-provider
|
|
|
07c370 |
%{_javadir}/%{name}/resteasy-jaxb-provider-jandex.jar
|
|
|
07c370 |
%files jaxrs -f .mfiles-resteasy-jaxrs
|
|
|
07c370 |
%{_javadir}/%{name}/resteasy-jaxrs-jandex.jar
|
|
|
07c370 |
%files jettison-provider -f .mfiles-resteasy-jettison-provider
|
|
|
07c370 |
%{_javadir}/%{name}/resteasy-jettison-provider-jandex.jar
|
|
|
07c370 |
%files tjws -f .mfiles-tjws
|
|
|
07c370 |
%{_javadir}/%{name}/tjws-jandex.jar
|
|
|
07c370 |
%files javadoc -f .mfiles-javadoc
|
|
|
07c370 |
%doc License.html
|
|
|
07c370 |
|
|
|
07c370 |
|
|
|
07c370 |
%changelog
|
|
|
07c370 |
* Thu Oct 24 2013 Ade Lee <alee@redhat.com> - 2.3.5-1
|
|
|
07c370 |
- Resolved Bugzilla #1017459 - resteasy-base contains known vulnerable components
|
|
|
07c370 |
|
|
|
07c370 |
* Tue Jul 2 2013 Ade Lee <alee@redhat.com> - 2.3.2-12
|
|
|
07c370 |
- Removed modules not needed for pki-core
|
|
|
07c370 |
- Bugzilla # 973224 - resteasy-base must be split into subpackages to
|
|
|
07c370 |
simplify dependencies. With help from msrb.
|
|
|
07c370 |
|
|
|
07c370 |
* Thu May 9 2013 Ade Lee <alee@redhat.com> - 2.3.2-11
|
|
|
07c370 |
- Removed unneeded maven-checkstyle-plugin BR
|
|
|
07c370 |
- Removed Tomcat 6 dependency
|
|
|
07c370 |
- Replaced maven BR with maven-local
|
|
|
07c370 |
|
|
|
07c370 |
* Fri Jan 4 2013 Ade Lee <alee@redhat.com> - 2.3.2-10
|
|
|
07c370 |
- Disabled resteasy-cdi for rhel 7.0
|
|
|
07c370 |
|
|
|
07c370 |
* Tue Aug 7 2012 Ade Lee <alee@redhat.com> - 2.3.2-9
|
|
|
07c370 |
- Added tomcat6-servlet-2.5-api as a dependency
|
|
|
07c370 |
|
|
|
07c370 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-8
|
|
|
07c370 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
07c370 |
|
|
|
07c370 |
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-7
|
|
|
07c370 |
- Create also the jandex index jar files
|
|
|
07c370 |
|
|
|
07c370 |
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-6
|
|
|
07c370 |
- Added resteasy-multipart-provider module
|
|
|
07c370 |
|
|
|
07c370 |
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-5
|
|
|
07c370 |
- Fix the async HTTP Servlet 3.0 artifact id
|
|
|
07c370 |
|
|
|
07c370 |
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-4
|
|
|
07c370 |
- Added an additional artifact and group id for jaxrs-api
|
|
|
07c370 |
|
|
|
07c370 |
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-3
|
|
|
07c370 |
- Added async HTTP Servlet 3.0 module
|
|
|
07c370 |
|
|
|
07c370 |
* Thu Apr 12 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-2
|
|
|
07c370 |
- Build CDI integration module (bug #812978)
|
|
|
07c370 |
|
|
|
07c370 |
* Tue Mar 6 2012 Ade Lee <alee@redhat.com> 2.3.2-1
|
|
|
07c370 |
- Initial packaging
|