hello centos list hello guys hello master of "Fu"
how to create a rpm package for centos 5 with an archive tar.xz. I possess a source rpm of gnutls http://ns.fakessh.eu/rpms/gnutls-2.12.16-1.el5.src.rpm and I would try to compile the latest version of gnutls
What is the correct procedure to build an rpm with this type of package tar.xz
sincerely
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 + LANG=C + 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
On Wed, 29 Feb 2012 20:52:09 +0100 fakessh @ wrote:
any idees
My "idee" would be to de-archive your xz file and create a new tar.gz (or tar.bz) file using the result, then use that to build the rpm.
unxz gnutls-3.0.9.tar.xz bzip2 gnutls-3.0.9.tar
Now you have a gnutls-3.0.9.tar.bz2
On Wednesday 29 February 2012 02:11:25 fakessh @ wrote:
What is the correct procedure to build an rpm with this type of package tar.xz
AFAIK the %setup macro should be able to handle the decompression.
If not, just do it yourself within the %prep section
Regards
PS: there's an rpm-list ( rpm-list@lists.rpm.org )