resteasy/resteasy.spec

292 lines
8.3 KiB
RPMSpec
Raw Normal View History

2012-03-21 04:22:58 +00:00
%global namedreltag .Final
%global namedversion %{version}%{namedreltag}
Name: resteasy
Version: 2.3.2
Release: 8%{?dist}
2012-03-21 04:22:58 +00:00
Summary: Framework for RESTful Web services and Java applications
Group: Development/Libraries
License: ASL 2.0 and CDDL
URL: http://www.jboss.org/resteasy
# git clone git://github.com/resteasy/Resteasy.git
# cd Resteasy
# git archive --prefix=resteasy-2.3.2.Final/ --output=resteasy-2.3.2.Final.tgz RESTEASY_JAXRS_2_3_2_FINAL
Source0: %{name}-%{namedversion}.tgz
Patch0: %{name}-%{namedversion}-remove-dependenciesA.patch
Patch1: %{name}-%{namedversion}-fix-tests.patch
Patch2: %{name}-%{namedversion}-remove-currently-unbuilt-modules.patch
Patch3: %{name}-%{namedversion}-fix-javadoc.patch
2012-04-24 11:41:10 +00:00
# Support for mime4j 0.7.2
Patch4: %{name}-%{namedversion}-mime4j-0.7.2.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
BuildRequires: bouncycastle
BuildRequires: bouncycastle-mail
BuildRequires: cglib
BuildRequires: codehaus-parent
BuildRequires: dnsjava
BuildRequires: geronimo-annotation
BuildRequires: glassfish-jaxb >= 0:2.2.5-2
BuildRequires: glassfish-jaxb-api
BuildRequires: google-guice
# BuildRequires: hibernate3-ejb3-persistence-3.0-api
# BuildRequires: hibernate-validator
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: hsqldb
BuildRequires: httpunit
BuildRequires: jackson
BuildRequires: jakarta-commons-httpclient
BuildRequires: javamail
BuildRequires: javassist
2012-05-11 12:59:00 +00:00
BuildRequires: jandex >= 1.0.3-4
2012-03-21 04:22:58 +00:00
# BuildRequires: jboss-ejb3-ext-api
# BuildRequires: jbosscache-core
# BuildRequires: jboss-web
BuildRequires: jcip-annotations
BuildRequires: jettison
BuildRequires: jetty
BuildRequires: junit4
# BuildRequires: jyaml
# BuildRequires: liblog4j-java
# BuildRequires: oauth
BuildRequires: scannotation
BuildRequires: slf4j
BuildRequires: snakeyaml
#BuildRequires: spring3-core
#BuildRequires: spring3-test
#BuildRequires: spring3-web-servlet
BuildRequires: glassfish-fastinfoset
#BuildRequires: sun-sjsxp
BuildRequires: tomcat-el-2.2-api
BuildRequires: tomcat-servlet-3.0-api
#BuildRequires: tomcat6
#BuildRequires: tomcat6-lib
BuildRequires: cdi-api
2012-03-21 04:22:58 +00:00
BuildRequires: xerces-j2
#BuildRequires: findbugs-maven-plugin
BuildRequires: jetty-version-maven-plugin
BuildRequires: maven
BuildRequires: maven-checkstyle-plugin
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
BuildRequires: jpackage-utils
BuildRequires: java-devel
# A:
Requires: apache-commons-cli
Requires: apache-commons-codec
Requires: apache-commons-collections
Requires: apache-commons-lang
Requires: apache-commons-logging
2012-04-24 11:41:10 +00:00
Requires: apache-mime4j >= 0:0.7.2-2
2012-03-21 04:22:58 +00:00
# B:
Requires: bea-stax
Requires: bouncycastle
Requires: bouncycastle-mail
# C:
Requires: cglib
Requires: cdi-api
2012-03-21 04:22:58 +00:00
# D:
Requires: dnsjava
# G:
Requires: geronimo-annotation
Requires: glassfish-fastinfoset
Requires: glassfish-jaxb >= 0:2.2.5-2
Requires: glassfish-jaxb-api
Requires: google-guice
# H:
Requires: httpcomponents-client
Requires: httpcomponents-core
Requires: httpunit
# J:
Requires: jackson
Requires: jakarta-commons-httpclient
Requires: java
Requires: javamail
Requires: javassist
Requires: jcip-annotations
Requires: jettison
Requires: jpackage-utils
# S:
Requires: scannotation
Requires: slf4j
Requires: snakeyaml
# T:
#Requires: tomcat6
#Requires: tomcat6-lib
Requires: tomcat-el-2.2-api
Requires: tomcat-servlet-3.0-api
Requires: ws-jaxme
Requires: xerces-j2
%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}
Group: Documentation
Requires: jpackage-utils
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1 -b .p0
%patch1 -p1 -b .p1
%patch2 -p1 -b .p2
%patch3 -p1
2012-04-24 11:41:10 +00:00
%patch4 -p1
2012-03-21 04:22:58 +00:00
%build
mvn-rpmbuild -Dmaven.test.skip=true -e install javadoc:aggregate
%install
rm -rf %{buildroot}
# Create the directories for jars and maven files:
install -d -m 755 %{buildroot}%{_javadir}/%{name}
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -d -m 755 %{buildroot}%{_mavendepmapfragdir}
# Install jars, poms and dependencies maps:
while read module_path artifact_id additional_aid_gid
2012-03-21 04:22:58 +00:00
do
2012-05-11 12:59:00 +00:00
base_name=${module_path}/target/${artifact_id}-%{namedversion}
jar_file=${base_name}.jar
jandex_file=${base_name}-jandex.jar
2012-03-21 04:22:58 +00:00
pom_file=${module_path}/pom.xml
install -pm 644 ${pom_file} %{buildroot}%{_mavenpomdir}/JPP.%{name}-${artifact_id}.pom
if [ -f ${jar_file} ]
then
install -pm 644 ${jar_file} %{buildroot}%{_javadir}/%{name}/${artifact_id}.jar
2012-05-11 12:59:00 +00:00
# Create also the Jandex index files
# Required by JBoss AS7
java -cp $(build-classpath jandex) org.jboss.jandex.Main -j ${jar_file}
install -pm 644 ${jandex_file} %{buildroot}%{_javadir}/%{name}/${artifact_id}-jandex.jar
if [ -z "${additional_aid_gid}" ]
then
%add_maven_depmap JPP.%{name}-${artifact_id}.pom %{name}/${artifact_id}.jar
else
%add_maven_depmap JPP.%{name}-${artifact_id}.pom %{name}/${artifact_id}.jar -a ${additional_aid_gid}
fi
2012-03-21 04:22:58 +00:00
else
%add_maven_depmap JPP.%{name}-${artifact_id}.pom
fi
done <<'.'
. jaxrs-all
async-http-servlet-3.0 asynch-http-servlet-3.0
async-http-servlet-3.0/async-http-servlet-3.0 async-http-servlet-3.0
jaxrs-api jaxrs-api org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec
2012-03-21 04:22:58 +00:00
providers providers
providers/fastinfoset resteasy-fastinfoset-provider
providers/jackson resteasy-jackson-provider
providers/jaxb resteasy-jaxb-provider
providers/jettison resteasy-jettison-provider
providers/resteasy-atom resteasy-atom-provider
providers/resteasy-html resteasy-html
2012-04-24 11:41:10 +00:00
providers/multipart resteasy-multipart-provider
2012-03-21 04:22:58 +00:00
providers/yaml resteasy-yaml-provider
resteasy-bom resteasy-bom
resteasy-guice resteasy-guice
resteasy-jaxrs resteasy-jaxrs
resteasy-jsapi resteasy-jsapi
resteasy-cdi resteasy-cdi
2012-03-21 04:22:58 +00:00
tjws tjws
.
# To be added to the list above when dependencies are added to fedora to
# allow jars to be built:
# async-http-jbossweb/async-http-jbossweb-jar async-http-jbossweb
# async-http-tomcat/asynch-http-tomcat-jar async-http-tomcat6
# eagledns eagledns-fork
# providers/resteasy-hibernatevalidator-provider resteasy-hibernatevalidator-provider
# resteasy-cache/resteasy-cache-core resteasy-cache-core
# resteasy-links resteasy-links
# resteasy-spring resteasy-spring
# resteasy-crypto resteasy-crypto
# security/resteasy-oauth resteasy-oauth
# Javadoc files:
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%files
%{_javadir}/%{name}/*.jar
%{_mavenpomdir}/JPP.%{name}-*.pom
%{_mavendepmapfragdir}/%{name}
%doc License.html README.html
%files javadoc
%{_javadocdir}/%{name}
%doc License.html
%changelog
* 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