%define javahome %{_jvmdir}/jdk Name: java-wsdl4j Version: 1.6.2 Release: 3mamba Summary: Web Services Description Language Toolkit for Java Group: Applications/Publishing Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://sourceforge.net/projects/wsdl4j # cvs -d:pserver:anonymous@wsdl4j.cvs.sourceforge.net:/cvsroot/wsdl4j login # cvs -z3 -d:pserver:anonymous@wsdl4j.cvs.sourceforge.net:/cvsroot/wsdl4j export -r wsdl4j-1_6_2 wsdl4j Source0: wsdl4j-%{version}-src-cvs.tar.gz Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/wsdl4j/wsdl4j/%{version}/wsdl4j-%{version}.pom Source2: wsdl4j-qname-%{version}.pom License: Common Public License 1.0, GPL BuildRequires: apache-ant BuildRequires: apache-ant-junit BuildRequires: java-junit3 BuildRequires: jpackage-utils BuildRequires: xerces-j2 Requires: xerces-j2 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The Web Services Description Language for Java Toolkit (WSDL4J) allows the creation, representation, and manipulation of WSDL documents. Is the reference implementation for JSR110 'JWSDL' (jcp.org). Post questions/bugs to jsr110-eg-disc@yahoogroups.com %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc The Web Services Description Language for Java Toolkit (WSDL4J) allows the creation, representation, and manipulation of WSDL documents. Is the reference implementation for JSR110 'JWSDL' (jcp.org). Post questions/bugs to jsr110-eg-disc@yahoogroups.com This package contains Javadoc for %{name}. %prep %setup -q -n wsdl4j-%{version} for j in $(find -name "*.jar"); do mv $j $j.no done %build export JAVA_HOME=%javahome export CLASSPATH=$(build-classpath xerces-j2 junit-3.8.2 ant/ant-junit) ant -Dbuild.compiler=modern compile test javadocs %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -m 644 build/lib/wsdl4j.jar \ %{buildroot}%{_javadir}/wsdl4j-%{version}.jar install -m 644 build/lib/qname.jar \ %{buildroot}%{_javadir}/wsdl4j-qname-%{version}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) %add_to_maven_depmap wsdl4j wsdl4j %{version} JPP wsdl4j %add_to_maven_depmap wsdl4j wsdl4j-qname %{version} JPP wsdl4j-qname mkdir -p %{buildroot}%{_datadir}/maven2/poms install -pm 644 %{SOURCE1} \ %{buildroot}%{_datadir}/maven2/poms/JPP.wsdl4j.pom install -pm 644 %{SOURCE2} \ %{buildroot}%{_datadir}/maven2/poms/JPP.wsdl4j-qname.pom mkdir -p %{buildroot}%{_javadocdir}/wsdl4j-%{version} cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/wsdl4j-%{version}/ ln -s wsdl4j-%{version} %{buildroot}%{_javadocdir}/wsdl4j #%{_bindir}/aot-compile-rpm %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/wsdl4j-qname-%{version}.jar %{_javadir}/wsdl4j-qname.jar %{_javadir}/wsdl4j-%{version}.jar %{_javadir}/wsdl4j.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %doc license.html %files javadoc %defattr(-,root,root) %{_javadocdir}/wsdl4j-%{version} %{_javadocdir}/wsdl4j %changelog * Sun Mar 27 2011 gil 1.6.2-3mamba - rebuilt with java-openjdk support * Thu Nov 25 2010 gil 1.6.2-2mamba - rebuilt devel * Fri Jul 24 2009 gil 1.6.2-1mamba - update to 1.6.2 * Wed Mar 11 2009 gil 1.5.2-1mamba - package created by autospec