Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I created a tarball with multiple files. The rpm generator requires those files to be inside a folder. I don't want to move the files before generating the tar. Is there a way to create this folder while generating the tar or after it?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The -c option to %setup will allow you to create a directory and extract the files from the various sources within it.

share|improve this answer
    
For me that's not an option right now. But thank you anyway. I'll have to solve the problem in the tar, I can't change the rpm params. –  Jader Dias Jun 9 '11 at 19:25
1  
Your other alternative is to write a custom tool, since even GNU tar doesn't support this. –  Ignacio Vazquez-Abrams Jun 9 '11 at 19:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.