3 ms·
> Every time I look into packaging it seems like it has become even more of an arcane art Plenty of people willing to help out! The Fedora wiki actually conta
by snuxoll 10y ago
> Every time I look into packaging it seems like it has become even more of an arcane art
Plenty of people willing to help out!
The Fedora wiki actually contains a lot of general information on just creating RPM's, if you aren't planning on submitting and maintaining your software for inclusion in the Fedora Software Collection you don't need to be overly-zealous about following the Fedora Packaging Guidelines (though we hope you do, because it makes your software easier to use and less likely to break). "How to create an RPM package" is a good start [0]. The rpmdev-newspec tool part of the rpmdevtools package will generate you a decent skeleton you can use to get started with, though they still have some warts as they haven't been updated (they still call rm -rf $RPM_BUILD_ROOT which hasn't been necessary since EL6).
For the most part, an SRPM built for Fedora or EL* should also be able to be compiled for OpenSUSE - with some exceptions where package naming differs or incompatible software versions are present (you'll have to solve these issues with conditionals). The same will typically be the case with .deb's built for Debian and derivatives.
The Open Build Service from the OpenSUSE project [1] is an excellent tool for building and publishing packages for many different distributions, it won't save you from writing your spec files and debian/ files, but it will save you some time in building new releases afterwards (and it encourages the one rpmspec-with-conditionals workflow, so you don't maintain separate spec files for different distributions).
Of course, I'd always like to see developers trying to get their software in the distribution repositories, but you probably don't want to go through the hassle of joining Fedora/Debian/Ubuntu/etc just for that. However, if you already have a working rpmspec file and an sane build system that doesn't require crazy tweaks you can probably find a packager willing to work with you.
I haven't messed with debian packaging in a while, but if you have any questions about creating RPM's feel free to email me (snuxoll@fedoraproject.org).
[0]: https://fedoraproject.org/wiki/How_to_create_an_RPM_package https://fedoraproject.org/wiki/How_to_create_an_RPM_package
[1]: https://build.opensuse.org/ https://build.opensuse.org/