[Rpm-maint] [rpm-software-management/rpm] Does not the rpmbuild command execute (de)compression of files in parallel? (#113)

Geunsik Lim notifications at github.com
Mon Jan 2 04:01:41 UTC 2017

As a workaround, How about we try to do the below way? At this time, Let's assume that the default compression of rpm package is "*.tar.bz2".
u$> cat ./sample.spec
  1 Summary: The "Hello World" program from GNU                                                                        
  2 Name: hello
  3 Version: 2.8
  4 Release: 1%{?dist}
  5 Source0: %{name}-%{version}.tar.bz2  <===== HERE!!!!
  6 License: GPLv3+
  7 Group: Development/Tools

Replace the existing bzip2 command with the pbzip2 command as an workaround on Ubuntu 16.04 X64 LTS.
u$> sudo apt-get install rpm pigz pbzip2 lbzip2 
u$> sudo mv /bin/bzip2 /bin/bzip2.disable
u$> sudo cp /usr/bin/pbzip2 /bin/bzip2

And the, let's execute "rpmbuild -bb sample.spec" command. Is it okay? 
Alternatively, I can utilize 'alias' command as following: 
alias tar='tar --use-compress-program=pbzip2'
alias gzip='/usr/bin/pigz'
alias gunzip='/usr/bin/unpigz'
alias bzip2='/usr/bin/pbzip2'
alias bunzip2='/usr/bin/pbunzip2'

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170101/97cf27c4/attachment-0001.html>

More information about the Rpm-maint mailing list