[CentOS-devel] Question re RPM Package Naming

Wed Apr 18 23:22:40 UTC 2007
John Summerfield <debian at herakles.homelinux.org>

Rodrigo Barbosa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, Apr 18, 2007 at 11:51:29AM +1000, Les Bell wrote:
>> When building RPM's for CentOS, should I include ".el5.centos" in the
>> Release field? I recently built (you might remember) pdftk-1.12-1.i386.rpm
>> and have made it available for testing and inclusion in the Centos repos.
>> However, when trying to find RPM's, I find it helpful if the package
>> filename includes the distro and distro version number. I can easily
>> produce "pdftk-1.12-1.el5.centos.i386.rpm" and other related files, but is
>> this kosher? Or is the ".el5.centos" designation reserved for official
>> releases, post-QA?
> 
> My suggestion would be .el5.lesbell.XXX.rpm, at it will both identify
> the distro and the source of the package.

G'day Les, good to see you again, virtually speaking!

Note that the file name need not fully reflect the package name; the 
package could be el5.centos.i386.rpm and the file .el5.lesbell.i386.rpm,

I think this the file name:
-14: _rpmfilename       %{_build_name_fmt}
and that inherits this (one line):
-14: _build_name_fmt 
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

It might be good to include _build_vendor in the name. I've not tested 
it but I think it won't affect dependency resolving.

-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu

Please do not reply off-list