OBS User unknown 2009-05-21 02:56:44 +00:00 committed by Git OBS Bridge
commit 2cb0de21ee
7 changed files with 420 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

3
PullParser2.1.10.tar.bz2 Normal file
View File

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

0
ready Normal file
View File

199
xpp2-build_xml.patch Normal file
View File

@ -0,0 +1,199 @@
--- build.xml.sav 2003-11-15 06:42:11.000000000 +0100
+++ build.xml 2005-08-10 11:58:48.000000000 +0200
@@ -9,7 +9,8 @@
<property name="midp4palm.home" value="c:/util/midp4palm1.0" />
- <property name="target" value="1.1" />
+ <property name="target" value="1.4" />
+ <property name="source" value="1.4" />
<!-- set global properties for this build -->
<property name="name" value="XML Pull Parser"/>
@@ -165,7 +166,7 @@
<target name="intf" depends="prepare">
<mkdir dir="${build_intf}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_intf}" destdir="${build_intf}"/>
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_intf}" destdir="${build_intf}"/>
<touch file="${build_intf}/PullParser${version}_VERSION"/>
</target>
@@ -175,7 +176,7 @@
<target name="impl_tag" depends="intf">
<mkdir dir="${build_impl_tag}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_tag}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_tag}"
destdir="${build_impl_tag}"
classpath="${build_intf}">
@@ -185,7 +186,7 @@
<target name="impl_node" depends="intf">
<mkdir dir="${build_impl_node}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_node}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_node}"
destdir="${build_impl_node}"
classpath="${build_intf}:${build_impl_tag}">
@@ -195,7 +196,7 @@
<target name="impl_format" depends="intf">
<mkdir dir="${build_impl_format}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_format}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_format}"
destdir="${build_impl_format}"
classpath="${build_intf}">
@@ -205,7 +206,7 @@
<target name="impl_pp" depends="impl_tag,intf">
<mkdir dir="${build_impl_pp}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_pp}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_pp}"
destdir="${build_impl_pp}"
classpath="${build_intf}:${build_impl_tag}">
@@ -215,7 +216,7 @@
<target name="impl" depends="intf,impl_tag,impl_pp,impl_node,impl_format,drivers">
<mkdir dir="${build_impl_factory}/META-INF/services"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_factory}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_factory}"
destdir="${build_impl_factory}"
classpath="${build_intf}:${build_impl_tag}:${build_impl_pp}:${build_impl_node}:${build_impl_format}">
<patternset refid="all.source.files"/>
@@ -247,7 +248,7 @@
<target name="impl_small" depends="intf,impl_tag,impl_pp">
<mkdir dir="${build_impl_small}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_small}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_impl_small}"
destdir="${build_impl_small}"
classpath="${build_intf}:${build_impl_tag}:${build_impl_pp}">
<patternset refid="all.source.files"/>
@@ -271,7 +272,7 @@
<target name="x2impl_pp" if="x2_present" depends="intf,check_x2">
<mkdir dir="${build_x2impl_pp}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_x2impl_pp}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}" srcdir="${src_x2impl_pp}"
destdir="${build_x2impl_pp}"
classpath="${build_intf}">
</javac>
@@ -279,7 +280,7 @@
<target name="x2impl" if="x2_present" depends="x2impl_pp,drivers">
<mkdir dir="${build_x2impl_factory}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_x2impl_factory}"
destdir="${build_x2impl_factory}"
classpath="${build_intf}:${build_impl_tag}:${build_x2impl_pp}:${build_impl_node}:${build_impl_format}">
@@ -304,7 +305,7 @@
<target name="samples" depends="intf">
<mkdir dir="${build_samples}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_samples}" destdir="${build_samples}"
classpath="${build_intf}"
>
@@ -319,7 +320,7 @@
<target name="api_sax2" depends="prepare">
<mkdir dir="${build_api_sax2}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_api_sax2}" destdir="${build_api_sax2}"
>
</javac>
@@ -327,7 +328,7 @@
<target name="driver_sax2" depends="api_sax2,intf">
<mkdir dir="${build_driver_sax2}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_driver_sax2}" destdir="${build_driver_sax2}"
classpath="${build_api_sax2}:${build_intf}"
>
@@ -336,7 +337,7 @@
<target name="api_jaxp11" depends="api_sax2">
<mkdir dir="${build_api_jaxp11}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_api_jaxp11}" destdir="${build_api_jaxp11}"
classpath="${build_api_sax2}"
>
@@ -350,7 +351,7 @@
<!--copy todir="${build_driver_jaxp11}/META-INF/services">
<fileset dir="${src_driver_jaxp11}/META-INF/services/"/>
</copy-->
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_driver_jaxp11}" destdir="${build_driver_jaxp11}"
classpath="${build_api_sax2}:${build_driver_sax2}:${build_api_jaxp11}:${build_intf}"
>
@@ -385,7 +386,7 @@
<delete dir="${build_j2me}/count_midlet" />
<mkdir dir="${build_j2me}/count_midlet"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_samples}" destdir="${build_j2me}/count_midlet"
bootclasspath="${j2mewtk.home}/lib/midpapi.zip"
classpath="${build_intf}"
@@ -426,7 +427,7 @@
<!-- thi is special verion of XPP2 that is equivalent to impl_small but smaller -->
<target name="impl_tiny" depends="prepare">
<mkdir dir="${build_impl_tiny}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_impl_tiny}"
destdir="${build_impl_tiny}"
>
@@ -443,7 +444,7 @@
<delete dir="${build_j2me}/count_midlet_tiny" />
<mkdir dir="${build_j2me}/count_midlet_tiny"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_samples}" destdir="${build_j2me}/count_midlet_tiny"
bootclasspath="${j2mewtk.home}/lib/midpapi.zip"
classpath="${build_impl_tiny}"
@@ -529,7 +530,7 @@
<target name="tests" if="junit.present" depends="intf,check_junit">
<mkdir dir="${build_tests}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_tests}" destdir="${build_tests}">
<classpath refid="test_classpath" />
</javac>
@@ -537,7 +538,7 @@
<target name="tiny_tests" if="junit.present" depends="impl_tiny,check_junit">
<mkdir dir="${build_tiny_tests}"/>
- <javac target="${target}" debug="${debug}" deprecation="${deprecation}"
+ <javac source="${source}" target="${target}" debug="${debug}" deprecation="${deprecation}"
srcdir="${src_tests}" destdir="${build_tiny_tests}" classpath="${build_impl_tiny}:${java.class.path}">
<patternset>
<exclude name="All**"/>
@@ -580,6 +581,7 @@
<javadoc packagenames="${apidoc_packages}"
sourcepath="${src_intf}"
destdir="${build_apidoc}"
+ source="1.4"
author="true"
version="true"
use="true"
@@ -596,6 +598,7 @@
<javadoc packagenames="${javadoc_packages}"
sourcepath="${src_intf}:${src_impl_factory}:${src_impl_small}:${src_impl_tag}:${src_impl_pp}:${src_impl_node}:${src_impl_format}:${src_x2impl}:${src_x2impl_factory}:${src_x2impl_pp}"
destdir="${build_javadoc}"
+ source="1.4"
author="true"
version="true"
use="true"

5
xpp2.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue May 12 15:28:12 CEST 2009 - mvyskocil@suse.cz
- Initial packaging of xpp2 2.1.10 (from jpackage.org)

189
xpp2.spec Normal file
View File

@ -0,0 +1,189 @@
#
# spec file for package xpp2 (Version 2.1.10)
#
# 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 section free
%define originalname PullParser
Summary: XML Pull Parser
Name: xpp2
Version: 2.1.10
Release: 2
License: Apache 1.1 (Indiana University)
Url: http://www.extreme.indiana.edu/xgws/xsoap/xpp/
Group: Development/Libraries/Java
Source0: http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/PullParser2.1.10.tar.bz2
Patch0: xpp2-build_xml.patch
BuildRequires: ant >= 1.6
BuildRequires: ant-junit >= 1.6
BuildRequires: jpackage-utils >= 1.6
BuildRequires: junit
BuildRequires: xml-commons-apis
BuildRequires: fdupes
Requires: xml-commons-apis
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
XML Pull Parser 2 (XPP2) is a simple and fast incremental XML parser.
NOTE: XPP2 is no longer developed and is on maintenance mode. All
active development concentrates on its successor XPP3/MXP1
%package javadoc
License: Apache 1.1 (Indiana University)
Summary: XML Pull Parser
Group: Development/Libraries/Java
%description javadoc
XML Pull Parser 2 (XPP2) is a simple and fast incremental XML parser.
NOTE: XPP2 is no longer developed and is on maintenance mode. All
active development concentrates on its successor XPP3/MXP1
%package manual
License: Apache 1.1 (Indiana University)
Summary: XML Pull Parser
Group: Development/Libraries/Java
%description manual
XML Pull Parser 2 (XPP2) is a simple and fast incremental XML parser.
NOTE: XPP2 is no longer developed and is on maintenance mode. All
active development concentrates on its successor XPP3/MXP1
%package demo
License: Apache 1.1 (Indiana University)
Summary: XML Pull Parser
Group: Development/Libraries/Java
Requires: %{name} = %{version}
%description demo
XML Pull Parser 2 (XPP2) is a simple and fast incremental XML parser.
NOTE: XPP2 is no longer developed and is on maintenance mode. All
active development concentrates on its successor XPP3/MXP1
%prep
%setup -q -n %{originalname}%{version}
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
%patch0 -b .sav
%build
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=$(build-classpath xml-commons-apis)
ant all api api.impl
CLASSPATH=$CLASSPATH:$(build-classpath junit):build/tests:build/lib/PullParser-2.1.10.jar
java AllTests
%install
# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p build/lib/%{originalname}-intf-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-intf-%{version}.jar
cp -p build/lib/%{originalname}-standard-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-standard-%{version}.jar
cp -p build/lib/%{originalname}-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
cp -p build/lib/%{originalname}-x2-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-x2-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api_impl
cp -pr doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
cp -pr doc/api_impl/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api_impl
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
rm -rf doc/{build.txt,api,api_impl}
# manual
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
cp -pr doc/* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
cp -p README.html $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
cp -p LICENSE.txt $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
# demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
cp -pr src/java/samples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/%{name}
%fdupes -s %{buildroot}/%{_javadocdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%post manual
rm -f %{_datadir}/doc/%{name}
ln -s %{name}-%{version} %{_datadir}/doc/%{name}
%postun manual
if [ "$1" = "0" ]; then
rm -f %{_datadir}/doc/%{name}
fi
%post demo
rm -f %{_datadir}/%{name}
ln -s %{name}-%{version} %{_datadir}/%{name}
%postun demo
if [ "$1" = "0" ]; then
rm -f %{_datadir}/%{name}
fi
%files
%defattr(0644,root,root,0755)
%{_datadir}/doc/%{name}-%{version}/README.html
%{_datadir}/doc/%{name}-%{version}/LICENSE.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}-intf.jar
%{_javadir}/%{name}-intf-%{version}.jar
%{_javadir}/%{name}-standard.jar
%{_javadir}/%{name}-standard-%{version}.jar
%{_javadir}/%{name}-x2.jar
%{_javadir}/%{name}-x2-%{version}.jar
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files manual
%defattr(0644,root,root,0755)
%{_datadir}/doc/%{name}-%{version}
%{_datadir}/doc/%{name}
%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}-%{version}
%{_datadir}/%{name}
%changelog
* Tue May 12 2009 mvyskocil@suse.cz
- Initial packaging of xpp2 2.1.10 (from jpackage.org)