%global namedreltag .Final %global namedversion %{version}%{namedreltag} Name: resteasy Version: 3.0.1 Release: 2%{?dist} Summary: Framework for RESTful Web services and Java applications License: ASL 2.0 and CDDL URL: http://www.jboss.org/resteasy Source0: https://github.com/resteasy/Resteasy/archive/%{namedversion}.tar.gz # Support for mime4j 0.7.2 Patch0: 0001-Mime4j-0.7.2-support.patch BuildArch: noarch BuildRequires: apache-commons-lang BuildRequires: apache-commons-cli BuildRequires: apache-commons-codec BuildRequires: apache-commons-logging BuildRequires: apache-commons-collections BuildRequires: apache-mime4j >= 0:0.7.2-2 BuildRequires: apache-james-project BuildRequires: bea-stax BuildRequires: bean-validation-api BuildRequires: bouncycastle BuildRequires: bouncycastle-mail BuildRequires: cglib BuildRequires: classmate BuildRequires: codehaus-parent BuildRequires: dnsjava BuildRequires: geronimo-annotation BuildRequires: glassfish-jaxb >= 0:2.2.5-2 BuildRequires: glassfish-jaxb-api BuildRequires: google-guice BuildRequires: hibernate-validator BuildRequires: httpcomponents-client BuildRequires: httpcomponents-core BuildRequires: hsqldb BuildRequires: httpunit BuildRequires: infinispan BuildRequires: jackson-databind BuildRequires: jackson-module-jaxb-annotations BuildRequires: jackson-annotations BuildRequires: jackson-core BuildRequires: jackson-jaxrs-json-provider BuildRequires: jakarta-commons-httpclient BuildRequires: javamail BuildRequires: javassist BuildRequires: jandex BuildRequires: jboss-servlet-2.5-api BuildRequires: jboss-servlet-3.0-api BuildRequires: jcip-annotations BuildRequires: jettison BuildRequires: jetty-server BuildRequires: junit4 BuildRequires: netty BuildRequires: scannotation BuildRequires: slf4j BuildRequires: snakeyaml BuildRequires: glassfish-fastinfoset BuildRequires: tomcat-el-2.2-api BuildRequires: cdi-api BuildRequires: xerces-j2 BuildRequires: picketbox BuildRequires: springframework-webmvc BuildRequires: jetty-version-maven-plugin BuildRequires: maven-local BuildRequires: maven-compiler-plugin BuildRequires: maven-deploy-plugin BuildRequires: maven-install-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-jaxb2-plugin BuildRequires: maven-plugin-cobertura BuildRequires: maven-pmd-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-site-plugin BuildRequires: maven-source-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-report-plugin BuildRequires: maven-surefire-provider-junit4 BuildRequires: jboss-annotations-1.1-api %description RESTEasy contains a JBoss project that provides frameworks to help build RESTful Web Services and RESTful Java applications. It is a fully certified and portable implementation of the JAX-RS specification. %package javadoc Summary: Javadocs for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n Resteasy-%{namedversion} # Disable unnecesary modules %pom_disable_module examples jaxrs/pom.xml %pom_disable_module profiling-tests jaxrs/pom.xml %pom_disable_module resteasy-test-data jaxrs/pom.xml %pom_disable_module war-tests jaxrs/pom.xml %pom_disable_module eagledns jaxrs/pom.xml %pom_disable_module resteasy-links jaxrs/pom.xml %pom_disable_module jboss-modules jaxrs/pom.xml %pom_disable_module resteasy-oauth jaxrs/security/pom.xml %pom_disable_module login-module-authenticator jaxrs/security/pom.xml %pom_disable_module skeleton-key-idm jaxrs/security/pom.xml %pom_disable_module keystone/keystone-as7 jaxrs/security/pom.xml %pom_disable_module keystone/keystone-as7-modules jaxrs/security/pom.xml %pom_disable_module async-http-servlet-3.0-test jaxrs/async-http-servlet-3.0/pom.xml # HV 4.3 %pom_disable_module resteasy-hibernatevalidator-provider jaxrs/providers/pom.xml # Replace 2.5 servlet with the jboss-servlet-2.5-api provides for m in jaxrs/tjws; do %pom_remove_dep "javax.servlet:servlet-api" ${m}/pom.xml %pom_add_dep "org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec" ${m}/pom.xml done # Need to be patched to work with Jetty 9 rm jaxrs/resteasy-spring/src/main/java/org/jboss/resteasy/springmvc/JettyLifecycleManager.java %pom_remove_dep "org.springframework:spring-test" jaxrs/resteasy-spring/pom.xml %pom_remove_dep "org.mortbay.jetty:jetty" jaxrs/resteasy-spring/pom.xml %pom_add_dep "org.eclipse.jetty:jetty-server" jaxrs/resteasy-spring/pom.xml # Fixing JDK7 ASCII issues files=' jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/JSAPIWriter.java jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/JSAPIServlet.java jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/ServiceRegistry.java ' for f in ${files}; do native2ascii -encoding UTF8 ${f} ${f} done %patch0 -p1 %build %mvn_build -f # Create Jandex index file(s) # Not all files are required by WildFly, but let's create indexes for all of them find -name 'resteasy-*-%{namedversion}.jar' | while read f; do java -cp $(build-classpath jandex) org.jboss.jandex.Main -j ${f} done %install %mvn_install find -name "resteasy-*-jandex.jar" | while read f; do install -pm 644 ${f} %{buildroot}%{_javadir}/%{name}/$(basename $f) done %files -f .mfiles %dir %{_javadir}/%{name} %{_javadir}/%{name}/*jandex.jar %doc jaxrs/License.html jaxrs/README.html %files javadoc -f .mfiles-javadoc %doc jaxrs/License.html %changelog * Fri Aug 09 2013 Marek Goldmann - 3.0.1-2 - Added jandex index files to all jars * Fri Aug 09 2013 Marek Goldmann - 3.0.1-1 - Upstream release 3.0.1.Final - Using xmvn * Sun Aug 04 2013 Fedora Release Engineering - 2.3.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu May 9 2013 Ade Lee 2.3.2-13 - Removed dependency on maven-checkstyle-plugin * Tue Apr 2 2013 Endi S. Dewata - 2.3.2-12 - Removed Tomcat 6 dependency * Thu Feb 14 2013 Fedora Release Engineering - 2.3.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 2.3.2-10 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Tue Aug 7 2012 Ade Lee - 2.3.2-9 - Added tomcat6-servlet-2.5-api as a dependency * Sat Jul 21 2012 Fedora Release Engineering - 2.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Apr 24 2012 Marek Goldmann 2.3.2-7 - Create also the jandex index jar files * Tue Apr 24 2012 Marek Goldmann 2.3.2-6 - Added resteasy-multipart-provider module * Mon Apr 23 2012 Juan Hernandez 2.3.2-5 - Fix the async HTTP Servlet 3.0 artifact id * Mon Apr 23 2012 Juan Hernandez 2.3.2-4 - Added an additional artifact and group id for jaxrs-api * Mon Apr 23 2012 Juan Hernandez 2.3.2-3 - Added async HTTP Servlet 3.0 module * Mon Apr 12 2012 Juan Hernandez 2.3.2-2 - Build CDI integration module (bug #812978) * Thu Mar 6 2012 Ade Lee 2.3.2-1 - Initial packaging