[CentOS] packaging: src.rpm not a rpm

Tue Apr 17 09:23:35 UTC 2012
Fabien Archambault <fabien.archambault at univ-amu.fr>

2012/4/17 Mihamina Rakotomandimby <mihamina at rktmb.org>:
> Hi all,
>
> I have installed the recommended installs from here:
> http://wiki.centos.org/HowTos/RebuildSRPM
>
> I want to build a "ipfm" RPM on a CentOS 6.2, for legacy purpose.
> I cant immediately get rid of that piece of software, but we're on the
> move...
>
> So:
>
> $ wget
> http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/ipfm-0.11.5-alt1.src.rpm
> $ rpm -i --nomd5 ipfm-0.11.5-alt1.src.rpm
>  error: ipfm-0.11.5-alt1.src.rpm: not an rpm package
>  (or package manifest):
>
> I probably missed something or am using some very outdated ressources:
> would some help me?
>

Hi,

To rebuild you can use:
$ rpmbuild --rebuild ipfm-0.11.5-alt1.src.rpm

First you need to follow those instructions:
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

Cheers,
Fabien