packages: java-xmldb/build.xml (NEW), java-xmldb/java-xmldb.spec (NEW), jav...
glen
glen at pld-linux.org
Sun Oct 23 15:37:52 CEST 2011
Author: glen Date: Sun Oct 23 13:37:52 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new, based on fedora package (which based on jpackage)
---- Files affected:
packages/java-xmldb:
build.xml (NONE -> 1.1) (NEW), java-xmldb.spec (NONE -> 1.1) (NEW), license.txt (NONE -> 1.1) (NEW), syntaxfix.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/java-xmldb/build.xml
diff -u /dev/null packages/java-xmldb/build.xml:1.1
--- /dev/null Sun Oct 23 15:37:52 2011
+++ packages/java-xmldb/build.xml Sun Oct 23 15:37:46 2011
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+ @author: Saleem Abdulrasool <compnerd at gentoo.org>
+ @date: 5/9/2005
+ @revision: 1.0_alpha
+
+ @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name}
+-->
+
+<project name="Gentoo_Builder" default="jar" basedir=".">
+ <property name="src" value="src"/>
+ <property name="build" value="build"/>
+ <property name="dist" value="dist"/>
+ <property name="project.name" value="xmldb-api"/>
+
+ <property name="pkg" value="${package.name}"/>
+ <property name="jar" value="${project.name}.jar"/>
+ <property name="sdk-jar" value="${project.name}-sdk.jar"/>
+
+ <!-- Override any defined properties -->
+ <property file="build.properties"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build}"/>
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${dist}/doc"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac source="1.4" srcdir="${src}" destdir="${build}" classpath="${classpath}" excludes="**/test"/>
+ </target>
+
+ <target name="manifest" depends="init">
+ <manifest file="${build}/MANIFEST.MF" mode="update">
+ <attribute name="Built-By" value="Gentoo Portage"/>
+ </manifest>
+ </target>
+
+ <target name="jar" depends="compile,manifest">
+ <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF">
+ <fileset dir="${build}" includes="org/xmldb/api/*.class,org/xmldb/api/base/**,org/xmldb/api/modules/**"/>
+ </jar>
+ <jar jarfile="${dist}/${sdk-jar}" manifest="${build}/MANIFEST.MF">
+ <fileset dir="${build}" includes="org/xmldb/api/*.class,org/xmldb/api/reference/**,org/xmldb/api/sdk/**"/>
+ </jar>
+ </target>
+
+ <target name="javadoc" depends="compile">
+ <javadoc destdir="${dist}/doc/api" source="1.4">
+ <fileset dir="${src}"/>
+ </javadoc>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
================================================================
Index: packages/java-xmldb/java-xmldb.spec
diff -u /dev/null packages/java-xmldb/java-xmldb.spec:1.1
--- /dev/null Sun Oct 23 15:37:52 2011
+++ packages/java-xmldb/java-xmldb.spec Sun Oct 23 15:37:46 2011
@@ -0,0 +1,136 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without javadoc # don't build javadoc
+
+%define subver 20011111cvs
+%define rel 1
+%define srcname xmldb
+%include /usr/lib/rpm/macros.java
+Summary: XML:DB API for Java
+Name: java-%{srcname}
+Version: 0.1
+Release: 0.%{subver}.%{rel}
+License: BSD
+Group: Development/Languages/Java
+Obsoletes: xmldb-api
+# wget http://trumpetti.atm.tut.fi/gentoo/distfiles/xmldb-api-11112001.tar.gz
+Source0: xmldb-xapi-%{subver}-src.tar.gz
+# Source0-md5: 559bdc3a09ea2dd6cd914103631e7141
+# http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/xmldb/files/build-20011111.xml?rev=1.1.1.1&view=markup
+Source1: build.xml
+Source2: license.txt
+Patch0: syntaxfix.patch
+URL: http://xmldb-org.sourceforge.net/
+BuildRequires: ant >= 1.6
+BuildRequires: java-junit
+BuildRequires: java-xalan
+BuildRequires: jpackage-utils >= 1.6
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+Requires: java-junit
+Requires: java-xalan
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The API interfaces are what driver developers must implement when
+creating a new driver and are the interfaces that applications are
+developed against. Along with the interfaces a concrete DriverManager
+implementation is also provides.
+
+%package sdk
+Summary: SDK for XML:DB
+Group: Documentation
+Requires: jpackage-utils
+Obsoletes: xmldb-api-sdk
+
+%description sdk
+The reference implementation provides a very simple file system based
+implementation of the XML:DB API. This provides what is basically a
+very simple native XML database that uses directories to represent
+collections and just stores the XML in files.
+
+The driver development kit provides a set of base classes that can be
+extended to simplify and speed the development of XML:DB API drivers.
+These classes are used to provide the basis for the reference
+implementation and therefore a simple example of how a driver can be
+implemented. Using the SDK classes significantly reduces the amount of
+code that must be written to create a new driver.
+
+Along with the SDK base classes the SDK also contains a set of jUnit
+test cases that can be used to help validate the driver while it is
+being developed. The test cases are still in development but there are
+enough tests currently to be useful.
+
+%package javadoc
+Summary: Javadoc for XML:DB
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+Javadoc for XML:DB.
+
+%prep
+%setup -q -n xmldb
+%patch0
+find -name "*.jar" | xargs rm -v
+cp -p %{SOURCE1} build.xml
+cp -p %{SOURCE2} license.txt
+
+%build
+CLASSPATH=$(build-classpath junit xalan)
+%ant jar %{?with_javadoc:javadoc} \
+ -Dsrc=. \
+ -Djar=%{srcname}.jar \
+ -Dsdk-jar=%{srcname}-sdk.jar
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# jars
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -a dist/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+cp -a dist/%{srcname}-sdk.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-sdk-%{version}.jar
+ln -s %{srcname}-sdk-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-sdk.jar
+
+# javadoc
+%if %{with javadoc}
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -a dist/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
+
+%files
+%defattr(644,root,root,755)
+%doc license.txt
+%{_javadir}/%{srcname}-%{version}.jar
+%{_javadir}/%{srcname}.jar
+
+%files sdk
+%defattr(644,root,root,755)
+%{_javadir}/%{srcname}-sdk-%{version}.jar
+%{_javadir}/%{srcname}-sdk.jar
+
+%if %{with javadoc}
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
+%endif
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/10/23 13:37:46 glen
+- new, based on fedora package (which based on jpackage)
================================================================
Index: packages/java-xmldb/license.txt
diff -u /dev/null packages/java-xmldb/license.txt:1.1
--- /dev/null Sun Oct 23 15:37:52 2011
+++ packages/java-xmldb/license.txt Sun Oct 23 15:37:46 2011
@@ -0,0 +1,47 @@
+Copyright (c) 2000-2003 The XML:DB Initiative. All rights
+reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+3. The end-user documentation included with the redistribution,
+ if any, must include the following acknowledgment:
+ "This product includes software developed by the
+ XML:DB Initiative (http://www.xmldb.org/)."
+ Alternately, this acknowledgment may appear in the software itself,
+ if and wherever such third-party acknowledgments normally appear.
+
+4. The name "XML:DB Initiative" must not be used to endorse or
+ promote products derived from this software without prior written
+ permission. For written permission, please contact info at xmldb.org.
+
+5. Products derived from this software may not be called "XML:DB",
+ nor may "XML:DB" appear in their name, without prior written
+ permission of the XML:DB Initiative.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+====================================================================
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the XML:DB Initiative. For more information
+on the XML:DB Initiative, please see <http://www.xmldb.org/>.
================================================================
Index: packages/java-xmldb/syntaxfix.patch
diff -u /dev/null packages/java-xmldb/syntaxfix.patch:1.1
--- /dev/null Sun Oct 23 15:37:52 2011
+++ packages/java-xmldb/syntaxfix.patch Sun Oct 23 15:37:46 2011
@@ -0,0 +1,11 @@
+diff -ru xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java xmldb-patched/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java
+--- org/xmldb/api/reference/modules/XPathQueryServiceImpl.java 2002-01-30 04:46:43.000000000 -0500
++++ org/xmldb/api/reference/modules/XPathQueryServiceImpl.java 2005-06-26 21:37:59.000000000 -0400
+@@ -133,7 +133,7 @@
+ }
+ }
+
+- return result;;
++ return result;
+ }
+ }
================================================================
More information about the pld-cvs-commit
mailing list