I recently built a package of executables for Debian (actually, Ubuntu 18 and 20). A tarball of the core content was able to run on Fedora 34. So now I've been asked to create an RPM for it as well.
The Debian filename is something like:
mystuff-sfwrname-edu_21.05-0715.1234-u20_amd64.deb
This corresponds to the name _ version _ arch.deb syntax of Debian package filenames. The underscores are major separators; the minus signs don't really matter. (u20
indicates an Ubuntu 20.04 version; due to a libc
issue, there is also a u18
version for Ubuntu 18.04.)
Coming the the RPM world, I find the syntax is:
name-version-release.arch.rpm, where the minus signs and final period are significant. And yet there seem to be package names like openssh-clients-7.4p1-16.el7.x86_64
with minus signs in the name and periods before the architecture.
Can I then name my package as:
mystuff-sfwrname-edu-21.05-0715.1234.el7.x86-64.rpm
where:
name
=mystuff-sfwrname-edu
(with multiple minus signs)version
=21.05
release
=0715.1234.el7
arch
=x86_64
And if I presume the same RPM works on Fedora 34 as well as CentOS 7, would I just take out el7
or is there some other rule/practice that I'm unaware of?