%define maven 0 %define rel rc7 Name: apache-ws-juddi Version: 2.0 Release: 2mamba Summary: is Java-based implmementation of a UDDI version 2.0 registry. Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://ws.apache.org/juddi/ #jsvn export https://svn.apache.org/repos/asf/webservices/juddi/tags/juddi-2.0rc7 # tar czf juddi-2.0rc7-src-svn.tar.gz juddi-2.0rc7 Source0: juddi-%{version}%{rel}-src-svn.tar.gz Source1: maven2-2.2.0-settings.xml Source2: juddi-%{version}%{rel}-autogeneratedfiles.tar.gz Source3: juddi-web-lean-%{version}%{rel}-autogeneratedfiles.tar.gz Patch0: apache-ws-juddi-2.0rc7-parent-pom_xml.patch Patch1: apache-ws-juddi-2.0rc7-juddi-web-lean-pom_xml.patch License: Apache License Version 2.0 BuildRequires: apache-ant BuildRequires: apache-geronimo-1.2-specs # httpcore-4.0-beta1 httpcore-nio-4.0-beta1 BuildRequires: apache-httpcomponents-httpcore BuildRequires: apache-log4j %if %maven BuildRequires: apache-maven BuildRequires: apache-maven-plugin-assembly BuildRequires: apache-maven-plugin-compiler BuildRequires: apache-maven-plugin-gpg BuildRequires: apache-maven-plugin-install BuildRequires: apache-maven-plugin-jar BuildRequires: apache-maven-plugin-javadoc BuildRequires: apache-maven-plugin-repository BuildRequires: apache-maven-plugin-resources BuildRequires: apache-maven-plugin-site BuildRequires: apache-maven-plugin-source %endif #BuildRequires: java-servletapi4 BuildRequires: apache-tomcat5-servletapi5 BuildRequires: apache-ws-commons-axiom BuildRequires: apache-ws-commons-neethi BuildRequires: apache-ws-commons-XmlSchema # for juddi-web BuildRequires: apache-ws-axis2-kernel BuildRequires: apache-ws-axis2-saaj-api BuildRequires: apache-ws-axis2-saaj # woden-api woden-impl-dom BuildRequires: apache-ws-woden BuildRequires: jakarta-commons-codec BuildRequires: jakarta-commons-fileupload BuildRequires: jakarta-commons-httpclient BuildRequires: jakarta-commons-io BuildRequires: jakarta-commons-logging BuildRequires: java-annogen BuildRequires: java-backport-util-concurrent BuildRequires: java-excalibur-avalon-framework BuildRequires: java-excalibur-avalon-logkit BuildRequires: java-jaxen BuildRequires: java-junit45 BuildRequires: java-sun-mail-1.4-api BuildRequires: java-sun-jaf BuildRequires: java-uddi4j BuildRequires: java-wsdl4j BuildRequires: java-wstx BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xml-commons-apis BuildRequires: jpackage-utils Requires: apache-tomcat5-servletapi5 Requires: apache-ws-axis2-saaj Requires: jakarta-commons-logging BuildRoot: %{_tmppath}/%{name}-%{version}-root %description jUDDI (pronounced "Judy") is an open source Java implementation of the Universal Description, Discovery, and Integration (UDDI) specification for Web Services. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc jUDDI is an open source Java implementation of the Universal Description, Discovery, and Integration (UDDI) specification for Web Services. This package contains documentation for %{name}. %if %maven %package web Group: Development/Libraries/Java Summary: juddi-web Maven Webapp Requires: %{name} = %{version} Requires: apache-tomcat5-servletapi5 Requires: apache-ws-axis2-saaj Requires: jakarta-commons-logging Requires: apache-maven %description web jUDDI is an open source Java implementation of the Universal Description, Discovery, and Integration (UDDI) specification for Web Services. This package contains %{name}-web Maven Webapp. %package web-lean Group: Development/Libraries/Java Summary: juddi-web-lean Maven Webapp Requires: %{name} = %{version} Requires: apache-tomcat5-servletapi5 Requires: apache-ws-axis2-saaj Requires: jakarta-commons-logging Requires: apache-maven %description web-lean jUDDI is an open source Java implementation of the Universal Description, Discovery, and Integration (UDDI) specification for Web Services. This package contains %{name}-web-lean Maven Webapp. %endif %prep %setup -q -n juddi-%{version}%{rel} # TODO juddi-tomcat need https://svn.apache.org/repos/asf/webservices/juddi/extras/soapconsole/ #%patch0 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 %patch1 %else tar -xf %{SOURCE2} # tar -C juddi-web-lean/src/main/webapp/ -xf %{SOURCE3} %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/commons-logging/commons-logging/1.1 ln -sf $(build-classpath commons-logging) $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1/commons-logging-1.1.jar mkdir -p $MAVEN_REPO_LOCAL/log4j/log4j/1.2.13 ln -sf $(build-classpath log4j) $MAVEN_REPO_LOCAL/log4j/log4j/1.2.13/log4j-1.2.13.jar mkdir -p $MAVEN_REPO_LOCAL/avalon-framework/avalon-framework/4.1.3 ln -sf $(build-classpath excalibur/avalon-framework) $MAVEN_REPO_LOCAL/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar mkdir -p $MAVEN_REPO_LOCAL/logkit/logkit/1.0.1 ln -sf $(build-classpath excalibur/avalon-logkit) $MAVEN_REPO_LOCAL/logkit/logkit/1.0.1/logkit-1.0.1.jar mkdir -p $MAVEN_REPO_LOCAL/javax/servlet/servlet-api/2.3 ln -sf $(build-classpath servletapi5) $MAVEN_REPO_LOCAL/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar mkdir -p $MAVEN_REPO_LOCAL/junit/junit/4.1 ln -sf $(build-classpath junit45) $MAVEN_REPO_LOCAL/junit/junit/4.1/junit-4.1.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/axis2/axis2-saaj-api/1.4 ln -sf $(build-classpath ws-axis2-saaj-api) $MAVEN_REPO_LOCAL/org/apache/axis2/axis2-saaj-api/1.4/axis2-saaj-api-1.4.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/axis2/axis2-kernel/1.4 ln -sf $(build-classpath ws-axis2-kernel) $MAVEN_REPO_LOCAL/org/apache/axis2/axis2-kernel/1.4/axis2-kernel-1.4.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/axis2/axis2-saaj/1.4 ln -sf $(build-classpath ws-axis2-saaj) $MAVEN_REPO_LOCAL/org/apache/axis2/axis2-saaj/1.4/axis2-saaj-1.4.jar mkdir -p $MAVEN_REPO_LOCAL/commons-codec/commons-codec/1.2 ln -sf $(build-classpath commons-codec) $MAVEN_REPO_LOCAL/commons-codec/commons-codec/1.2/commons-codec-1.2.jar mkdir -p $MAVEN_REPO_LOCAL/commons-fileupload/commons-fileupload/1.2 ln -sf $(build-classpath commons-fileupload) $MAVEN_REPO_LOCAL/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar mkdir -p $MAVEN_REPO_LOCAL/commons-httpclient/commons-httpclient/3.1 ln -sf $(build-classpath commons-httpclient) $MAVEN_REPO_LOCAL/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.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/org/apache/httpcomponents/httpcore/4.0-beta1 ln -sf $(build-classpath httpcore) $MAVEN_REPO_LOCAL/org/apache/httpcomponents/httpcore/4.0-beta1/httpcore-4.0-beta1.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/httpcomponents/httpcore-nio/4.0-beta1 ln -sf $(build-classpath httpcore-nio) $MAVEN_REPO_LOCAL/org/apache/httpcomponents/httpcore-nio/4.0-beta1/httpcore-nio-4.0-beta1.jar mkdir -p $MAVEN_REPO_LOCAL/wsdl4j/wsdl4j/1.6.2 ln -sf $(build-classpath wsdl4j) $MAVEN_REPO_LOCAL/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar mkdir -p $MAVEN_REPO_LOCAL/backport-util-concurrent/backport-util-concurrent/3.1 ln -sf $(build-classpath backport-util-concurrent) $MAVEN_REPO_LOCAL/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.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/org/apache/ws/commons/schema/XmlSchema/1.4.2 ln -sf $(build-classpath ws-commons-XmlSchema) $MAVEN_REPO_LOCAL/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.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/org/apache/neethi/neethi/2.0.4 ln -sf $(build-classpath ws-commons-neethi) $MAVEN_REPO_LOCAL/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/woden/woden-api/1.0M8 ln -sf $(build-classpath ws-woden-api) $MAVEN_REPO_LOCAL/org/apache/woden/woden-api/1.0M8/woden-api-1.0M8.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/woden/woden-impl-dom/1.0M8 ln -sf $(build-classpath ws-woden-impl-dom) $MAVEN_REPO_LOCAL/org/apache/woden/woden-impl-dom/1.0M8/woden-impl-dom-1.0M8.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.1 ln -sf $(build-classpath geronimo/activation-1.0.2-api-1.2) \ $MAVEN_REPO_LOCAL/org/apache/geronimo/specs/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/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/xml-apis/xml-apis/1.0.b2 ln -sf $(build-classpath xml-commons-apis) $MAVEN_REPO_LOCAL/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.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/xerces/xmlParserAPIs/2.6.0 ln -sf $(build-classpath xerces-j2) $MAVEN_REPO_LOCAL/xerces/xmlParserAPIs/2.6.0/xmlParserAPIs-2.6.0.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/ant/ant/1.7.0 ln -sf $(build-classpath ant-1.7.1) $MAVEN_REPO_LOCAL/org/apache/ant/ant/1.7.0/ant-1.7.0.jar mkdir -p $MAVEN_REPO_LOCAL/org/apache/ant/ant-launcher/1.7.0 ln -sf $(build-classpath ant-launcher) $MAVEN_REPO_LOCAL/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar mkdir -p $MAVEN_REPO_LOCAL/annogen/annogen/0.1.0 ln -sf $(build-classpath annogen) $MAVEN_REPO_LOCAL/annogen/annogen/0.1.0/annogen-0.1.0.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 %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 pushd juddi export CLASSPATH="" CLASSPATH=$CLASSPATH:$(build-classpath commons-logging excalibur/avalon-framework excalibur/avalon-logkit log4j) CLASSPATH=$CLASSPATH:$(build-classpath servletapi5 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 mkdir -p $MAVEN_REPO_LOCAL/org/apache/juddi/juddi/%{version}%{rel} cp target/juddi-%{version}%{rel}.jar $MAVEN_REPO_LOCAL/org/apache/juddi/juddi/%{version}%{rel}/ # mkdir -p ../juddi-web-lean/target/juddi/WEB-INF/lib/ # cp target/juddi-%{version}%{rel}.jar ../juddi-web-lean/target/juddi/WEB-INF/lib/ popd pushd juddi-client export CLASSPATH="" CLASSPATH=$CLASSPATH:$(build-classpath commons-logging excalibur/avalon-framework excalibur/avalon-logkit log4j) CLASSPATH=$CLASSPATH:../juddi/target/juddi-%{version}%{rel}.jar CLASSPATH=$CLASSPATH:$(build-classpath servletapi5 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 popd # pushd juddi-web-lean # export CLASSPATH="" # CLASSPATH=$CLASSPATH:../juddi/target/juddi-%{version}%{rel}.jar # CLASSPATH=$CLASSPATH:$(build-classpath junit45):target/classes:target/test-classes # ant \ # -Duser.home=$PWD \ # -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ # -Dmaven.settings.offline=true \ # -Dmaven.settings.interactiveMode=false \ # war javadoc # popd pushd juddi-ws export CLASSPATH="" CLASSPATH=$CLASSPATH:$(build-classpath commons-logging excalibur/avalon-framework excalibur/avalon-logkit log4j) CLASSPATH=$CLASSPATH:$(build-classpath backport-util-concurrent commons-codec commons-fileupload commons-httpclient) CLASSPATH=$CLASSPATH:$(build-classpath commons-io httpcore httpcore-nio wsdl4j jaxen xml-commons-apis xercesImpl xalan-j2) CLASSPATH=$CLASSPATH:$(build-classpath ant-1.7.1 ant-launcher annogen wstx/wstx-asl sun-mail-api sun-jaf) CLASSPATH=$CLASSPATH:$(build-classpath geronimo/stax-api-1.0-api-1.0 geronimo/javamail-1.4-api-1.1 geronimo/activation-1.0.2-api-1.2) CLASSPATH=$CLASSPATH:$(build-classpath ws-woden-api ws-woden-impl-dom ws-commons-neethi ws-commons-XmlSchema) CLASSPATH=$CLASSPATH:$(build-classpath ws-commons-axiom-api ws-commons-axiom-impl ws-commons-axiom-dom) CLASSPATH=$CLASSPATH:$(build-classpath ws-axis2-saaj ws-axis2-saaj-api ws-axis2-kernel) CLASSPATH=$CLASSPATH:../juddi/target/juddi-%{version}%{rel}.jar CLASSPATH=$CLASSPATH:$(build-classpath servletapi5 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 # mkdir -p $MAVEN_REPO_LOCAL/org/apache/juddi/juddi-ws/%{version}%{rel} # cp target/juddi-ws-%{version}%{rel}.jar $MAVEN_REPO_LOCAL/org/apache/juddi/juddi-ws/%{version}%{rel}/ popd # pushd juddi-web # export CLASSPATH="" # CLASSPATH=$CLASSPATH:$(build-classpath commons-logging excalibur/avalon-framework excalibur/avalon-logkit log4j) # CLASSPATH=$CLASSPATH:$(build-classpath backport-util-concurrent commons-codec commons-fileupload commons-httpclient) # CLASSPATH=$CLASSPATH:$(build-classpath commons-io httpcore httpcore-nio wsdl4j jaxen xml-commons-apis xercesImpl xalan-j2) # CLASSPATH=$CLASSPATH:$(build-classpath ant-1.7.1 ant-launcher annogen wstx/wstx-asl sun-mail-api sun-jaf) # CLASSPATH=$CLASSPATH:$(build-classpath geronimo/stax-api-1.0-api-1.0 geronimo/javamail-1.4-api-1.1 geronimo/activation-1.0.2-api-1.2) # CLASSPATH=$CLASSPATH:$(build-classpath ws-woden-api ws-woden-impl-dom ws-commons-neethi ws-commons-XmlSchema) # CLASSPATH=$CLASSPATH:$(build-classpath ws-commons-axiom-api ws-commons-axiom-impl ws-commons-axiom-dom) # CLASSPATH=$CLASSPATH:$(build-classpath ws-axis2-saaj ws-axis2-saaj-api ws-axis2-kernel) # CLASSPATH=$CLASSPATH:../juddi/target/juddi-%{version}%{rel}.jar # CLASSPATH=$CLASSPATH:../juddi-ws/target/juddi-ws-%{version}%{rel}.jar # CLASSPATH=$CLASSPATH:$(build-classpath servletapi5 junit45):target/classes:target/test-classes # ant \ # -Duser.home=$PWD \ # -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ # -Dmaven.settings.offline=true \ # -Dmaven.settings.interactiveMode=false \ # war javadoc # popd %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir}/ws-juddi # sql install -m 644 juddi/target/juddi-%{version}%{rel}.jar \ %{buildroot}%{_javadir}/ws-juddi/juddi-%{version}.jar # proxy install -m 644 juddi-client/target/juddi-client-%{version}%{rel}.jar \ %{buildroot}%{_javadir}/ws-juddi/client-%{version}.jar install -m 644 juddi-ws/target/juddi-ws-%{version}%{rel}.jar \ %{buildroot}%{_javadir}/ws-juddi/ws-%{version}.jar ( cd %{buildroot}%{_javadir}/ws-juddi for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) %if %maven install -m 644 juddi-web-lean/target/juddi.war \ %{buildroot}%{_javadir}/ws-juddi/web-lean-%{version}.war install -m 644 juddi-web/target/juddi.war \ %{buildroot}%{_javadir}/ws-juddi/web-%{version}.war ( cd %{buildroot}%{_javadir}/ws-juddi for jar in *-%{version}.war; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_var}/lib/ws-juddi/webapps mkdir -p %{buildroot}%{_datadir}/ws-juddi pushd %{buildroot}%{_datadir}/ws-juddi [ -d webapps ] || ln -fs %{_var}/lib/ws-juddi/webapps webapps popd %endif mkdir -p %{buildroot}%{_datadir}/maven2/poms install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-juddi-parent.pom %add_to_maven_depmap org.apache.juddi juddi-parent %{version}%{rel} JPP/ws-juddi parent install -pm 644 juddi/pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-juddi-juddi.pom %add_to_maven_depmap org.apache.juddi juddi %{version}%{rel} JPP/ws-juddi juddi install -pm 644 juddi-client/pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-juddi-client.pom %add_to_maven_depmap org.apache.juddi juddi-client %{version}%{rel} JPP/ws-juddi client install -pm 644 juddi-ws/pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-juddi-ws.pom %add_to_maven_depmap org.apache.juddi juddi-client %{version}%{rel} JPP/ws-juddi ws %if %maven install -pm 644 juddi-web/pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-juddi-web.pom %add_to_maven_depmap org.apache.juddi juddi-web %{version}%{rel} JPP/ws-juddi web install -pm 644 juddi-web-lean/pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.ws-juddi-web-lean.pom %add_to_maven_depmap org.apache.juddi juddi-web-lean %{version}%{rel} JPP/ws-juddi web-lean %endif mkdir -p %{buildroot}%{_javadocdir}/ws-juddi-%{version}/ %if %maven cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/ws-juddi-%{version}/ %else mkdir -p %{buildroot}%{_javadocdir}/ws-juddi-%{version}/juddi cp -pr juddi/target/site/apidocs/* %{buildroot}%{_javadocdir}/ws-juddi-%{version}/juddi mkdir -p %{buildroot}%{_javadocdir}/ws-juddi-%{version}/client cp -pr juddi-client/target/site/apidocs/* %{buildroot}%{_javadocdir}/ws-juddi-%{version}/client mkdir -p %{buildroot}%{_javadocdir}/ws-juddi-%{version}/ws cp -pr juddi-ws/target/site/apidocs/* %{buildroot}%{_javadocdir}/ws-juddi-%{version}/ws %endif ln -s ws-juddi-%{version} %{buildroot}%{_javadocdir}/ws-juddi %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/ws-juddi/juddi-%{version}.jar %{_javadir}/ws-juddi/juddi.jar %{_javadir}/ws-juddi/client-%{version}.jar %{_javadir}/ws-juddi/client.jar %{_javadir}/ws-juddi/ws-%{version}.jar %{_javadir}/ws-juddi/ws.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %if %maven %dir %{_var}/lib/ws-juddi/webapps %endif %doc LICENSE NOTICE %files javadoc %defattr(-,root,root) %{_javadocdir}/ws-juddi-%{version} %{_javadocdir}/ws-juddi %if %maven %files web %defattr(-,root,root) %dir %{_datadir}/ws-juddi/webapps %{_javadir}/ws-juddi/web-%{version}.war %{_javadir}/ws-juddi/web.war %files web-lean %defattr(-,root,root) %dir %{_datadir}/ws-juddi/webapps %{_javadir}/ws-juddi/web-lean-%{version}.war %{_javadir}/ws-juddi/web-lean.war %endif %changelog * Thu Nov 25 2010 gil 2.0-2mamba - rebuilt devel * Tue Jan 12 2010 gil 2.0-1mamba - update to 2.0 - renamed apache-ws-juddi * Sun May 17 2009 gil 0.9rc4-1mamba - package created by autospec