diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4128edb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/xsom-20110809svn.tar.gz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index 2b347a3..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-This project was merged upstream into Eclipse ee4j's JAXB project (see: https://github.com/eclipse-ee4j/jaxb-ri ) and so is now a subpackage of the jaxb package in Fedora (see: https://src.fedoraproject.org/rpms/jaxb )
diff --git a/lcm.xsd b/lcm.xsd
new file mode 100644
index 0000000..cef09a7
--- /dev/null
+++ b/lcm.xsd
@@ -0,0 +1,145 @@
+
+
+
+
+
+ The schema for OASIS ebXML Registry Services
+
+
+
+
+
+
+
+ The SubmitObjectsRequest allows one to submit a list of RegistryObject elements. Each RegistryEntry element provides metadata for a single submitted object. Note that the repository item being submitted is in a separate document that is not in this DTD. The ebXML Messaging Services Specfication defines packaging, for submission, of the metadata of a repository item with the repository item itself. The value of the id attribute of the ExtrinsicObject element must be the same as the xlink:href attribute within the Reference element within the Manifest element of the MessageHeader.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The UpdateObjectsRequest allows one to update a list of RegistryObject elements. Each RegistryEntry element provides metadata for a single submitted object. Note that the repository item being submitted is in a separate document that is not in this DTD. The ebXML Messaging Services Specfication defines packaging, for submission, of the metadata of a repository item with the repository item itself. The value of the id attribute of the ExtrinsicObject element must be the same as the xlink:href attribute within the Reference element within the Manifest element of the MessageHeader.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The ObjectRefList and AdhocQuery identify the list of
+ objects being approved.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The ObjectRefList and AdhocQuery identify the list of
+ objects being deprecated.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The ObjectRefList is the list of
+ refs to the registry entrys being un-deprecated.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ The ObjectRefList is the list of
+ refs to the registry entrys being removed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sources b/sources
new file mode 100644
index 0000000..39e033c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6fc6b6c3b247adc124b7e7cbc96b8f77 xsom-20110809svn.tar.gz
diff --git a/xsom-20110809svn-pom.patch b/xsom-20110809svn-pom.patch
new file mode 100644
index 0000000..47057cb
--- /dev/null
+++ b/xsom-20110809svn-pom.patch
@@ -0,0 +1,38 @@
+diff -Naur xsom-20110809/pom.xml xsom-20110809-work/pom.xml
+--- xsom-20110809/pom.xml 2011-08-09 09:26:44.000000000 -0400
++++ xsom-20110809-work/pom.xml 2012-01-19 10:26:49.613983857 -0500
+@@ -49,11 +49,6 @@
+ http://xsom.java.net/
+ 20110809
+ jar
+-
+- net.java
+- jvnet-parent
+- 1
+-
+
+
+ CDDL v1.1 / GPL v2 dual license
+@@ -146,12 +141,6 @@
+ generate-sources
+
+
+-
+-
+-
+-
+-
+-
+
+
+
+@@ -164,9 +153,6 @@
+
+
+
+-
+-
+-
+
+
+
diff --git a/xsom.spec b/xsom.spec
new file mode 100644
index 0000000..03a516f
--- /dev/null
+++ b/xsom.spec
@@ -0,0 +1,132 @@
+%global checkout 20110809
+
+Name: xsom
+Version: 0
+Release: 5.%{checkout}svn%{?dist}
+Summary: XML Schema Object Model (XSOM)
+Group: Development/Libraries
+License: CDDL or GPLv2 with exceptions
+URL: http://xsom.java.net
+
+# svn export https://svn.java.net/svn/xsom~sources/tags/xsom-20110809 xsom-20110809svn
+# find xsom-20110809svn/ -name '*.class' -delete
+# find xsom-20110809svn/ -name '*.class' -delete
+# tar czf xsom-20110809svn.tar.gz xsom-20110809svn
+Source0: %{name}-%{checkout}svn.tar.gz
+
+# We need this because one of the original tests tries to download
+# it from the website, but that doesn't work in Koji:
+Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd
+
+Patch0: %{name}-%{checkout}svn-pom.patch
+
+BuildRequires: jpackage-utils
+BuildRequires: junit4
+BuildRequires: maven
+BuildRequires: maven-antrun-plugin
+BuildRequires: maven-plugin-build-helper
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-enforcer
+BuildRequires: maven-enforcer-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+BuildRequires: relaxngDatatype
+BuildRequires: relaxngcc
+BuildRequires: sonatype-oss-parent
+BuildRequires: forge-parent
+
+Requires: jpackage-utils
+Requires: relaxngDatatype
+BuildArch: noarch
+
+
+%description
+XML Schema Object Model (XSOM) is a Java library that allows applications to
+easily parse XML Schema documents and inspect information in them. It is
+expected to be useful for applications that need to take XML Schema as an
+input. The library is a straight-forward implement of "schema components" as
+defined in the XML Schema spec part 1. Refer to this specification of how this
+object model works.
+
+
+%package javadoc
+Group: Development/Libraries
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+
+%prep
+%setup -q -n %{name}-%{checkout}svn
+%patch0 -p1
+
+# Replace the URL of the XSD file used by the tests with its
+# absolute filesystem location:
+sed -i \
+ 's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' \
+ test/XSOMParserTest.java
+
+pushd lib
+ ln -sf $(build-classpath relaxngcc) relaxngcc.jar
+popd
+
+
+%build
+
+mvn-rpmbuild \
+ -Dproject.build.sourceEncoding=UTF-8 \
+ install \
+ javadoc:aggregate
+
+
+%install
+
+# Jar files:
+install -d -m 755 %{buildroot}%{_javadir}
+cp -p target/xsom-%{checkout}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# POM files:
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# Javadoc files:
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+# Dependencies map:
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%doc license.txt
+
+
+%files javadoc
+%{_javadocdir}/*
+%doc license.txt
+
+
+%changelog
+* Thu Feb 23 2012 Juan Hernandez 0-5.20110809svn
+- Update the release tag
+
+* Thu Feb 23 2012 Juan Hernandez 0-4.20110809svn
+- Avoid downloading XSD files during the build process
+
+* Wed Feb 22 2012 Juan Hernandez 0-3.20110809svn
+- Put the date tag in the release instead of in the version
+
+* Tue Feb 14 2012 Juan Hernandez 0-2.20110809svn
+- Cleanup of the spec file
+
+* Sat Jan 21 2012 Marek Goldmann 0-1.20110809svn
+- Initial packaging