$ pod spec create MyPod
2. modify MyPod.podspec to fit your need.
3. link it before sumbit
$ pod spec lint MyPod.podspec
4. submit to repository using follow spec.
quoted from URL:http://nsscreencast.com/episodes/28-creating-a-cocoapod
- Fork the repository at http://github.com/CocoaPods/Specs.git
- Add your podspec file to its own versioned folder
- Push to your fork
- Issue a Pull Request
5. if you want to put pod on your own repository. refer to following URL:
https://github.com/CocoaPods/CocoaPods/wiki/Sharing-pod-specifications-with-yourself-and-the-world