diff --git a/.cvsignore b/.cvsignore
index e69de29..29ad469 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+stax-src-1.2.0_rc1-dev.zip
diff --git a/bea-stax-ecj-bootclasspath.patch b/bea-stax-ecj-bootclasspath.patch
new file mode 100644
index 0000000..5bd70b2
--- /dev/null
+++ b/bea-stax-ecj-bootclasspath.patch
@@ -0,0 +1,22 @@
+--- ./build.xml.bak 2005-12-07 05:49:44.000000000 -0500
++++ ./build.xml 2007-02-13 20:32:31.000000000 -0500
+@@ -100,6 +100,11 @@
+
+
+
++
++
++
++
++
+
+
+
+@@ -107,6 +112,7 @@
+ source="1.2" target="1.2"
+ includes="${topdirs}"
+ destdir="${class_dir}"
++ bootclasspathref="ecj.boot.class.path"
+ debug="true">
+
+
diff --git a/bea-stax.spec b/bea-stax.spec
new file mode 100644
index 0000000..5ec8aed
--- /dev/null
+++ b/bea-stax.spec
@@ -0,0 +1,209 @@
+# Copyright (c) 2000-2005, 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 gcj_support 1
+
+Summary: Streaming API for XML
+URL: http://dev2dev.bea.com/technologies/stax/index.jsp
+Source0: http://dist.codehaus.org/stax/distributions/stax-src-1.2.0_rc1-dev.zip
+# XXX:
+# since libgcj already includes classes in javax.xml.stream.events.* which
+# are not api compliant with those in the api jar, the build fails in gcj
+# unless added to bootclasspath
+Patch0: %{name}-ecj-bootclasspath.patch
+Name: bea-stax
+Version: 1.2.0
+Release: 0.1.rc1.2jpp.1%{?dist}
+Epoch: 0
+License: Apache Software License
+Group: Development/Libraries/Java
+%if ! %{gcj_support}
+BuildArch: noarch
+%endif
+
+BuildRequires: jpackage-utils >= 0:1.6
+BuildRequires: ant
+BuildRequires: xerces-j2,xalan-j2
+Requires: jpackage-utils >= 0:1.6
+Requires: %{name}-api = %{epoch}:%{version}-%{release}
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%if %{gcj_support}
+BuildRequires: java-gcj-compat-devel
+Requires(post): java-gcj-compat
+Requires(postun): java-gcj-compat
+%endif
+
+%description
+The Streaming API for XML (StAX) is a groundbreaking
+new Java API for parsing and writing XML easily and
+efficiently.
+
+%package api
+Summary: The StAX API
+Group: Development/Documentation
+Requires: jpackage-utils >= 0:1.6
+%if %{gcj_support}
+BuildRequires: java-gcj-compat-devel
+Requires(post): java-gcj-compat
+Requires(postun): java-gcj-compat
+%endif
+
+%description api
+%{summary}
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Development/Documentation
+Requires: jpackage-utils >= 0:1.6
+
+%description javadoc
+%{summary}
+
+%prep
+%setup -q -c -n %{name}-%{version}
+%{__sed} -i 's/\r//' ASF2.0.txt
+%if %{gcj_support}
+%patch0 -b .bak
+%endif
+
+%build
+export CLASSPATH=`pwd`/build/stax-api-1.0.jar
+ant all javadoc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# jar
+install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
+install -p -m 0644 build/stax-api-1.0.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-api-%{version}.jar
+install -p -m 0644 build/stax-1.2.0_rc1-dev.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-ri-%{version}.jar
+ln -s %{name}-api-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-api.jar
+ln -s %{name}-ri-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-ri.jar
+
+# javadoc
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -pr build/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%if %{gcj_support}
+%{_bindir}/aot-compile-rpm
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{gcj_support}
+%post api
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun api
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%files
+%defattr(-,root,root,-)
+%doc ASF2.0.txt
+%{_javadir}/%{name}-ri-%{version}.jar
+%{_javadir}/%{name}-ri.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/bea-stax-ri-1.2.0.jar.*
+%endif
+
+%files api
+%defattr(-,root,root,-)
+%doc ASF2.0.txt
+%{_javadir}/%{name}-api-%{version}.jar
+%{_javadir}/%{name}-api.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/bea-stax-api-1.2.0.jar.*
+%endif
+
+%files javadoc
+%defattr(0644,root,root,0755)
+%doc %{_javadocdir}/*
+
+%changelog
+* Mon Feb 12 2007 Vivek Lakshmanan 0:1.2.0-0.1.rc1.2jpp.1.fc7
+- Use new naming convention
+- Add ASF2.0.txt as doc for api and main package
+- Remove post/postun magic for javadoc
+- Add BR on ant, xerces-j2 and xalan-j2
+- Add conditional patch to make the package build under ecj/gcj
+
+* Wed Jan 18 2006 Fernando Nasser 0:1.2.0-0.rc1.2jpp
+- First JPP 1.7 build
+
+* Wed Jan 18 2006 Deepak Bhole 0:1.2.0-0.rc1.1jpp
+- Change source zip, and build the ri jars
+- Use setup macro in prep
+- First version all under APL
+- New package name
+- Demo still not yet available under the APL; will be in an update
+
+* Tue Apr 26 2005 Fernando Nasser 0:1.0-2jpp_2rh
+- First Red Hat build
+
+* Wed Oct 20 2004 David Walluck 0:1.0-2jpp
+- fix build
+
+* Thu Sep 09 2004 Ralph Apel 0:1.0-1jpp
+- First JPackage build
+- Note: there is a stax project starting at codehaus
diff --git a/sources b/sources
index e69de29..c0b4d70 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e12dab65656f4f9df420e562cc00a776 stax-src-1.2.0_rc1-dev.zip