rpmbuild - RPM spec file questions -
i have question rpm spec file.
- what point of view of execution of spec file? spec file meant controls happens when rpmbuild executed on source machine, or happens when rpm installed on target machine?
- if idea take folders , files in tar.gz, put them in rpm , them @ at rpm install point have folders , files deployed. do in %build , %install sections?
- how reference files want deployed on target machine in %files section? reference them on source machine or on target machine.
i'm sorry of these questions seem vague or amateurish have issues concept , various site referenced use make install
- both (if understand question correctly). in %prep, %build %install control running on build server. in %pre,post,preun,postun control running on target server during rpm un/install.
- if don't build anything, %build can empty. want pack tar files in rpm , untar them in target server? not approach. better pack files in tar , let rpm handle changes, etc.
- as on target machine.
Comments
Post a Comment