I am just reading http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html
rm -rf cdplayer-1.0
gzip -dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar -xvvf -
if [ $? -ne 0 ]; then
chown -R root.root .
chmod -R a+rX,g-w,o-w .
I have a few questions.
Why is the package unpacked twice : gzip and tar ?
When I look in all the examples there, it looks to me like that only unpacking is done. Where does the the copying of files in installdir happen?