diff --git a/.cvsignore b/.cvsignore
index e69de29..6a71757 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+cglib-src-2.2.jar
diff --git a/cglib-build_xml.patch b/cglib-build_xml.patch
new file mode 100644
index 0000000..f3e591a
--- /dev/null
+++ b/cglib-build_xml.patch
@@ -0,0 +1,17 @@
+--- cglib/build.xml.orig 2008-08-14 13:37:22.000000000 +0200
++++ cglib/build.xml 2008-08-14 13:35:51.000000000 +0200
+@@ -124,14 +124,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
diff --git a/cglib.spec b/cglib.spec
new file mode 100644
index 0000000..f558131
--- /dev/null
+++ b/cglib.spec
@@ -0,0 +1,89 @@
+Name: cglib
+Version: 2.2
+Release: 5%{?dist}
+Summary: Code Generation Library for Java
+License: ASL 2.0
+Group: Development/Tools
+Url: http://cglib.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
+# Remove the repackaging step that includes other jars into the final thing
+Patch0: %{name}-build_xml.patch
+
+Requires: java >= 0:1.6.0
+Requires: objectweb-asm
+
+BuildRequires: ant
+BuildRequires: jpackage-utils >= 0:1.5
+BuildRequires: java-devel >= 0:1.6.0
+BuildRequires: objectweb-asm
+BuildArch: noarch
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%description
+cglib is a powerful, high performance and quality code generation library
+for Java. It is used to extend Java classes and implements interfaces
+at runtime.
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Documentation
+%description javadoc
+Documentation for the cglib code generation library.
+
+%prep
+%setup -q -c %{name}-%{version}
+rm lib/*.jar
+%patch0 -p1
+
+%build
+export CLASSPATH=`build-classpath objectweb-asm`
+ant jar javadoc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p ${RPM_BUILD_ROOT}%{_javadocdir}/
+cp -r docs ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-%{version}
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -p dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+%add_to_maven_depmap net.sf.cglib %{name} %{version} JPP %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE NOTICE
+%{_javadir}/*.jar
+%config(noreplace) %{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}-%{version}
+
+%changelog
+* Tue Dec 9 2008 Mary Ellen Foster - 2.2-5
+- Add dist to version
+- Fix BuildRoot to follow the latest guidelines
+
+* Mon Nov 24 2008 Mary Ellen Foster - 2.2-4
+- Add a comment explaining the patch
+
+* Thu Nov 6 2008 Mary Ellen Foster - 2.2-3
+- Flag Maven depmap as "config"
+
+* Wed Nov 5 2008 Mary Ellen Foster - 2.2-2
+- Explicitly require Java > 1.6 because it won't compile with gcj
+- Fix cosmetic issues in spec file
+
+* Tue Nov 4 2008 Mary Ellen Foster - 2.2-1
+- Initial package (based on previous JPP version)
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..6ec892e
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+cglib-2_2-5_fc10:devel:cglib-2.2-5.fc10.src.rpm:1258155327
diff --git a/sources b/sources
index e69de29..2b2ef43 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b1e6ebfb76ec7071b6a3f5f9d7df2e57 cglib-src-2.2.jar