diff --git a/.gitignore b/.gitignore
index e69de29..24681e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/org.apache.felix.shell-1.4.2-project.tar.gz
diff --git a/felix-shell-pom.patch b/felix-shell-pom.patch
new file mode 100644
index 0000000..f372b46
--- /dev/null
+++ b/felix-shell-pom.patch
@@ -0,0 +1,39 @@
+--- pom.xml.orig 2010-02-08 04:41:48.000000000 +0800
++++ pom.xml 2010-07-16 14:28:07.000000000 +0800
+@@ -30,12 +30,12 @@
+ 1.4.2
+
+
+- org.osgi
++ org.apache.felix
+ org.osgi.core
+ 4.1.0
+
+
+- org.osgi
++ org.apache.felix
+ org.osgi.compendium
+ 4.0.0
+
+@@ -59,21 +59,6 @@
+
+
+
+-
+- org.codehaus.mojo
+- rat-maven-plugin
+-
+- false
+- true
+- true
+-
+- doc/*
+- maven-eclipse.xml
+- .checkstyle
+- .externalToolBuilders/*
+-
+-
+-
+
+
+
diff --git a/felix-shell.spec b/felix-shell.spec
new file mode 100644
index 0000000..08eaaf6
--- /dev/null
+++ b/felix-shell.spec
@@ -0,0 +1,114 @@
+%global bundle org.apache.felix.shell
+Name: felix-shell
+Version: 1.4.2
+Release: 3%{?dist}
+Summary: Apache Felix Shell Service
+
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://felix.apache.org
+Source0: http://www.picvi.com/external/apache/felix/org.apache.felix.shell-1.4.2-project.tar.gz
+#Fixed org.osgi.core and org.osgi.compendium's groupId
+Patch0: felix-shell-pom.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: jpackage-utils
+BuildRequires: maven2
+BuildRequires: felix-osgi-core
+BuildRequires: felix-osgi-compendium
+BuildRequires: maven-plugin-bundle
+BuildRequires: felix-parent
+
+Requires: java
+Requires: jpackage-utils
+Requires: felix-osgi-core
+Requires: felix-osgi-compendium
+
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+
+%description
+A simple OSGi command shell service.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q -n %{bundle}-%{version}
+%patch0 -p0
+
+%build
+export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
+
+mvn-jpp \
+ -e \
+ -Dmaven2.jpp.mode=true \
+ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+ -Dmaven.test.skip=true \
+ install javadoc:javadoc
+
+%install
+rm -rf %{buildroot}
+
+# jars
+install -Dpm 644 target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/felix/%{name}-%{version}.jar
+
+(cd %{buildroot}%{_javadir}/felix && for jar in *-%{version}*; \
+ do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
+
+%add_to_maven_depmap org.apache.felix %{bundle} %{version} JPP/felix %{name}
+
+# poms
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.felix-%{name}.pom
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
+ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
+
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE NOTICE
+%{_javadir}/felix/*
+%{_mavenpomdir}/JPP.felix-%{name}.pom
+%{_mavendepmapfragdir}/*
+
+%files javadoc
+%defattr(-,root,root,-)
+%doc LICENSE NOTICE
+%{_javadocdir}/%{name}-%{version}
+%{_javadocdir}/%{name}
+
+%changelog
+* Mon Aug 02 2010 Hui Wang - 1.4.2-3
+- Fix source0
+- Remove "rm -rf target/site/api/*"
+
+* Fri Jul 30 2010 Hui Wang - 1.4.2-2
+- Add LICENSE to javadoc subpackage
+- Use upstream source tarball
+- Fix directory that owned by other package in files section
+
+* Fri Jun 25 2010 Hui Wang - 1.4.2-1
+- Initial version of the package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..bef9133 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+af6a5ee11fb1c5ae1e1905a3bb53f40a org.apache.felix.shell-1.4.2-project.tar.gz