[CentOS] Miredo 1.1.5

Wed Dec 10 18:43:39 UTC 2008
Robert Moskowitz <rgm at htt-consult.com>


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.rpm