You can also use sh scripts under %prep section to perform this action but %setup macro simplifies the process by using predefined sh scripts. In the below example, I have used a macro called %setup which removes any previous builds, untar the source files and changes the ownership of the files. You may be using this macros when you try to build any complex packages. One more key thing is to understand there are pre-defined macros available to perform various shortcut options to build rpm. ![]() Any previous builds are removed during this process and the source file(.tar) file is expanded, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |