diff --git a/.gitignore b/.gitignore
index e69de29..b39313c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/JDOM-2.0.5.tar.gz
diff --git a/jdom-2.0.5-build.patch b/jdom-2.0.5-build.patch
new file mode 100644
index 0000000..35199a9
--- /dev/null
+++ b/jdom-2.0.5-build.patch
@@ -0,0 +1,114 @@
+--- build.xml 2013-04-17 00:00:39.000000000 +0200
++++ build.xml-gil 2013-09-12 16:13:30.119000138 +0200
+@@ -102,13 +102,13 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
++
++
++
++
++
++
++
+
+
+
+@@ -121,8 +121,8 @@
+
+
+
+-
+-
++
++
+
+
+
+@@ -139,7 +139,12 @@
+
+
+
+-
++
++
++
++
++
++
+
+
+
+@@ -289,6 +294,7 @@
+ header="<b>${Name}<br><font size='-1'>${version}</font></b>"
+ bottom="Copyright © ${year} Jason Hunter, Brett McLaughlin. All Rights Reserved.">
+
++
+
+
+
+@@ -373,11 +379,11 @@
+
+
+-
++
+
+
+
+@@ -401,6 +407,7 @@
+
+
+
++
+
+
+
+@@ -528,7 +535,25 @@
+
+
+
+-
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
+
+
+ 4.0.0
+ org.jdom
+ @artifactID@-contrib
+ jar
+
+ JDOM Contrib
+ @version@
+
+
+ A complete, Java-based solution for accessing, manipulating,
+ and outputting XML data
+
+ http://www.jdom.org
+
+
+ JDOM
+ http://www.jdom.org
+
+
+
+
+ JDOM-interest Mailing List
+ jdom-interest@jdom.org
+ http://jdom.markmail.org/
+
+
+
+
+
+ Similar to Apache License but with the acknowledgment clause removed
+ https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt
+ repo
+
+
+
+
+
+ git@github.com:/hunterhacker/jdom
+ scm:git:git@github.com:hunterhacker/jdom
+ scm:git:git@github.com:hunterhacker/jdom
+
+
+
+
+ hunterhacker
+ Jason Hunter
+ jhunter@servlets.com
+
+
+ rolfl
+ Rolf Lear
+ jdom@tuis.net
+
+
+
+
+
+ org.jdom
+ @artifactID@
+ @version@
+
+
+ jaxen
+ jaxen
+ 1.1.4
+ true
+
+
+ xerces
+ xercesImpl
+ 2.10.0
+ true
+
+
+ isorelax
+ isorelax
+ 20030108
+ true
+
+
+ stax
+ stax-api
+ 1.0.1
+ true
+
+
+
+
+ @jdk@
+
+
\ No newline at end of file
diff --git a/jdom-junit-template.pom b/jdom-junit-template.pom
new file mode 100644
index 0000000..70c6554
--- /dev/null
+++ b/jdom-junit-template.pom
@@ -0,0 +1,120 @@
+
+ 4.0.0
+ org.jdom
+ @artifactID@-junit
+ jar
+
+ JDOM Junit
+ @version@
+
+
+ A complete, Java-based solution for accessing, manipulating,
+ and outputting XML data
+
+ http://www.jdom.org
+
+
+ JDOM
+ http://www.jdom.org
+
+
+
+
+ JDOM-interest Mailing List
+ jdom-interest@jdom.org
+ http://jdom.markmail.org/
+
+
+
+
+
+ Similar to Apache License but with the acknowledgment clause removed
+ https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt
+ repo
+
+
+
+
+
+ git@github.com:/hunterhacker/jdom
+ scm:git:git@github.com:hunterhacker/jdom
+ scm:git:git@github.com:hunterhacker/jdom
+
+
+
+
+ hunterhacker
+ Jason Hunter
+ jhunter@servlets.com
+
+
+ rolfl
+ Rolf Lear
+ jdom@tuis.net
+
+
+
+
+
+ org.jdom
+ @artifactID@
+ @version@
+
+
+ jaxen
+ jaxen
+ 1.1.4
+ true
+
+
+ xerces
+ xercesImpl
+ 2.10.0
+ true
+
+
+ junit
+ junit
+ 4.11
+ true
+
+
+ asm
+ asm
+ 3.3.1
+ true
+
+
+ asm
+ asm-tree
+ 3.3.1
+ true
+
+
+ log4j
+ log4j
+ 1.2.17
+ true
+
+
+ net.sourceforge.cobertura
+ cobertura
+ 1.9.4.1
+ true
+
+
+ net.sourceforge.cobertura
+ cobertura-runtime
+ 1.9.4.1
+ true
+
+
+
+
+ @jdk@
+
+
\ No newline at end of file
diff --git a/jdom2.spec b/jdom2.spec
new file mode 100644
index 0000000..2ec7037
--- /dev/null
+++ b/jdom2.spec
@@ -0,0 +1,106 @@
+Name: jdom2
+Version: 2.0.5
+Release: 1%{?dist}
+Summary: Java manipulation of XML made easy
+License: ASL 1.1 or BSD
+URL: http://www.jdom.org/
+Source0: https://github.com/hunterhacker/jdom/archive/JDOM-%{version}.tar.gz
+# originally taken from http://repo1.maven.org/maven2/org/jdom/jdom-contrib/1.1.3/jdom-contrib-1.1.3.pom
+Source1: jdom-contrib-template.pom
+Source2: jdom-junit-template.pom
+# Use system libraries
+# Disable gpg signatures
+# Process contrib and junit pom files
+Patch0: jdom-2.0.5-build.patch
+
+BuildRequires: java-devel
+BuildRequires: java-javadoc
+BuildRequires: jpackage-utils
+
+BuildRequires: ant
+BuildRequires: ant-junit
+BuildRequires: bea-stax-api
+BuildRequires: cobertura
+BuildRequires: isorelax
+BuildRequires: jakarta-oro
+BuildRequires: jaxen
+BuildRequires: log4j
+BuildRequires: objectweb-asm
+BuildRequires: xalan-j2
+BuildRequires: xerces-j2
+BuildRequires: xml-commons-apis
+
+Requires: java
+Requires: jpackage-utils
+
+Requires: jaxen
+Requires: xalan-j2
+Requires: xerces-j2
+
+BuildArch: noarch
+
+%description
+JDOM is a Java-oriented object model which models XML documents.
+It provides a Java-centric means of generating and manipulating
+XML documents. While JDOM inter-operates well with existing
+standards such as the Simple API for XML (SAX) and the Document
+Object Model (DOM), it is not an abstraction layer or
+enhancement to those APIs. Rather, it seeks to provide a robust,
+light-weight means of reading and writing XML data without the
+complex and memory-consumptive options that current API
+offerings provide.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n jdom-JDOM-%{version}
+find . -name "*.class" -print -delete
+find . -name "*.jar" -print -delete
+
+%patch0 -p0
+
+cp -p %{SOURCE1} maven/contrib.pom
+cp -p %{SOURCE2} maven/junit.pom
+
+sed -i 's/\r//' LICENSE.txt README.txt
+
+%build
+
+ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}/%{name}
+install -m 644 build/package/jdom-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
+install -m 644 build/package/jdom-%{version}-contrib.jar %{buildroot}%{_javadir}/%{name}/%{name}-contrib.jar
+install -m 644 build/package/jdom-%{version}-junit.jar %{buildroot}%{_javadir}/%{name}/%{name}-junit.jar
+
+# Not required process as compat package: aId is jdom2 by default
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 build/maven/core/%{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
+install -pm 644 build/maven/core/%{name}-%{version}-contrib.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-contrib.pom
+%add_maven_depmap JPP.%{name}-%{name}-contrib.pom %{name}/%{name}-contrib.jar
+install -pm 644 build/maven/core/%{name}-%{version}-junit.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-junit.pom
+%add_maven_depmap JPP.%{name}-%{name}-junit.pom %{name}/%{name}-junit.jar
+
+mkdir -p %{buildroot}%{_javadocdir}
+cp -rp build/apidocs %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}
+%{_mavenpomdir}/JPP.%{name}-*.pom
+%{_mavendepmapfragdir}/%{name}
+%doc CHANGES.txt COMMITTERS.txt LICENSE.txt README.txt TODO.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+* Thu Sep 12 2013 gil cattaneo 2.0.5-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..6868d79 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ba01b343eab867879ece48617a798a2c JDOM-2.0.5.tar.gz