%define maven 0 Name: apache-ws-axis2-saaj-api Version: 1.4 Release: 2mamba Summary: Apache Axis2 - SAAJ API Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://ws.apache.org/axis2/index.html # https://svn.apache.org/repos/asf/webservices/axis2/tags/java/v1.4/modules/saaj-api/ axis2-saaj-api-1.4 Source0: axis2-saaj-api-%{version}-src-svn.tar.gz Source1: maven2-2.2.0-settings.xml Source2: apache-ws-axis2-saaj-api-1.4-parent.pom Source3: apache-ws-axis2-saaj-api-1.4-build.xml Source4: apache-ws-axis2-saaj-api-1.4-maven-build.properties Source5: apache-ws-axis2-saaj-api-1.4-maven-build.xml Patch0: apache-ws-axis2-saaj-api-1.4-parent-pom.patch License: Apache Software License Version 2.0 BuildRequires: apache-ant BuildRequires: apache-geronimo-1.2-specs BuildRequires: apache-log4j BuildRequires: apache-ws-commons-axiom %if %maven BuildRequires: apache-maven BuildRequires: apache-maven-plugin-ant BuildRequires: apache-maven-plugin-compiler BuildRequires: apache-maven-plugin-install BuildRequires: apache-maven-plugin-jar BuildRequires: apache-maven-plugin-javadoc %endif BuildRequires: jakarta-commons-io BuildRequires: jakarta-commons-logging BuildRequires: java-jaxen BuildRequires: java-junit45 BuildRequires: java-sun-mail-1.4-api BuildRequires: java-sun-jaf BuildRequires: java-wstx BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xml-commons-apis BuildRequires: xmlunit BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Axis2 SAAJ API %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc Apache Axis2 - SAAJ API. This package contains documentation for %{name}. %prep %setup -q -n axis2-saaj-api-%{version} for f in $(find . -name "*.jar"); do mv $f $f.no done %if %maven cp %{SOURCE1} settings.xml mkdir -p .m2/repository/JPP/maven2 sed -i -e "s|__INTERNAL_REPO_PLACEHOLDER__|file://`pwd`/external_repo|g" settings.xml sed -i -e "s|__EXTERNAL_REPO_PLACEHOLDER__|file://`pwd`/.m2/repository|g" settings.xml mkdir -p .m2/repository/org/apache/axis2/axis2-parent/1.4 cp %{SOURCE2} .m2/repository/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom mkdir -p parent cp %{SOURCE2} parent/pom.xml %patch0 %else cp %{SOURCE3} build.xml cp %{SOURCE4} maven-build.properties cp %{SOURCE5} maven-build.xml %endif %build export JAVA_HOME=/usr/lib/jvm/jdk-sun export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository mkdir -p $MAVEN_REPO_LOCAL mkdir -p $MAVEN_REPO_LOCAL/junit/junit/4.4 ln -sf $(build-classpath junit45) $MAVEN_REPO_LOCAL/junit/junit/4.4/junit-4.4.jar mkdir -p $MAVEN_REPO_LOCAL/geronimo-spec/geronimo-activation_1.1_spec/1.0.1 ln -sf $(build-classpath geronimo/activation-1.0.2-api-1.2) \ $MAVEN_REPO_LOCAL/geronimo-spec/geronimo-activation_1.1_spec/1.0.1/geronimo-activation_1.1_spec-1.0.1.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.2 ln -sf $(build-classpath geronimo/javamail-1.4-api-1.1) \ $MAVEN_REPO_LOCAL/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.2/geronimo-javamail_1.4_spec-1.2.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1 ln -sf $(build-classpath geronimo/stax-api-1.0-api-1.0) \ $MAVEN_REPO_LOCAL/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar mkdir -p $MAVEN_REPO_LOCAL/xerces/xercesImpl/2.8.1 ln -sf $(build-classpath xercesImpl) $MAVEN_REPO_LOCAL/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar mkdir -p $MAVEN_REPO_LOCAL/xml-apis/xml-apis/1.3.04 ln -sf $(build-classpath xml-commons-apis) $MAVEN_REPO_LOCAL/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar mkdir -p $MAVEN_REPO_LOCAL/xalan/xalan/2.7.0 ln -sf $(build-classpath xalan-j2) $MAVEN_REPO_LOCAL/xalan/xalan/2.7.0/xalan-2.7.0.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/ws/commons/axiom/axiom-api/1.2.7 ln -sf $(build-classpath ws-commons-axiom-api) $MAVEN_REPO_LOCAL/org/apache/ws/commons/axiom/axiom-api/1.2.7/axiom-api-1.2.7.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/ws/commons/axiom/axiom-impl/1.2.7 ln -sf $(build-classpath ws-commons-axiom-impl) $MAVEN_REPO_LOCAL/org/apache/ws/commons/axiom/axiom-impl/1.2.7/axiom-impl-1.2.7.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/ws/commons/axiom/axiom-dom/1.2.7 ln -sf $(build-classpath ws-commons-axiom-dom) $MAVEN_REPO_LOCAL/org/apache/ws/commons/axiom/axiom-dom/1.2.7/axiom-dom-1.2.7.jar mkdir -p $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1.1 ln -sf $(build-classpath commons-logging) $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar mkdir -p $MAVEN_REPO_LOCAL/commons-io/commons-io/1.4 ln -sf $(build-classpath commons-io) $MAVEN_REPO_LOCAL/commons-io/commons-io/1.4/commons-io-1.4.jar mkdir -p $MAVEN_REPO_LOCAL/jaxen/jaxen/1.1.1 ln -sf $(build-classpath jaxen) $MAVEN_REPO_LOCAL/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar mkdir -p $MAVEN_REPO_LOCAL/org/codehaus/woodstox/wstx-asl/3.2.4 ln -sf $(build-classpath wstx/wstx-asl) $MAVEN_REPO_LOCAL/org/codehaus/woodstox/wstx-asl/3.2.4/wstx-asl-3.2.4.jar mkdir -p $MAVEN_REPO_LOCAL/javax/mail/mail/1.4 ln -sf $(build-classpath sun-mail-api) $MAVEN_REPO_LOCAL/javax/mail/mail/1.4/mail-1.4.jar mkdir -p $MAVEN_REPO_LOCAL/javax/activation/activation/1.1 ln -sf $(build-classpath sun-jaf) $MAVEN_REPO_LOCAL/javax/activation/activation/1.1/activation-1.1.jar mkdir -p $MAVEN_REPO_LOCAL/xmlunit/xmlunit/1.1 ln -sf $(build-classpath xmlunit) $MAVEN_REPO_LOCAL/xmlunit/xmlunit/1.1/xmlunit-1.1.jar %if %maven export MAVEN_SETTINGS=$(pwd)/settings.xml mkdir external_repo ln -s %{_javadir} external_repo/JPP mvn-jpp \ -e \ -s $MAVEN_SETTINGS \ -Dmaven.test.failure.ignore=true \ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ ant:ant install javadoc:javadoc %else export CLASSPATH="" CLASSPATH=$CLASSPATH:$(build-classpath geronimo/activation-1.0.2-api-1.2 geronimo/javamail-1.4-api-1.1 geronimo/stax-api-1.0-api-1.0) CLASSPATH=$CLASSPATH:$(build-classpath commons-io commons-logging commons-logging-api jaxen xml-commons-apis xercesImpl xalan-j2 wstx/wstx-asl) CLASSPATH=$CLASSPATH:$(build-classpath ws-commons-axiom-api ws-commons-axiom-impl ws-commons-axiom-dom) CLASSPATH=$CLASSPATH:$(build-classpath sun-mail-api sun-jaf xmlunit) CLASSPATH=$CLASSPATH:$(build-classpath log4j junit45):target/classes:target/test-classes ant \ -Duser.home=$PWD \ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ -Dmaven.settings.offline=true \ -Dmaven.settings.interactiveMode=false \ jar javadoc %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_datadir}/maven2/poms install -pm 644 target/axis2-saaj-api-%{version}.jar \ %{buildroot}%{_javadir}/ws-axis2-saaj-api-%{version}.jar %add_to_maven_depmap org.apache.axis2 axis2-saaj-api %{version} JPP ws-axis2-saaj-api install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-axis2-saaj-api.pom ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/ws-axis2-saaj-api-%{version} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/ws-axis2-saaj-api-%{version} ln -s ws-axis2-saaj-api-%{version} %{buildroot}%{_javadocdir}/ws-axis2-saaj-api %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/ws-axis2-saaj-api-%{version}.jar %{_javadir}/ws-axis2-saaj-api.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %files javadoc %defattr(-,root,root) %{_javadocdir}/ws-axis2-saaj-api-%{version} %{_javadocdir}/ws-axis2-saaj-api %changelog * Thu Nov 25 2010 gil 1.4-2mamba - rebuilt devel * Thu Jan 14 2010 gil 1.4-1mamba - package created by autospec