resteasy/resteasy.spec

240 lines
7.9 KiB
RPMSpec
Raw Normal View History

2012-03-21 04:22:58 +00:00
%global namedreltag .Final
%global namedversion %{version}%{namedreltag}
2013-08-09 07:14:51 +00:00
Name: resteasy
2014-01-13 08:01:27 +00:00
Version: 3.0.6
Release: 3%{?dist}
2013-08-09 07:14:51 +00:00
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
2012-03-21 04:22:58 +00:00
2012-04-24 11:41:10 +00:00
# Support for mime4j 0.7.2
2013-08-09 07:14:51 +00:00
Patch0: 0001-Mime4j-0.7.2-support.patch
2012-03-21 04:22:58 +00:00
BuildArch: noarch
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-cli
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-collections
2012-04-24 11:41:10 +00:00
BuildRequires: apache-mime4j >= 0:0.7.2-2
BuildRequires: apache-james-project
2012-03-21 04:22:58 +00:00
BuildRequires: bea-stax
2013-08-09 07:14:51 +00:00
BuildRequires: bean-validation-api
2012-03-21 04:22:58 +00:00
BuildRequires: bouncycastle
BuildRequires: bouncycastle-mail
BuildRequires: cglib
2013-08-09 07:14:51 +00:00
BuildRequires: classmate
2012-03-21 04:22:58 +00:00
BuildRequires: codehaus-parent
BuildRequires: dnsjava
BuildRequires: geronimo-annotation
BuildRequires: glassfish-jaxb >= 0:2.2.5-2
BuildRequires: glassfish-jaxb-api
BuildRequires: google-guice
2013-08-09 07:14:51 +00:00
BuildRequires: hibernate-validator
2012-03-21 04:22:58 +00:00
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: hsqldb
BuildRequires: httpunit
2013-08-09 07:14:51 +00:00
BuildRequires: infinispan
BuildRequires: jackson-databind
BuildRequires: jackson-module-jaxb-annotations
BuildRequires: jackson-annotations
BuildRequires: jackson-core
BuildRequires: jackson-jaxrs-json-provider
2012-03-21 04:22:58 +00:00
BuildRequires: jakarta-commons-httpclient
BuildRequires: javamail
BuildRequires: javassist
2013-08-09 07:14:51 +00:00
BuildRequires: jandex
BuildRequires: jboss-servlet-2.5-api
BuildRequires: jboss-servlet-3.0-api
2012-03-21 04:22:58 +00:00
BuildRequires: jcip-annotations
BuildRequires: jettison
2013-08-09 07:14:51 +00:00
BuildRequires: jetty-server
2012-03-21 04:22:58 +00:00
BuildRequires: junit4
2014-01-13 08:01:27 +00:00
BuildRequires: jsonp
2013-08-09 07:14:51 +00:00
BuildRequires: netty
2012-03-21 04:22:58 +00:00
BuildRequires: scannotation
BuildRequires: slf4j
BuildRequires: snakeyaml
BuildRequires: glassfish-fastinfoset
BuildRequires: tomcat-el-2.2-api
BuildRequires: cdi-api
2012-03-21 04:22:58 +00:00
BuildRequires: xerces-j2
2013-08-09 07:14:51 +00:00
BuildRequires: picketbox
BuildRequires: springframework-webmvc
2012-03-21 04:22:58 +00:00
BuildRequires: jetty-version-maven-plugin
BuildRequires: maven-local
2012-03-21 04:22:58 +00:00
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
2014-01-13 08:01:27 +00:00
BuildRequires: undertow
2012-03-21 04:22:58 +00:00
%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
2013-08-09 07:14:51 +00:00
%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 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
2014-01-13 08:01:27 +00:00
%pom_disable_module callback-test jaxrs/async-http-servlet-3.0/pom.xml
2013-08-09 11:13:40 +00:00
# HV 4.3
2013-08-09 07:14:51 +00:00
%pom_disable_module resteasy-hibernatevalidator-provider jaxrs/providers/pom.xml
2014-01-14 09:43:17 +00:00
%if 0%{?fedora} > 20
# Leave Netty 4, disable Netty 3
%pom_disable_module resteasy-netty jaxrs/server-adapters/pom.xml
%else
# Leave Netty 3, disable Netty 4
2014-01-13 08:01:27 +00:00
%pom_disable_module resteasy-netty4 jaxrs/server-adapters/pom.xml
2014-01-14 09:43:17 +00:00
%endif
2014-01-13 08:01:27 +00:00
2013-08-09 07:14:51 +00:00
# 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
2012-03-21 04:22:58 +00:00
%build
2013-08-09 07:14:51 +00:00
%mvn_build -f
2012-03-21 04:22:58 +00:00
2013-08-09 11:13:40 +00:00
# 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
2012-03-21 04:22:58 +00:00
%install
2013-08-09 07:14:51 +00:00
%mvn_install
2012-05-11 12:59:00 +00:00
2013-08-09 11:13:40 +00:00
find -name "resteasy-*-jandex.jar" | while read f; do
install -pm 644 ${f} %{buildroot}%{_javadir}/%{name}/$(basename -s "-%{namedversion}-jandex.jar" $f)-jandex.jar
2013-08-09 11:13:40 +00:00
done
2013-08-09 07:14:51 +00:00
%files -f .mfiles
%dir %{_javadir}/%{name}
2013-08-09 11:13:40 +00:00
%{_javadir}/%{name}/*jandex.jar
2013-08-09 07:14:51 +00:00
%doc jaxrs/License.html jaxrs/README.html
2012-05-11 12:59:00 +00:00
2013-08-09 07:14:51 +00:00
%files javadoc -f .mfiles-javadoc
%doc jaxrs/License.html
2012-03-21 04:22:58 +00:00
%changelog
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 3.0.6-3
- Use Requires: java-headless rebuild (#1067528)
2014-01-14 09:43:17 +00:00
* Tue Jan 14 2014 Marek Goldmann <mgoldman@redhat.com> - 3.0.6-2
- Support for Netty 4 in Rawhide
2014-01-13 08:01:27 +00:00
* Fri Jan 10 2014 Marek Goldmann <mgoldman@redhat.com> - 3.0.6-1
- Upstream release 3.0.6.Final
* Fri Aug 09 2013 Marek Goldmann <mgoldman@redhat.com> - 3.0.1-3
- Remove versioning from the jandex files
2013-08-09 11:13:40 +00:00
* Fri Aug 09 2013 Marek Goldmann <mgoldman@redhat.com> - 3.0.1-2
- Added jandex index files to all jars
2013-08-09 07:14:51 +00:00
* Fri Aug 09 2013 Marek Goldmann <mgoldman@redhat.com> - 3.0.1-1
- Upstream release 3.0.1.Final
- Using xmvn
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu May 9 2013 Ade Lee <alee@redhat.com> 2.3.2-13
- Removed dependency on maven-checkstyle-plugin
* Tue Apr 2 2013 Endi S. Dewata <edewata@redhat.com> - 2.3.2-12
- Removed Tomcat 6 dependency
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 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 <alee@redhat.com> - 2.3.2-9
- Added tomcat6-servlet-2.5-api as a dependency
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-05-11 12:59:00 +00:00
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-7
- Create also the jandex index jar files
2012-04-24 11:41:10 +00:00
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-6
- Added resteasy-multipart-provider module
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-5
- Fix the async HTTP Servlet 3.0 artifact id
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-4
- Added an additional artifact and group id for jaxrs-api
* Mon Apr 23 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-3
- Added async HTTP Servlet 3.0 module
* Mon Apr 12 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.3.2-2
- Build CDI integration module (bug #812978)
2012-03-21 04:22:58 +00:00
* Thu Mar 6 2012 Ade Lee <alee@redhat.com> 2.3.2-1
- Initial packaging