OBS User unknown 2009-05-21 19:08:56 +00:00 committed by Git OBS Bridge
commit 8b95f35acf
7 changed files with 204 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

0
ready Normal file
View File

View File

@ -0,0 +1,15 @@
--- 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(":");

5
xmldb-api.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue May 12 15:57:26 CEST 2009 - mvyskocil@suse.cz
- Initial packaging of xmldb-api 0.1 in SUSE (from jpp 5.0)

157
xmldb-api.spec Normal file
View File

@ -0,0 +1,157 @@
#
# spec file for package xmldb-api (Version 0.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define bname xmldb
%define cvs_version 20041010
%define section free
Name: xmldb-api
Version: 0.1
Release: 2
Summary: XML:DB API for Java
License: Other uncritical OpenSource License
Group: Development/Libraries/Java
Url: http://xmldb-org.sourceforge.net
# cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xmldb-org login
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xmldb-org export -D 2004-10-10 xapi
Source0: xmldb-xapi-%{cvs_version}-src.tar.bz2
Patch0: xmldb-api-java5-enum.patch
Requires: xalan-j2
BuildRequires: ant >= 1.6
BuildRequires: jpackage-utils >= 1.6
BuildRequires: junit
BuildRequires: xalan-j2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
License: Other uncritical OpenSource License
Summary: SDK for XML:DB API
Group: Development/Libraries/Java
Requires: %{name} = %{version}
%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 xmldb-common
License: Other uncritical OpenSource License
Summary: XML:DB API for Java
Group: Development/Libraries/Java
Requires: %{name} = %{version}
%description -n xmldb-common
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 javadoc
License: Other uncritical OpenSource License
Summary: XML:DB API for Java
Group: Development/Libraries/Java
%description javadoc
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.
%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 -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Djarname=%{name} -Dsdk.jarname=%{name}-sdk dist
%install
# 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)
# 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}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%doc src/{AUTHORS,LICENSE,README,config.xml}
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%files sdk
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-sdk-%{version}.jar
%{_javadir}/%{name}-sdk.jar
%files -n %{bname}-common
%defattr(0644,root,root,0755)
%{_javadir}/%{bname}-common-%{version}.jar
%{_javadir}/%{bname}-common.jar
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%changelog
* Tue May 12 2009 mvyskocil@suse.cz
- Initial packaging of xmldb-api 0.1 in SUSE (from jpp 5.0)

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb610fef52281e746114c46de19a60316200cea138d567ee9d1815bbfa955a31
size 1507050