I found a src.rpm for 1.1.5-1 for fc8 (not rh8!). I was able to rebuild it on my Centos build system. The rpms are identified as 1.1.5-1.i386.rpm, no el5 or other identification was placed in the files. I don't see how to control this when you rebuild from an existing src.rpm. Interestingly the fc8 designation was lost. I also rebuild it on my fc10 system. It worked, and the rpms have fc10 in their names. Don't know how well they will work. I will be trying them over the next couple weeks. If anyone wants a copy, let me know....
On Wed, Dec 10, 2008 at 01:33:39PM -0500, Robert Moskowitz wrote:> I found a src.rpm for 1.1.5-1 for fc8 (not rh8!). I was able to rebuild > it on my Centos build system. > > The rpms are identified as 1.1.5-1.i386.rpm, no el5 or other > identification was placed in the files. I don't see how to control this > when you rebuild from an existing src.rpm. Interestingly the fc8 > designation was lost. > > I also rebuild it on my fc10 system. It worked, and the rpms have fc10 > in their names. > > Don't know how well they will work. I will be trying them over the next > couple weeks. If anyone wants a copy, let me know.... >Look inside the .spec file. The Release line should contain a dist tag as follows: Release: 1%{?dist} The "1" will vary of course. Then, when you build, just define the dist flag to be what you like: % rpmbuild --define 'dist .el5' <whatever>.spec Ray
Ray Van Dolson wrote:> On Wed, Dec 10, 2008 at 01:33:39PM -0500, Robert Moskowitz wrote: > >> I found a src.rpm for 1.1.5-1 for fc8 (not rh8!). I was able to rebuild >> it on my Centos build system. >> >> The rpms are identified as 1.1.5-1.i386.rpm, no el5 or other >> identification was placed in the files. I don't see how to control this >> when you rebuild from an existing src.rpm. Interestingly the fc8 >> designation was lost. >> >> I also rebuild it on my fc10 system. It worked, and the rpms have fc10 >> in their names. >> >> Don't know how well they will work. I will be trying them over the next >> couple weeks. If anyone wants a copy, let me know.... >> >> > > Look inside the .spec file. The Release line should contain a dist tag > as follows: > > Release: 1%{?dist} > > The "1" will vary of course. > > Then, when you build, just define the dist flag to be what you like: > > % rpmbuild --define 'dist .el5' <whatever>.specOK. I am almost getting it. I did a: rpmbuild --rebuild miredo.1.1.5-1.fc8.src.rpm In otherwords, I did not even bother to open up the src rpm. I hope that won't cause too much of an issue with what was built on Centos! So do I then do: rpmbuild --define 'dist .el5' --rebuild miredo.1.1.5-1.fc8.src.rpm
Robert Moskowitz wrote:> Ray Van Dolson wrote: > >> On Wed, Dec 10, 2008 at 01:33:39PM -0500, Robert Moskowitz wrote: >> >> >>> I found a src.rpm for 1.1.5-1 for fc8 (not rh8!). I was able to rebuild >>> it on my Centos build system. >>> >>> The rpms are identified as 1.1.5-1.i386.rpm, no el5 or other >>> identification was placed in the files. I don't see how to control this >>> when you rebuild from an existing src.rpm. Interestingly the fc8 >>> designation was lost. >>> >>> I also rebuild it on my fc10 system. It worked, and the rpms have fc10 >>> in their names. >>> >>> Don't know how well they will work. I will be trying them over the next >>> couple weeks. If anyone wants a copy, let me know.... >>> >>> >>> >> Look inside the .spec file. The Release line should contain a dist tag >> as follows: >> >> Release: 1%{?dist} >> >> The "1" will vary of course. >> >> Then, when you build, just define the dist flag to be what you like: >> >> % rpmbuild --define 'dist .el5' <whatever>.spec >> > > OK. I am almost getting it. > > I did a: rpmbuild --rebuild miredo.1.1.5-1.fc8.src.rpm > > In otherwords, I did not even bother to open up the src rpm. I hope that > won't cause too much of an issue with what was built on Centos! > > So do I then do: > > > rpmbuild --define 'dist .el5' --rebuild miredo.1.1.5-1.fc8.src.rpmSo I tried it and it works. At least it built the rpms with the .el5 string included (actually I used .el5.rgm so I would know it is mine).
On Wed, 2008-12-10 at 13:33 -0500, Robert Moskowitz wrote:> I found a src.rpm for 1.1.5-1 for fc8 (not rh8!). I was able to rebuild > it on my Centos build system. > > The rpms are identified as 1.1.5-1.i386.rpm, no el5 or other > identification was placed in the files. I don't see how to control this > when you rebuild from an existing src.rpm. Interestingly the fc8 > designation was lost. > > I also rebuild it on my fc10 system. It worked, and the rpms have fc10 > in their names. > > Don't know how well they will work. I will be trying them over the next > couple weeks. If anyone wants a copy, let me know.... >If you want the el5 in the name, a file /etc/rpm/macros.dist with the following content:> # dist macros.%rhel 5 %dist .el5 %el5 1 Louis
Louis Lagendijk wrote: we dont use %rhel or %el5 in CentOS. You really want a %centos_ver in there with either a 3 4 or 5 and yea, the %dist with .<yourid>.el<whatever> in the CentOS buildsystem the %dist gets set automatically. And since the distro uses .el5 and .centos.el5 etc, you should not normally be using that. You are better off adding a bit about your own tag. Eg: Robert Moskowitz might use %dist .robm.el5 - KB -- Karanbir Singh CentOS Project { http://www.centos.org/ } irc: z00dax, #centos at irc.freenode.net
Karanbir Singh wrote:> Louis Lagendijk wrote: > > we dont use %rhel or %el5 in CentOS. You really want a %centos_ver in > there with either a 3 4 or 5 > > and yea, the %dist with .<yourid>.el<whatever> > > in the CentOS buildsystem the %dist gets set automatically. And since > the distro uses .el5 and .centos.el5 etc, you should not normally be > using that. You are better off adding a bit about your own tag. Eg: > Robert Moskowitz might use %dist .robm.el5I ended up using .el5.rgm That made it like what I see with .el5.rf and .el5.kb! Now I have to figure out what happened on the F10 system that DID put fc10 (without me doing anything) in so I can make it .fc10.rgm...