generate a real gemspec, move static stuff to its own module