From 8b95f35acfdb2f48114a77c80f1417e03b07ff8efaacf210bf74033e46e413aa Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 21 May 2009 19:08:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmldb-api?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + ready | 0 xmldb-api-java5-enum.patch | 15 +++ xmldb-api.changes | 5 + xmldb-api.spec | 157 ++++++++++++++++++++++++++++++++ xmldb-xapi-20041010-src.tar.bz2 | 3 + 7 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ready create mode 100644 xmldb-api-java5-enum.patch create mode 100644 xmldb-api.changes create mode 100644 xmldb-api.spec create mode 100644 xmldb-xapi-20041010-src.tar.bz2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/xmldb-api-java5-enum.patch b/xmldb-api-java5-enum.patch new file mode 100644 index 0000000..48035b4 --- /dev/null +++ b/xmldb-api-java5-enum.patch @@ -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(":"); diff --git a/xmldb-api.changes b/xmldb-api.changes new file mode 100644 index 0000000..55223de --- /dev/null +++ b/xmldb-api.changes @@ -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) + diff --git a/xmldb-api.spec b/xmldb-api.spec new file mode 100644 index 0000000..7e814bf --- /dev/null +++ b/xmldb-api.spec @@ -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) diff --git a/xmldb-xapi-20041010-src.tar.bz2 b/xmldb-xapi-20041010-src.tar.bz2 new file mode 100644 index 0000000..793879f --- /dev/null +++ b/xmldb-xapi-20041010-src.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb610fef52281e746114c46de19a60316200cea138d567ee9d1815bbfa955a31 +size 1507050