--- a/eventmachine.gemspec
+++ b/eventmachine.gemspec
@@ -9,8 +9,7 @@
   s.authors = ["Francis Cianfrocca", "Aman Gupta"]
   s.email   = ["garbagecat10@gmail.com", "aman@tmm1.net"]
 
-  s.files = `git ls-files README.md CHANGELOG.md GNU LICENSE rakelib ext java lib docs`.split
-  s.test_files = `git ls-files tests examples`.split
+  s.files = Dir["ext/**/*", "lib/**/*"]
 
   s.extensions = ["ext/extconf.rb", "ext/fastfilereader/extconf.rb"]
 
@@ -33,5 +33,4 @@
 EOT
 
   s.rdoc_options = ["--title", "EventMachine", "--main", "README.md", "-x", "lib/em/version", "-x", "lib/jeventmachine"]
-  s.extra_rdoc_files = `git ls-files README.md docs`.split
 end
