[CentOS] build rpm from tar.xz tarball

Wed Feb 29 19:52:09 UTC 2012
fakessh @ <fakessh at fakessh.eu>

Le mercredi 29 février 2012 à 10:18 +0300, Mihamina Rakotomandimby a
écrit :
> On 02/29/2012 04:11 AM, fakessh @ wrote:
> > What is the correct procedure to build an rpm with this type of package
> > tar.xz
> the standard package rebuilding, I guess.
> just have to change the decompression utility call
I possess many utilities xz. 
when I run rpmbuild -ba gnutls.spec i have this error

ks37777 ~]# rpmbuild -ba /usr/src/redhat/SPECS/gnutls.spec
Exécution_de(%prep): /bin/sh -e /var/tmp/rpm-tmp.54352
+ umask 022
+ cd /usr/src/redhat/BUILD
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf gnutls-3.0.9
+ tar -xf /usr/src/redhat/SOURCES/gnutls-3.0.9.tar.xz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 1184 bytes from /usr/src/redhat/SOURCES/gnutls-3.0.9.tar.xz
tar: Error exit delayed from previous errors
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.54352 (%prep)

Erreur de construction de RPM:
    Mauvais status de sortie pour /var/tmp/rpm-tmp.54352 (%prep)

i 'd think standard rpm package do not support tar.xz tarball

any idees
 gpg --keyserver pgp.mit.edu --recv-key C2626742

 http://urlshort.eu fakessh @
 This list is moderated by me, but all applications will be accepted
 provided they receive a note of presentation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.centos.org/pipermail/centos/attachments/20120229/038d9ee4/attachment-0005.sig>