Hiyas,
are there some best practices or some secret macros I can redifine to use a lzma compressed tarball as Source0 for Fedora 8+ specs? It would help if I could pass --use-compress-program=lzma to the tar commandline that %setup uses.
Regards, Till
"TM" == Till Maas opensource@till.name writes:
TM> Hiyas, are there some best practices or some secret macros I can TM> redifine to use a lzma compressed tarball as Source0 for Fedora 8+ TM> specs?
Use %setup -T and call the unpacking command yourself?
- J<
On Wed September 3 2008, Jason L Tibbitts III wrote:
"TM" == Till Maas opensource@till.name writes:
TM> Hiyas, are there some best practices or some secret macros I can TM> redifine to use a lzma compressed tarball as Source0 for Fedora 8+ TM> specs?
Use %setup -T and call the unpacking command yourself?
Only adding -T to %setup fails, because %setup wants to cd into the source directory that it previously removed.
Regards, Till
"TM" == Till Maas opensource@till.name writes:
TM> Only adding -T to %setup fails, because %setup wants to cd into TM> the source directory that it previously removed.
So add the option to make it not do that. http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html
- J<
On Wed September 3 2008, Jason L Tibbitts III wrote:
"TM" == Till Maas opensource@till.name writes:
TM> Only adding -T to %setup fails, because %setup wants to cd into TM> the source directory that it previously removed.
So add the option to make it not do that. http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html
I am not sure, what you are suggesting. Do you mean I should do the following?
%prep rm -rf %{name}-%{version} lzma -c -d %SOURCE0 | tar xvvf - %setup -q -T -D
Is it maybe ok to just skip %setup and only extract the sources manually?
Regards, Till
On Wed, 03 Sep 2008 17:45:41 +0200, Till Maas wrote:
Hiyas,
are there some best practices or some secret macros I can redifine to use a lzma compressed tarball as Source0 for Fedora 8+ specs? It would help if I could pass --use-compress-program=lzma to the tar commandline that %setup uses.
%setup -c -q -T
and extract %{SOURCE0} manually. Does that help, too?
On Wed September 3 2008, Michael Schwendt wrote:
On Wed, 03 Sep 2008 17:45:41 +0200, Till Maas wrote:
Hiyas,
are there some best practices or some secret macros I can redifine to use a lzma compressed tarball as Source0 for Fedora 8+ specs? It would help if I could pass --use-compress-program=lzma to the tar commandline that %setup uses.
%setup -c -q -T
and extract %{SOURCE0} manually. Does that help, too?
Thanks, the best solution I can think of with this %setup commandline is this:
%setup -q -c -T lzma -c -d %SOURCE0 | tar -xvvf - -C ..
Without the -C .. tar will create a new directory within the extracted source directory, e.g. foo-1.2/foo-1.2 which will break the remainder of the spec.
Regards, Till
On Wednesday 03 September 2008 12:28:08 Till Maas wrote:
On Wed September 3 2008, Michael Schwendt wrote:
On Wed, 03 Sep 2008 17:45:41 +0200, Till Maas wrote:
Hiyas,
are there some best practices or some secret macros I can redifine to use a lzma compressed tarball as Source0 for Fedora 8+ specs? It would help if I could pass --use-compress-program=lzma to the tar commandline that %setup uses.
%setup -c -q -T
and extract %{SOURCE0} manually. Does that help, too?
Thanks, the best solution I can think of with this %setup commandline is this:
%setup -q -c -T lzma -c -d %SOURCE0 | tar -xvvf - -C ..
Without the -C .. tar will create a new directory within the extracted source directory, e.g. foo-1.2/foo-1.2 which will break the remainder of the spec.
Nb: coreutils uses an lzma-compressed tarball, with the following:
%prep #do not unpack in setup because of lzma is not yet supported in setup macro %setup -q -c -T cd .. lzma -dc %SOURCE0 | tar xf - cd %name-%version
<apply patches> ...
Hi,
On Wed, Sep 03, 2008 at 05:45:41PM +0200, Till Maas wrote:
Hiyas,
are there some best practices or some secret macros I can redifine to use a lzma compressed tarball as Source0 for Fedora 8+ specs? It would help if I could pass --use-compress-program=lzma to the tar commandline that %setup uses.
Note that rawhide RPM (to be rpm-4.6) supports expansion of lzma tarballs without any macro magic.
%setup -q should handle it just fine.
what it basically does is: /usr/bin/lzma -dc %{SOURCE0} | /bin/tar -xf -
Jindrich