diff --git a/.cvsignore b/.cvsignore
index e69de29..8187a32 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+egit-522c3046b3b7e4af1a13ca17912e0bfe8b0983e4.tar.gz
diff --git a/eclipse-egit-add-feature.patch b/eclipse-egit-add-feature.patch
new file mode 100644
index 0000000..db72d10
--- /dev/null
+++ b/eclipse-egit-add-feature.patch
@@ -0,0 +1,72 @@
+diff -ruN egit.orig/org.spearce.egit/build.properties egit/org.spearce.egit/build.properties
+--- egit.orig/org.spearce.egit/build.properties 1969-12-31 19:00:00.000000000 -0500
++++ egit/org.spearce.egit/build.properties 2007-08-30 12:33:14.000000000 -0400
+@@ -0,0 +1 @@
++bin.includes = feature.xml
+diff -ruN egit.orig/org.spearce.egit/feature.xml egit/org.spearce.egit/feature.xml
+--- egit.orig/org.spearce.egit/feature.xml 1969-12-31 19:00:00.000000000 -0500
++++ egit/org.spearce.egit/feature.xml 2007-08-30 12:33:14.000000000 -0400
+@@ -0,0 +1,42 @@
++
++
++
++
++ The Eclipse Git plugin allows developers to interact with Git
++ repositories from within Eclipse.
++
++
++
++ [Enter Copyright Description here.]
++
++
++
++ GPLv2 EPL
++
++
++
++
++
++
++
++
++
+diff -ruN egit.orig/org.spearce.egit/.project egit/org.spearce.egit/.project
+--- egit.orig/org.spearce.egit/.project 1969-12-31 19:00:00.000000000 -0500
++++ egit/org.spearce.egit/.project 2007-08-30 12:33:14.000000000 -0400
+@@ -0,0 +1,17 @@
++
++
++ org.spearce.egit
++
++
++
++
++
++ org.eclipse.pde.FeatureBuilder
++
++
++
++
++
++ org.eclipse.pde.FeatureNature
++
++
diff --git a/eclipse-egit.spec b/eclipse-egit.spec
new file mode 100644
index 0000000..a2d2a84
--- /dev/null
+++ b/eclipse-egit.spec
@@ -0,0 +1,99 @@
+
+%define gcj_support 1
+
+Summary: Eclipse Git plug-in
+Name: eclipse-egit
+Version: 0.2.2
+Release: 0.git20070826%{?dist}
+License: EPL GPLv2
+URL: http://repo.or.cz/w/egit.git
+Group: Development/Tools
+
+# retrieved from http://repo.or.cz/w/egit.git?a=snapshot;h=522c3046b3b7e4af1a13ca17912e0bfe8b0983e4;sf=tgz
+Source0: egit-522c3046b3b7e4af1a13ca17912e0bfe8b0983e4.tar.gz
+Patch0: %{name}-add-feature.patch
+
+Requires: eclipse-platform > 1:3.3.0
+%if %{gcj_support}
+BuildRequires: gcc-java >= 4.1.2
+BuildRequires: java-1.5.0-gcj-devel >= 1.5.0
+Requires(post): java-1.5.0-gcj >= 1.5.0
+Requires(postun): java-1.5.0-gcj >= 1.5.0
+%else
+BuildRequires: java-devel >= 1.6.0
+%endif
+
+BuildRequires: eclipse-pde
+BuildRequires: jpackage-utils >= 0:1.5
+
+%if %{gcj_support}
+%else
+BuildArch: noarch
+%endif
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+The eclipse-egit package contains Eclipse plugins for
+interacting with Git repositories.
+
+%prep
+%setup -q -c
+%patch0 -p0
+
+%build
+# Copy the SDK for build
+/bin/sh -x %{_datadir}/eclipse/buildscripts/copy-platform SDK %{_datadir}/eclipse
+SDK=$(cd SDK > /dev/null && pwd)
+
+# Eclipse may try to write to the home directory.
+mkdir home
+homedir=$(cd home > /dev/null && pwd)
+
+# build the main egit feature
+java -cp $SDK/startup.jar \
+ -Dosgi.sharedConfiguration.area=%{_libdir}/eclipse/configuration \
+ org.eclipse.core.launcher.Main \
+ -application org.eclipse.ant.core.antRunner \
+ -Dtype=feature \
+ -Did=org.spearce.egit \
+ -DbaseLocation=$SDK \
+ -DjavacSource=1.5 -DjavacTarget=1.5 \
+ -DsourceDirectory=$(pwd) \
+ -DbuildDirectory=$(pwd)/build \
+ -Dbuilder=%{_datadir}/eclipse/plugins/org.eclipse.pde.build/templates/package-build \
+ -f %{_datadir}/eclipse/plugins/org.eclipse.pde.build/scripts/build.xml \
+ -vmargs -Duser.home=$homedir
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d -m755 $RPM_BUILD_ROOT/%{_datadir}/eclipse
+
+# egit main feature
+unzip -q -d $RPM_BUILD_ROOT%{_datadir}/eclipse/.. \
+ build/rpmBuild/org.spearce.egit.zip
+
+%if %{gcj_support}
+aot-compile-rpm
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{gcj_support}
+%post -p /usr/bin/rebuild-gcj-db
+%postun -p /usr/bin/rebuild-gcj-db
+%endif
+
+%files
+%defattr(-,root,root,-)
+%{_datadir}/eclipse/features/org.spearce.egit*
+%{_datadir}/eclipse/plugins/org.spearce.egit.core*
+%{_datadir}/eclipse/plugins/org.spearce.egit.ui*
+%{_datadir}/eclipse/plugins/org.spearce.jgit*
+%if %{gcj_support}
+%{_libdir}/gcj/%{name}
+%endif
+
+%changelog
+* Wed Aug 29 2007 Ben Konrath 0.2.2-0.git20070826.fc8
+- Initial version
diff --git a/sources b/sources
index e69de29..917f897 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fbbbb7b7366d5a9f397f521837fe3e19 egit-522c3046b3b7e4af1a13ca17912e0bfe8b0983e4.tar.gz