Pessoal

Estou estudando para o exame 201. E estou seguindo o material da IBM
disponível no developerWorks.
E tenho uma dúvida relacionada ao tópico (LPIC-2) 211: System maintenance

No item: Packaging software sobre como criar um pacote RPM usando o
rpmbuild.
Pelo que li e entendi, com o rpmbuild dá pra criar/reconstruir um
pacote rpm apartir de um tar ou src.rpm. 
Mas eu tentei aqui e dá o seguinte erro:

# rpmbuild --rebuild gzip-1.2.4-11.src.rpm
Installing gzip-1.2.4-11.src.rpm
error: unpacking of archive failed on file gzip-1.2.4.spec: cpio:
Archive file not in header
error: gzip-1.2.4-11.src.rpm cannot be installed

 - Onde eu encontro o arquivo .spec ??? Eu tenho que criar manualmente
o arquivo gzip-1.2.4.spec ? Tentei criar o arquivo mas nao deu certo.
Segui as especificacoes descritas na documentacao do rpm.org:
http://www.gurulabs.com/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF 
 - Como faco para construir um pacote rpm apartir de um tar Ex.:
gzip-1.2.4.tar ?
 - No meu diretorio: /usr/src/redhat/SPECS nao tem nada.
 - Estou tentando recriar um pacote binario.
 - Estou usando o CentOS 5.1 kernel: 2.6.18-53.el5xen no VMware.

No manual tá falando isso: 

 REBUILD AND RECOMPILE OPTIONS
       There are two other ways to invoke building with rpm:

       rpmbuild --rebuild|--recompile SOURCEPKG ...

       When invoked this way, rpmbuild installs the named source
package, and does a prep,  compile  and  install.   In  addition, 
--rebuild
       builds a new binary package. When the build has completed, the
build directory is removed (as in --clean) and the the sources and
spec file for the package are removed.

Help-me !

Att,
-- 
Roberto Rodrigues da Silva
Linux Professional Institute Certified - LPIC-1
Tecnologia em Redes de Computadores
E-mail/Gtalk: beto dot rrs at gmail dot com
Maringa - Parana - Brasil

Responder a