%define javahome /usr/lib/jvm/java %define with_gcj_support 1 %define with_test 1 Name: java-xmldb-xupdate Version: 0.4 Release: 2mamba Summary: XML Update Language Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://xmldb-org.sourceforge.net/xupdate/ #Source0: http://downloads.sourceforge.net/project/xmldb-org/xupdate/xmldb-xupdate%200.x/xmldb-xupdate-%{version}.zip # cvs -d:pserver:anonymous@xmldb-org.cvs.sourceforge.net:/cvsroot/xmldb-org login # cvs -z3 -d:pserver:anonymous@xmldb-org.cvs.sourceforge.net:/cvsroot/xmldb-org co -P xupdate Source0: xmldb-xupdate-0.4.src-cvs.tar.gz Source1: java-xmldb-xupdate-0.4.pom License: BSD BuildRequires: apache-ant BuildRequires: java-checkstyle BuildRequires: java-junit3 BuildRequires: java-openjdk BuildRequires: java-xmldb-common BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xml-commons-apis Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The mission of the XUpdate Working Group is to provide open and flexible update facilities to modify data in XML documents. Doing so it is not important where the documents come from. It can be real documents or virtual documents retrieved from XML databases. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc XML:DB provides a community for collaborative development of specifications for XML databases and data manipulation technologies. Along with each specification an open source reference implementation will be developed to validate the ideas. This package contains documentation for %{name}. %if %with_gcj_support %package gcj Summary: GCJ %{name} support Group: System/Libraries/Java BuildRequires: java-gcj-compat BuildRequires: libgcj4-devel Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: java-gcj-compat Requires: jpackage-utils %description gcj %{name} - XML Update Language. This package contains GCJ %{name} support. %endif %prep %setup -q -n xupdate for d in $(find . -name "CVS"); do rm -rf $d done for j in $(find . -name "*.jar"); do mv $j $j.no done %build cd src export JAVA_HOME=%javahome export CLASSPATH=$(build-classpath checkstyle-all junit-3.8.2 xalan-j2 xml-commons-apis xerces-j2 ant-1.7.1 xmldb-common) usejikes=false \ ant \ -Dsrc=. \ -Djarname=xmldb-xupdate \ dist %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" cd src mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_datadir}/maven2/poms install -m 644 lib/xmldb-xupdate.jar \ %{buildroot}%{_javadir}/xmldb-xupdate-%{version}.jar %add_to_maven_depmap xmldb xmldb-xupdate %{version} JPP xmldb-xupdate install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-xmldb-xupdate.pom ( cd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/} done ) mkdir -p %{buildroot}%{_javadocdir}/xmldb-xupdate-%{version} cp -pr build/docs/* %{buildroot}%{_javadocdir}/xmldb-xupdate-%{version} ln -s xmldb-xupdate-%{version} %{buildroot}%{_javadocdir}/xmldb-xupdate %if %with_gcj_support %{_bindir}/aot-compile-rpm %endif %if %with_test export JAVA_HOME=%javahome export CLASSPATH=$(build-classpath checkstyle-all junit-3.8.2 xalan-j2 xml-commons-apis xerces-j2 ant-1.7.1 xmldb-common) usejikes=false ant -Dsrc=. test %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/xmldb-xupdate-%{version}.jar %{_javadir}/xmldb-xupdate.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %files javadoc %defattr(-,root,root) %{_javadocdir}/xmldb-xupdate-%{version} %{_javadocdir}/xmldb-xupdate %if %with_gcj_support %post gcj /sbin/ldconfig if [ -x %{_bindir}/rebuild-gcj-db ]; then %{_bindir}/rebuild-gcj-db fi %postun gcj /sbin/ldconfig if [ -x %{_bindir}/rebuild-gcj-db ]; then %{_bindir}/rebuild-gcj-db fi %files gcj %defattr(-,root,root) %{_libdir}/gcj/java-xmldb-xupdate/xmldb-xupdate-%{version}.jar.db %{_libdir}/gcj/java-xmldb-xupdate/xmldb-xupdate-%{version}.jar.so %endif %changelog * Fri Mar 11 2011 gil 0.4-2mamba - rebuilt with java-gcj-compat and java-openjdk support - rebuilt in devel * Wed Nov 18 2009 gil 0.4-1mamba - update to 0.4 * Mon Jun 29 2009 gil 0.3-1mamba - package created by autospec