[Jpackage-commits] dist/xmldb-api/JPP-6 Makefile, NONE, 1.1 sources, NONE, 1.1 xmldb-api-20041010.pom, NONE, 1.1 xmldb-api-java5-enum.patch, NONE, 1.1 xmldb-api-sdk-20041010.pom, NONE, 1.1 xmldb-api.spec, NONE, 1.1 xmldb-common-20041010.pom, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Dec 22 19:31:17 CET 2010


Update of /home/projects/jpackage/cvs/dist/xmldb-api/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv31772/JPP-6

Added Files:
	Makefile sources xmldb-api-20041010.pom 
	xmldb-api-java5-enum.patch xmldb-api-sdk-20041010.pom 
	xmldb-api.spec xmldb-common-20041010.pom 
Log Message:
Import xmldb-api into JPP-6

--- NEW FILE: xmldb-api-sdk-20041010.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>xmldb</groupId>
  <artifactId>xmldb-api-sdk</artifactId>
  <version>20041010</version>
</project>

--- NEW FILE: xmldb-api-java5-enum.patch ---
--- xapi/src/api/org/xmldb/api/sdk/modules/SetContentHandler.java.orig	2008-08-18 16:31:55.212578028 -0400
+++ xapi/src/api/org/xmldb/api/sdk/modules/SetContentHandler.java	2008-08-18 16:32:15.300575124 -0400
@@ -168,9 +168,9 @@
          }
       }
 
-      Enumeration enum = namespaces.keys();
-      while ( enum.hasMoreElements() ) {
-         String key = (String) enum.nextElement();
+      Enumeration kEnum = namespaces.keys();
+      while ( kEnum.hasMoreElements() ) {
+         String key = (String) kEnum.nextElement();
          newContent.append(" xmlns");
          if (key.length() > 0) {
             newContent.append(":");

--- NEW FILE: Makefile ---
# Makefile for source rpm: xmldb-api
# $Id: Makefile,v 1.1 2010/12/22 18:31:15 jpackage Exp $
NAME := xmldb-api
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: xmldb-api-20041010.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>xmldb</groupId>
  <artifactId>xmldb-api</artifactId>
  <version>20041010</version>
</project>

--- NEW FILE: xmldb-common-20041010.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>xmldb</groupId>
  <artifactId>xmldb-common</artifactId>
  <version>20041010</version>
</project>

--- NEW FILE: sources ---
32c57931da5afd866583eb2cdb94517d  xmldb-xapi-20041010-src.tar.gz

--- NEW FILE: xmldb-api.spec ---
# Copyright (c) 2000-2008, JPackage Project
# 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. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS 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 COPYRIGHT
# OWNER OR 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.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define bname xmldb
%define cvs_version 20041010

%define section free

Name:           xmldb-api
Version:        0.1
Release:        0.%{cvs_version}.5%{?dist}
Epoch:          1
Summary:        XML:DB API for Java
License:        BSD
Group:          Development/Java
URL:            http://xmldb-org.sourceforge.net
# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/xmldb-org login
# cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/xmldb-org export -D 2004-10-10 xapi
Source0:        xmldb-xapi-%{cvs_version}-src.tar.gz
Source1:        xmldb-api-20041010.pom
Source2:        xmldb-api-sdk-20041010.pom
Source3:        xmldb-common-20041010.pom

Patch0:         xmldb-api-java5-enum.patch
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  junit
BuildRequires:  xalan-j2
Requires:  jpackage-utils >= 0:1.7.5
Requires:  java >= 0:1.6.0
Requires:  xalan-j2
%if %{gcj_support}
BuildRequires:          java-gcj-compat-devel
%endif
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%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 %{name}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{version}-%{release}

%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 -n %{bname}-common
Summary:        Common package for %{name}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description -n %{bname}-common
XMLDB common Package, originally Infozone Tools

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n xapi
%patch0 -p1
find . -name "*.jar" | xargs -t rm
# FIXME: (dwalluck): These use org.apache.xalan.xpath 
rm src/common/org/xmldb/common/xml/queries/xalan/XPathQueryImpl.java
rm src/common/org/xmldb/common/xml/queries/xalan/XObjectImpl.java
rm src/common/org/xmldb/common/xml/queries/xalan/XPathQueryFactoryImpl.java
rm src/common/org/xmldb/common/xml/queries/xt/XPathQueryImpl.java
rm src/common/org/xmldb/common/xml/queries/xt/XPathQueryFactoryImpl.java

%build
export CLASSPATH=$(build-classpath junit xalan-j2)
export OPT_JAR_LIST=:
ant -Djarname=%{name} -Dsdk.jarname=%{name}-sdk dist

%install
rm -rf %{buildroot}

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/xmldb/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 644 dist/xmldb/%{name}-sdk.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-sdk-%{version}.jar
install -m 644 dist/xmldb/%{bname}-common.jar $RPM_BUILD_ROOT%{_javadir}/%{bname}-common-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)

# poms
# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap xmldb xmldb-api %{version} JPP %{name}
install -m 644 %{SOURCE2} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}-sdk.pom
%add_to_maven_depmap xmldb xmldb-api-sdk %{version} JPP %{name}-sdk
install -m 644 %{SOURCE3} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{bname}-common.pom
%add_to_maven_depmap xmldb xmldb-common %{version} JPP %{bname}-common

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr src/build/javadoc/full/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%doc src/{AUTHORS,LICENSE,README,config.xml}
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%dir %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

%files sdk
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-sdk-%{version}.jar
%{_javadir}/%{name}-sdk.jar
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-sdk-%{version}.jar.*
%endif

%files -n %{bname}-common
%defattr(0644,root,root,0755)
%{_javadir}/%{bname}-common-%{version}.jar
%{_javadir}/%{bname}-common.jar
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{bname}-common-%{version}.jar.*
%endif

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Wed Dec 22 2010 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20041010.5
- First JPP-6 release

* Mon Aug 18 2008 David Walluck <dwalluck at redhat.com> 1:0.1-0.20041010.4
- build for JPackage 5

* Fri Sep 08 2006 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20041010.3jpp
- Add post/postun Requires for javadoc
- Add gcj_support option

* Mon May 29 2006 Fernando Nasser <fnasser at redhat.com> 0:0.1-0.20041010.2jpp
- First JPP 1.7 build

* Thu Oct 20 2005 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20041010.1jpp
- Upgrade to recent
- Add  -common

* Tue Apr 26 2005 Fernando Nasser <fnasser at redhat.com> 0:0.1-0.20011111.3jpp
- Rebuild with standard version scheme

* Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> 0:20011111-3jpp
- Build with ant-1.6.2

* Mon May 05 2003 David Walluck <david at anti-microsoft.org> 0:20011111-2jpp
- update for JPackage 1.5
- fix sdk package summary
- fix for newer javac's

* Thu Mar 28 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 20011111-1jpp 
- first JPackage release




More information about the JPackage-commits mailing list