[Info] Packaging for Fedora (rpm)
I built a cnping package for Fedora, check it out here: https://copr.fedorainfracloud.org/coprs/dreua/cnping/ In case someone is interested, here is the specfile: https://copr-be.cloud.fedoraproject.org/results/dreua/cnping/fedora-28-x86_64/00789810-cnping/cnping.spec
Does that mean it may become part of the distro? I.e. available by yum install?
Yes, it may become part of the main repository eventually, that depends on whether I find a sponsor and manage to get this reviewed. But I have to learn more about the packaging process and fix some minor issues first.
Copr for Fedora is like AUR on Arch or PPA on Ubuntu/Debian, you can already easily install the package by: dnf copr enable dreua/cnping to enable the copr as a package source and dnf install cnping. (dnf is the new yum.) It will also update like a real package.
When enabling the copr you will of course get a warning that this "is not part of the main distribution, and quality may vary."
Understood. Hmm, I would love to see what it would take to make this part of an actual distro. Who knows, maybe someday even Debian!
You mean you'd like to see a todo list? Here you go:
Todos for anyone via pull request:
- [x] Include the whole license text(s) in the license file
Todos for someone with write access to this repo (I think thats only @cnlohr ):
- [x] Make releases. (Simple git tags would be fine. The versioning scheme is important for the package manager to figure out which of two packages is older/newer. Using the date and git hashes is possible but somewhat messy imo.)
- [x] Release source bundles without binaries. Github already creates source bundles for each commit and tag for us but it should not include binaries, i.e. cnping.exe. The exe might find it's new home on the release page. It could be automatically built and uploaded there by Travis-CI, see #32
Todos especially for the packager (me):
- [x] Rebuild latest version with latest spec.
- [x] Check that the build system's compiler flags are respected.
- [x] Find out if we need a .desktop file.
- [ ] Build and test builds with rpmlint and fedora-review
- [x] Introduce in the Fedora-Dev mailinglist.
- [ ] Create and monitor review request bug
- [x] Help reviewing other requests
- [x] Get sponsored
- [ ] To be continued...
For Bonus Points:
- [x] Write and include a man page
I take it that means you want me to go for all of the first 4. Also, heck, if we're going for it, might as well spend the extra couple hours adding IPv6 support...
No, actually I just wrote down the todos to get them out of my head and did't think about assigning them to anyone. I edited the list to what seems reasonable to me. Maybe I can do PRs for the first two in the next days but you can also do it yourself of course ;) About IPv6: We can always update the package later when it's ready, so there is no real need to do this now.